XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-04-08, 12:58   #1
schdeffan
Junior Member
 
Join Date: Apr 2004
Posts: 7
schdeffan is on a distinguished road
Default

hi,

i use an xbmc version from the beginning of march 2004 (don't know exactly).

there doesn't seem to be a way to get info on the current song xbmc is playing.

@darkie: could you please add a method for this. best would be something like xbmc.player().currentitem() returning an object of class xbmc.playlistitem().

also xbmc.playlistitem().getduration() returns 0 in my version at least for mp3, haven't tried other things, has that been fixed?

i have some knoweledge in embedding a python-interpreter in other applications exporting app-functions as python-modules, and i would do it my self but i don't have the means to compile xbmc.

- stephan
schdeffan is offline   Reply With Quote
Old 2004-04-08, 16:26   #2
xsintill
Member
 
Join Date: Dec 2003
Posts: 39
xsintill is on a distinguished road
Default

darkie while you are at it could it be possible to let scripts run whenever the user wants to shutdown xbmc just like scripts are run whenever xbmc starts up.
xsintill is offline   Reply With Quote
Old 2004-04-09, 16:17   #3
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

Quote:
also xbmc.playlistitem().getduration() returns 0 in my version at least for mp3, haven't tried other things, has that been fixed?
nothing wrong with that, with xbmc.playlistitem() you create a new playlistitem with everything set to 0, that is why getduration() returns 0. if you have created a playlist and you use something like playlist[3].getduration() with 0 as a result, then it is a bug
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


darkie is offline   Reply With Quote
Old 2004-04-09, 23:14   #4
muerte
Junior Member
 
Join Date: Mar 2004
Posts: 6
muerte is on a distinguished road
Default

i just had a great idea. we should make a python script that incorporates a web server so that we can put what song/movie is playing within our sig. that would rock.
muerte is offline   Reply With Quote
Old 2004-04-10, 11:17   #5
schdeffan
Junior Member
 
Join Date: Apr 2004
Posts: 7
schdeffan is on a distinguished road
Default

@darkie, well, thats exactly what heppens. i load a playlist, get sime item on it, lets las pl[7], and getduration() returns 0.
schdeffan is offline   Reply With Quote
Old 2004-04-10, 11:17   #6
ent
Member
 
Join Date: Mar 2004
Posts: 74
ent is on a distinguished road
Default

Quote:
Originally Posted by (muerte @ april 09 2004,21:14)
i just had a great idea. we should make a python script that incorporates a web server so that we can put what song/movie is playing within our sig. that would rock.
why not use the xbmc web server? it's probably possible, though a bit unsecure
ent is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Music playlist: highlight current playing song hanjinghui XBMC Feature Suggestions 2 2005-02-28 22:33
Scrolling playlist follows current song rupert XBMC Feature Suggestions 8 2004-12-25 20:57
Current song display pwinstanley XBMC for Xbox Specific Support 2 2004-04-25 08:38
current song highlight in track list Monty|aus XBMC Feature Suggestions 2 2004-03-13 17:07


All times are GMT +2. The time now is 03:59.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project