Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
JSONRPC.Introspect have all info
If you have problems please read
this before posting
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.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 2,368
Joined: Mar 2010
Reputation:
60
giftie
Skilled Python Coder
Posts: 2,368
Ok, add JSONRPC.Introspect into my script to get the list...
I now have the proper formatting.
Now a question about the available fields. Are these the only fields available(looked at AudioLibrary.cpp to find)?
album
albumartist
artist
year
rating
genre
databaseid
Would albumpath be available? I've tried ["path"] and ["albumpath"] and just get a parse error...
If it's not available, would it be possible to have it added? Then I would be able to remove my dependence on the script.module.pysqlite and http api, making my script compatible with the two present available databases(MySQL and SQLite).
Thanks...
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Why do you need albumpath? an album could be in multiple paths so there is no good way to add it. And no, it will probably never be added, not unless there is a really good reason.
If you have problems please read
this before posting
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.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 2,368
Joined: Mar 2010
Reputation:
60
giftie
Skilled Python Coder
Posts: 2,368
This is going to seem a little off topic, but I am just trying to explain my request for albumpath to be added to the AlbumDetails query.
Many skins have a feature that displays rotating cd artwork(not the album artwork) while music is playing. The skinners agreed on that the artwork(cdart.png) is to be stored in the album folder, much like the Album Art gets stored in album folders. I had expanded on a plug-in that Ppic had written a while back, that manages the cd artwork. Right now the script uses a python module(pysqlite) to retrieve the information from the music DB. This is ok for probably 85-90% of the users. But there are those that use MySQL which at the moment there is not a Python module available to use in XBMC and precompiled modules are not allowed in the Official Addon repo where my script is available. My script pull the following information from the database, Album Artist(was not very easy to do this because of the structure of the Database), Album Title, Album Path. The Album Path is needed for the storage of the cdart.png that the script downloads off of a specific website(xbmcstuff.com, soon I will be setting up my own to add an uploading feature to my script). This is why I am asking if it would be possible to add the Album Path to JSON RPC..
You also have mentioned how the database structure is going to change and also how the accessing of the database will need to change for addons when this happens(yes I know it's not right away, but it is going to happen.)
For reference the following skins support this feature:
Transparency!
Night
Aeon65
Alaska Revisited
Alaska Revisited MOD
Cirrus(though spins them too fast)
Shade
Carmichael - upcoming skin
Not sure if this is a good enough reason or not to you, but I have to try....
Posts: 2,368
Joined: Mar 2010
Reputation:
60
giftie
Skilled Python Coder
Posts: 2,368
I also store my music that way and each part(or cd) will get the matching cdART(as they often have different artwork between multiple discs).
I have added a couple of JSON calls to my script already and found it really has increased the speed of the database search(even though a direct query only takes about 2mins to retrieve the info from my music library of about 400 Album Artists and 1400 Albums.)
If I can get the path from the song, it would probably be one extra step. I'll look into it an see where I can get. I do like the fact I can get almost all the information from a single call(GetAlbumDetails).
I'm not surprised that you haven't had much of a chance to check out cdART, you developers have been working hard to produce such an excellent media system. I think of cdART another 'Look at what we can do' what showcases XBMC is. I think cdART was created during a feature freeze and the skinners have done an excellent job of creating a stable feature. I guess cdART is somewhat similar to how FanArt started...
I'll look into grabbing the Album path from the song info...
Thanks..
Posts: 34
Joined: Jul 2008
Reputation:
0
How can I remove files from the current playlist? I can jump to a file in the playlist by using AudioPlaylist.Play with an index. However, when I use AudioPlaylist.Remove with an index, nothing happens. I also tried Playlist.Remove with no luck. Has this feature been implemented yet?