projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[lynda] Completely skip videos we don't have access to, extract base class and modern...
[youtube-dl]
/
youtube_dl
/
extractor
/
rtve.py
diff --git
a/youtube_dl/extractor/rtve.py
b/youtube_dl/extractor/rtve.py
index c0fd23ff108f8b523a0e71f458147287954f429c..b42442d127c13e69fc81cb27e71cf117d2cb96b2 100644
(file)
--- a/
youtube_dl/extractor/rtve.py
+++ b/
youtube_dl/extractor/rtve.py
@@
-8,8
+8,9
@@
import time
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
-
struct_unpack
,
+
float_or_none
,
remove_end,
remove_end,
+ struct_unpack,
)
)
@@
-67,6
+68,7
@@
class RTVEALaCartaIE(InfoExtractor):
'id': '2491869',
'ext': 'mp4',
'title': 'Balonmano - Swiss Cup masculina. Final: España-Suecia',
'id': '2491869',
'ext': 'mp4',
'title': 'Balonmano - Swiss Cup masculina. Final: España-Suecia',
+ 'duration': 5024.566,
},
}, {
'note': 'Live stream',
},
}, {
'note': 'Live stream',
@@
-113,6
+115,7
@@
class RTVEALaCartaIE(InfoExtractor):
'thumbnail': info.get('image'),
'page_url': url,
'subtitles': subtitles,
'thumbnail': info.get('image'),
'page_url': url,
'subtitles': subtitles,
+ 'duration': float_or_none(info.get('duration'), scale=1000),
}
def _get_subtitles(self, video_id, sub_file):
}
def _get_subtitles(self, video_id, sub_file):