Skip to content

Fix YouTube Music thumbnail parsing#18

Open
DanHerbert wants to merge 1 commit intotnychn:mainfrom
DanHerbert:fix-ytm
Open

Fix YouTube Music thumbnail parsing#18
DanHerbert wants to merge 1 commit intotnychn:mainfrom
DanHerbert:fix-ytm

Conversation

@DanHerbert
Copy link
Copy Markdown

@DanHerbert DanHerbert commented Sep 7, 2025

Not all YouTube Music URLs include the video ID in the URL. This checks that any URL on a YouTube domain actually includes the video ID before trying to parse it to get the thumbnail.

Without this check, the extension would throw an exception on most YouTube Music pages, which prevented YTM tabs from being shown in the extension's UI.

It is possible that this also fixes some of the causes of Issue #5 but I'm not sure of the root cause in every situation that bug encompasses so I don't know for sure.

Not all YouTube Music URLs include the video ID in the URL. This checks
that any URL on a YouTube domain actually includes the video ID before
trying to parse it to get the thumbnail.

Without this check, the extension would throw an exception on most
YouTube Music pages, which prevented YTM tabs from being shown in the
extension's UI.
@tnychn tnychn added the bug Something isn't working label Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants