1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:57:17 +08:00

[verystream] little bug fix

This commit is contained in:
etmatrix 2019-04-21 09:20:07 +02:00
parent a08e83f1f1
commit 7ee1b752db

View File

@ -34,7 +34,7 @@ class VerystreamIE(InfoExtractor):
(?:www\.)? (?:www\.)?
%s %s
)/ )/
(?:e|embed)/ (?:e|stream)/
(?P<id>[a-zA-Z0-9-_]+) (?P<id>[a-zA-Z0-9-_]+)
''' % _DOMAINS ''' % _DOMAINS
@ -48,7 +48,7 @@ class VerystreamIE(InfoExtractor):
@staticmethod @staticmethod
def _extract_urls(webpage): def _extract_urls(webpage):
return re.findall( return re.findall(
r'<iframe[^>]+src=["\']((?:https?://)?%s/embed/[a-zA-Z0-9-_]+)' r'<iframe[^>]+src=["\']((?:https?://)?%s/stream/[a-zA-Z0-9-_]+)'
% VerystreamIE._DOMAINS, webpage) % VerystreamIE._DOMAINS, webpage)
def _real_extract(self, url): def _real_extract(self, url):
@ -65,7 +65,7 @@ class VerystreamIE(InfoExtractor):
}, },
} }
for path in ('e', 'embed'): for path in ('e', 'stream'):
page_url = url_pattern % path page_url = url_pattern % path
last = path == 'f' last = path == 'f'
webpage = self._download_webpage( webpage = self._download_webpage(