A feature-rich command-line audio/video downloader
[vice] Modernize
Sergey M․18ae46ad4bcf
diff --git a/youtube_dl/extractor/vice.py b/youtube_dl/extractor/vice.pyindex ae1faca1cd..01af7a9957 100644--- a/youtube_dl/extractor/vice.py+++ b/youtube_dl/extractor/vice.py@@ -1,5 +1,4 @@from __future__ import unicode_literals-import refrom .common import InfoExtractorfrom .ooyala import OoyalaIE@@ -7,7 +6,7 @@ from ..utils import ExtractorErrorclass ViceIE(InfoExtractor):- _VALID_URL = r'https?://(?:.+?\.)?vice\.com/.*?/(?P<name>.+)'+ _VALID_URL = r'https?://(?:.+?\.)?vice\.com/(?:[^/]+/)+(?P<id>.+)'_TESTS = [{@@ -28,9 +27,8 @@ class ViceIE(InfoExtractor):]def _real_extract(self, url):- mobj = re.match(self._VALID_URL, url)- name = mobj.group('name')- webpage = self._download_webpage(url, name)+ video_id = self._match_id(url)+ webpage = self._download_webpage(url, video_id)try:embed_code = self._search_regex(r'embedCode=([^&\'"]+)', webpage,