Posts: 7
Joined: Dec 2016
Reputation:
0
TheAudioDB is not working at all for me, Currently using " The Internet Music Video Database" and it is still running into huge issues miss-labeling songs completely " Pink Floyd - Louder Than Words " scrapes as " Cold War Kids - Louder than ever " Won't let me manually change to proper song. on that note I ma using nightly build 17
Posts: 453
Joined: Sep 2010
Reputation:
5
2017-03-09, 13:24
(This post was last modified: 2017-03-09, 13:39 by ferent.)
Reviewing the scraper code, there is this expression:
<expression repeat="yes" clear="yes" fixchars="1" noclean="1">idTrack":"([^"]*)","idAlbum":"([^"]*).*?"strTrack":"([^"]*)","strAlbum":"([^"]*)","strArtist":"([^"]*)</expression>
I'm not a developer, but it seems that it gets the video info only when it find all these tags:
- idTrack
- idAlbum
- strTrack
- strAlbum
- strArtist
As mentioned before, if you look at the json output of the Aerosmith song, the strAlbum is null, while in the other example you pasted is not.
To be honest, I don't know how important for the scraper is to match all this tags in the Json file, maybe it is to get the album fanart, which is not important to me, as what I want is to detect as much music videos as possible in my library.
This afternoon I will remove the strAlbum from that expression and see what happens.
BTW I think this scraper needs a bit of more love from the dev team, cause I think the apostrophe problem should be easily fixed as well adding any kind of RegExp in the code, and I think there are a lot of people using the Music Video feature in Kodi. Sadly I'm not a developer to fix it.
EDIT: I've added a new topic in the AudioDB forum asking them to fix the json issue.