1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

Combine lh*(-**).googleusercontent.com URL regex into one line.

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
Wiiplay123 2024-01-20 15:53:11 -06:00 committed by GitHub
parent a6fed628dd
commit 6eb62f2140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,7 @@ class BloggerExtractor(BaseExtractor):
findall_image = re.compile(
r'src="(https?://(?:'
r'blogger\.googleusercontent\.com/img|'
r'lh\d+\.googleusercontent\.com|'
r'lh\d+-\w+\.googleusercontent\.com|'
r'lh\d+(?:-\w+)?\.googleusercontent\.com|'
r'\d+\.bp\.blogspot\.com)/[^"]+)').findall
findall_video = re.compile(
r'src="(https?://www\.blogger\.com/video\.g\?token=[^"]+)').findall