web-scrobbler
web-scrobbler copied to clipboard
Unrecognized YouTube tracklist format.
Describe the bug YouTube tracklist is not recognized. It used to be, albeit incorrectly, see https://github.com/web-scrobbler/web-scrobbler/issues/2937.
How to reproduce Steps to reproduce the behavior:
- Play https://www.youtube.com/watch?v=Rt5BnbOmy0o
- Check extension popup for track details
Expected behavior Tracklist is parsed and recognized correctly.
Screenshots N/A
Debug logs
Background script
Injecting vendor/filter.js inject.js:52:12
Injecting vendor/jquery.min.js inject.js:52:12
Injecting vendor/browser-polyfill.min.js inject.js:52:12
Injecting core/content/util.js inject.js:52:12
Injecting core/content/reactor.js inject.js:52:12
Injecting core/content/connector.js inject.js:52:12
Injecting connectors/youtube.js inject.js:52:12
Injecting core/content/starter.js inject.js:52:12
Tab 1: Created controller for YouTube connector util.js:40:10
Tab 1: New song detected: {
"track": "Vocaloid songs new fans absolutely need to know",
"artist": "Mika's Playlists",
"album": null,
"albumArtist": null,
"uniqueID": "Rt5BnbOmy0o",
"duration": 5142,
"currentTime": 2430,
"isPlaying": true,
"trackArt": null,
"isPodcast": false,
"originUrl": "https://www.youtube.com/watch?v=Rt5BnbOmy0o"
} util.js:40:10
Send "get info" request: 1 scrobble-service.js:97:12
Tab 1: isPlaying state changed to false util.js:40:10
Last.fm: track.getinfo response:
{
"track": {
"name": "Vocaloid songs new fans absolutely need to know",
"url": "https://www.last.fm/music/Mika%27s+Playlists/_/Vocaloid+songs+new+fans+absolutely+need+to+know",
"duration": "0",
"streamable": {
"#text": "0",
"fulltrack": "0"
},
"listeners": "54",
"playcount": "86",
"artist": {
"name": "Mika's Playlists",
"url": "https://www.last.fm/music/Mika%27s+Playlists"
},
"userplaycount": "0",
"userloved": "0",
"toptags": {
"tag": []
}
}
} util.js:40:10
Tab 1: Song finished processing: {
"parsed": {
"track": "Vocaloid songs new fans absolutely need to know",
"artist": "Mika's Playlists",
"album": null,
"albumArtist": null,
"uniqueID": "Rt5BnbOmy0o",
"duration": 5142,
"currentTime": 2431,
"isPlaying": false,
"trackArt": null,
"isPodcast": false,
"originUrl": "https://www.youtube.com/watch?v=Rt5BnbOmy0o"
},
"processed": {
"track": "Vocaloid songs new fans absolutely need to know",
"artist": "Mika's Playlists",
"albumArtist": null,
"duration": null
},
"flags": {
"isScrobbled": false,
"isCorrectedByUser": false,
"isValid": true,
"isMarkedAsPlaying": false,
"isSkipped": false,
"isReplaying": false
},
"metadata": {
"userloved": false,
"startTimestamp": 1655673724,
"label": "YouTube",
"artistUrl": "https://www.last.fm/music/Mika%27s+Playlists",
"trackUrl": "https://www.last.fm/music/Mika%27s+Playlists/_/Vocaloid+songs+new+fans+absolutely+need+to+know",
"userPlayCount": 0
},
"connectorLabel": "YouTube"
} util.js:40:10
Tab 1: The song will be scrobbled in 239 seconds util.js:40:10
Tab 1: The song will be repeated in 5142 seconds
Content script
Web Scrobbler: Used '#content' to watch changes. [util.js:541:10](moz-extension://dbdacebc-5d4f-4846-9a92-2f71de66b32f/core/content/util.js)
Web Scrobbler: Allowed categories: Music [util.js:541:10](moz-extension://dbdacebc-5d4f-4846-9a92-2f71de66b32f/core/content/util.js)
Web Scrobbler: Fetched category for Rt5BnbOmy0o: Music [util.js:541:10](moz-extension://dbdacebc-5d4f-4846-9a92-2f71de66b32f/core/content/util.js)
Web Scrobbler: {
"track": "Vocaloid songs new fans absolutely need to know",
"artist": "Mika's Playlists",
"album": null,
"albumArtist": null,
"uniqueID": "Rt5BnbOmy0o",
"duration": 5142,
"currentTime": 2410,
"isPlaying": true,
"trackArt": null,
"isPodcast": false,
"originUrl": "https://www.youtube.com/watch?v=Rt5BnbOmy0o"
}
Environment (please complete the following information)
- OS: Windows 10
- Browser: Firefox 101
- Extension version: 2.63.0
Additional context N/A
P.S. Please consider getting rid of stale bot.
Another one: https://www.youtube.com/watch?v=i61gSKmeQ74 Track number is recognized as the artist.
similar issue with https://www.youtube.com/watch?v=k_R7sH4xhIo where the double period between the number and artist - track is getting appended and searched/recorded (especially with a 'force match', can the leading dot be ignored?)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.