cdART Manager integration.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #1
I'm planning on adding code to cdART Manager that would allow music artwork downloading from the skin, similar to Artwork Downloader does for video. I'm not 100% sure what library items that skin developers have at each level of the audio library. Ultimately and most accurately library ID's would be best, artist ID and album ID. Also if the skin uses a user supplied music library path is used in the skin, or if the skin creates a path(mainly needed for artists), this would be needed.

Suggestions will appreciated.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Martijn Offline
Team Kodi
Posts: 11,554
Joined: Jul 2011
Reputation: 166
Location: Dawn of time
Post: #2
As far as i can tell artist name and album title are available. Not id.
So you need to compare the name that the skin parses against what is available in library to get the correct one.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-09 20:07 by Martijn.)
find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #3
That is what I feared... Guess I should look into adding 'ListItem.Property(Artist_Id)' and 'ListItem.Property(Album_Id)' to a pull request, with a convincing reason.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Martijn Offline
Team Kodi
Posts: 11,554
Joined: Jul 2011
Reputation: 166
Location: Dawn of time
Post: #4
(2012-05-12 15:16)giftie Wrote:  That is what I feared... Guess I should look into adding 'ListItem.Property(Artist_Id)' and 'ListItem.Property(Album_Id)' to a pull request, with a convincing reason.
I do the same with movies/tvshows. Compare the parsed title+path to the one stored in the database and then go from there. Luckily almost all have an tvdb/tmdb/imdb ID stored in database.
PHP Code:
medianame=$ESCINFO[ListItem.Title], mediapath=$ESCINFO[ListItem.Path
and search through database what is available that matches

No real issues using this method. Just a little workaround that functions pretty well.



It would even be better if the musicbrainz ID was also stored inside the database. Would make things a lot easier.


Note:
While you're at it could you also look at 'ListItem.Property(Id) for movies Tongue

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-12 16:48 by Martijn.)
find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #5
(2012-05-12 16:45)Martijn Wrote:  
(2012-05-12 15:16)giftie Wrote:  That is what I feared... Guess I should look into adding 'ListItem.Property(Artist_Id)' and 'ListItem.Property(Album_Id)' to a pull request, with a convincing reason.
I do the same with movies/tvshows. Compare the parsed title+path to the one stored in the database and then go from there. Luckily almost all have an tvdb/tmdb/imdb ID stored in database.
PHP Code:
medianame=$ESCINFO[ListItem.Title], mediapath=$ESCINFO[ListItem.Path
and search through database what is available that matches

No real issues using this method. Just a little workaround that functions pretty well.



It would even be better if the musicbrainz ID was also stored inside the database. Would make things a lot easier.


Note:
While you're at it could you also look at 'ListItem.Property(Id) for movies Tongue

I was thinking about the Movie_Id as well... Smile

I found part of the code in MusicDatabase.cpp(Artist - lines 4866-4883, Album - lines 4885 - 4903) but I do know that this is all of it...

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #6
Figured out Artist ID and Album ID... Smile

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #7
Martijn - you got your wish... Smile

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote