Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

fix(YouTube - Alternative Thumbnails Domains): Handle more thumbnails#52

Merged
inotia00 merged 2 commits into
inotia00:devfrom
YT-Advanced:regex
Jul 17, 2024
Merged

fix(YouTube - Alternative Thumbnails Domains): Handle more thumbnails#52
inotia00 merged 2 commits into
inotia00:devfrom
YT-Advanced:regex

Conversation

@YT-Advanced
Copy link
Copy Markdown

@YT-Advanced YT-Advanced commented Jul 14, 2024

This regex was extracted from YouTube and edited to fit this patch
I also confirm that all thumbnails that are being handled only be used to get community post, channel profile, etc

Original regex:

"((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,y,z]|-testonly(-rollout)?)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-usercontent)|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-usercontent))\\/"

@inotia00
Copy link
Copy Markdown
Owner

Thanks

@inotia00 inotia00 merged commit fceddf1 into inotia00:dev Jul 17, 2024
@YT-Advanced YT-Advanced deleted the regex branch July 17, 2024 07:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants