projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make missing test definition fields an error
[youtube-dl]
/
youtube_dl
/
extractor
/
dailymotion.py
diff --git
a/youtube_dl/extractor/dailymotion.py
b/youtube_dl/extractor/dailymotion.py
index 6685c94a3d6b283e0b7f2240ebfcf35ce462edc2..10b97d8cac732c0902aa67cb738122fbf80c3d83 100644
(file)
--- a/
youtube_dl/extractor/dailymotion.py
+++ b/
youtube_dl/extractor/dailymotion.py
@@
-12,6
+12,7
@@
from ..utils import (
get_element_by_id,
orderedSet,
str_to_int,
get_element_by_id,
orderedSet,
str_to_int,
+ int_or_none,
ExtractorError,
)
ExtractorError,
)
@@
-124,7
+125,7
@@
class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor):
if video_url is not None:
m_size = re.search(r'H264-(\d+)x(\d+)', video_url)
if m_size is not None:
if video_url is not None:
m_size = re.search(r'H264-(\d+)x(\d+)', video_url)
if m_size is not None:
- width, height = m
_size.group(1), m_size.group(2
)
+ width, height = m
ap(int_or_none, (m_size.group(1), m_size.group(2))
)
else:
width, height = None, None
formats.append({
else:
width, height = None, None
formats.append({