projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Remove info el for get_video_info request
[youtube-dl]
/
youtube_dl
/
extractor
/
itv.py
diff --git
a/youtube_dl/extractor/itv.py
b/youtube_dl/extractor/itv.py
index 40cffed465458e90021dfd87604e9e3eabe98f47..de65b6bb45d8980f9dafce9f60c3e19539dc58d5 100644
(file)
--- a/
youtube_dl/extractor/itv.py
+++ b/
youtube_dl/extractor/itv.py
@@
-13,16
+13,17
@@
from ..compat import (
compat_etree_register_namespace,
)
from ..utils import (
compat_etree_register_namespace,
)
from ..utils import (
+ determine_ext,
+ ExtractorError,
extract_attributes,
extract_attributes,
- xpath_with_ns,
- xpath_element,
- xpath_text,
int_or_none,
merge_dicts,
parse_duration,
smuggle_url,
int_or_none,
merge_dicts,
parse_duration,
smuggle_url,
- ExtractorError,
- determine_ext,
+ url_or_none,
+ xpath_with_ns,
+ xpath_element,
+ xpath_text,
)
)
@@
-250,8
+251,8
@@
class ITVIE(InfoExtractor):
for sub in subs:
if not isinstance(sub, dict):
continue
for sub in subs:
if not isinstance(sub, dict):
continue
- href =
sub.get('Href'
)
- if
isinstance(href, compat_str)
:
+ href =
url_or_none(sub.get('Href')
)
+ if
href
:
extract_subtitle(href)
if not info.get('duration'):
info['duration'] = parse_duration(video_data.get('Duration'))
extract_subtitle(href)
if not info.get('duration'):
info['duration'] = parse_duration(video_data.get('Duration'))