rNeomy / last.fm-scrobbler

Scrobbler tool for popular web services like YouTube
http://add0n.com/lastfm-tool.html
17 stars 7 forks source link

Tweak how the album artist is read for unofficial music uploads. #28

Open Tenome opened 2 years ago

Tenome commented 2 years ago

I noticed that this script has trouble reading names from unofficial uploads. For example, https://youtu.be/y9AQYPDOCts the script tries to search for the artist "Xerf Xpec" because that's the name of the uploader, rather than Toshiki Kadomatsu. Official channels either have "Topic" in the name (automatic Youtube music uploads), or they have a badge next to their name (shows up in the html as "badges":[{"metadataBadgeRenderer":{"icon":{"iconType":"OFFICIAL_ARTIST_BADGE"},"style":"BADGE_STYLE_TYPE_VERIFIED_ARTIST","tooltip":"Official Artist Channel").

Would it be possible to adjust the script for it checks for these, and if it's not there, tries to pull the artist name from the title of the video instead?

Then again, it correctly reads the artist name in this video, so I'm not sure what's going on. https://youtu.be/eve71DbyQ8U

Doesn't work (tries to search for artist "City Pop World"): https://youtu.be/dQLSvvUTnYA