mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
Undo go changes
This commit is contained in:
parent
421d6cf3cb
commit
6a413ba612
@ -120,7 +120,6 @@ class GoIE(AdobePassIE):
|
|||||||
|
|
||||||
def _extract_videos(self, brand, video_id='-1', show_id='-1'):
|
def _extract_videos(self, brand, video_id='-1', show_id='-1'):
|
||||||
display_id = video_id if video_id != '-1' else show_id
|
display_id = video_id if video_id != '-1' else show_id
|
||||||
|
|
||||||
return self._download_json(
|
return self._download_json(
|
||||||
'http://api.contents.watchabc.go.com/vp2/ws/contents/3000/videos/%s/001/-1/%s/-1/%s/-1/-1.json' % (brand, show_id, video_id),
|
'http://api.contents.watchabc.go.com/vp2/ws/contents/3000/videos/%s/001/-1/%s/-1/%s/-1/-1.json' % (brand, show_id, video_id),
|
||||||
display_id)['video']
|
display_id)['video']
|
||||||
@ -145,7 +144,7 @@ class GoIE(AdobePassIE):
|
|||||||
brand = self._search_regex(
|
brand = self._search_regex(
|
||||||
(r'data-brand=\s*["\']\s*(\d+)',
|
(r'data-brand=\s*["\']\s*(\d+)',
|
||||||
r'data-page-brand=\s*["\']\s*(\d+)'), webpage, 'brand',
|
r'data-page-brand=\s*["\']\s*(\d+)'), webpage, 'brand',
|
||||||
default='004') #was 8 premerge
|
default='004')
|
||||||
site_info = next(
|
site_info = next(
|
||||||
si for _, si in self._SITE_INFO.items()
|
si for _, si in self._SITE_INFO.items()
|
||||||
if si.get('brand') == brand)
|
if si.get('brand') == brand)
|
||||||
|
Loading…
Reference in New Issue
Block a user