From 31278775bb6070d80279b715902e345858e38e09 Mon Sep 17 00:00:00 2001 From: FA Date: Thu, 25 Apr 2019 16:21:02 -0700 Subject: [PATCH] [earthcams] Add new extractor per #19293 --- youtube_dl/extractor/earthcams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/earthcams.py b/youtube_dl/extractor/earthcams.py index 574e11516..e722fa9ea 100644 --- a/youtube_dl/extractor/earthcams.py +++ b/youtube_dl/extractor/earthcams.py @@ -11,7 +11,7 @@ from ..utils import ( class EarthCamsIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?earthcam\.com/.*?cam=(?P\w+)' + _VALID_URL = r'https?://(?:www\.)?earthcam\.com/.*\?.*cam=(?P\w+)' _TEST = { 'url': 'https://www.earthcam.com/usa/newyork/timessquare/?cam=tsrobo1', 'info_dict': { @@ -21,7 +21,7 @@ class EarthCamsIE(InfoExtractor): 'description': 'EarthCam brings you an HD, panoramic view of Times Square looking up, down, and across 7th Avenue and Broadway. See why Times Square is called the "Crossroads of the World!"', 'view_count': int, 'is_live': True, - 'thumbnail': r're:^https?://.*\.jpg$', + 'thumbnail': r're:^https?://.*\.(jpg|png)$', }, }