Well, the only way I can see to implement this is to use the artist scraper to grab all the associated videos in an array and then map those later to songs. Neither the album or artist scraper is "aware" of what songs are related to an album or artist so core would need to figure out that relationship.
However, given an array of songs (containing title, video link at the least), it should be possible.....I think.....
@
docwra Would it be possible to return the Musicbrainz
Recording ID for the video or do you not store that? Given that ID, it would be easy to link a video to a song. EG, the track MBID for AC/DC's Rock & Roll Train is
35eca894-c66c-4205-850b-77b72f579680
. If that were returned in the json results it would be easy to map the video link to a song, assuming that all tracks are actually tagged with mbids. Failing that, a fallback to artist/track name could be used but the MBID is a definitive value and would be my preferred method of mapping.
Adding a new field to the db is straightforward, as is getting the info from it into a listitem. Getting the data from a website and populating the db with it is less straightforward though.
I think it's a great idea and I can see in my head how I would want it to look in the gui but I/we need to sort out the implementation details first.
So I think
- Artist scraper grabs all videos for a particular artist
- Core adds links to videos where a track for that artist exists in the db
- Listitem contains link to video when said track is highlighted
For best results, this depends on theaudiodb being able to supply the Musicbrainz_RecordingID if possible.