mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-11 03:58:58 +00:00
Fixup import
This commit is contained in:
parent
8f43270668
commit
2dbdf6c38b
@ -11,6 +11,7 @@ from ..utils import (
|
|||||||
ExtractorError,
|
ExtractorError,
|
||||||
js_to_json,
|
js_to_json,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
|
url_or_none,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
try_get,
|
try_get,
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
@ -116,7 +117,7 @@ class ABCIViewShowIE(InfoExtractor):
|
|||||||
'title': 'Sarah And Duck',
|
'title': 'Sarah And Duck',
|
||||||
'description': 'Sarah is a 7 year old girl with big eyes and a green hat, who lives with her quacky, flappy, slightly manic, but endearing best friend, Duck.',
|
'description': 'Sarah is a 7 year old girl with big eyes and a green hat, who lives with her quacky, flappy, slightly manic, but endearing best friend, Duck.',
|
||||||
},
|
},
|
||||||
'playlist_count': 14,
|
'playlist_count': 15,
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
@ -148,10 +149,10 @@ class ABCIViewShowIE(InfoExtractor):
|
|||||||
|
|
||||||
for series in group_list:
|
for series in group_list:
|
||||||
for ep in try_get(series, lambda x: x['_embedded']['videoEpisodes'], list):
|
for ep in try_get(series, lambda x: x['_embedded']['videoEpisodes'], list):
|
||||||
path = url_or_none(ep.get('_links', {}).get('deeplink', {}).get('href'))
|
path = url_or_none('https://iview.abc.net.au' + ep.get('_links', {}).get('deeplink', {}).get('href'))
|
||||||
if path:
|
if path:
|
||||||
entries.append(self.url_result(
|
entries.append(self.url_result(
|
||||||
'https://iview.abc.net.au' + path, ie="ABCIViewShow", video_id="series_id"))
|
path, ie="ABCIViewShow", video_id="series_id"))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
|
Loading…
Reference in New Issue
Block a user