X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Frtlnow.py;h=4835ec5ecada755a12d7003fed6355adfd6936a6;hb=aa51d20d196db0554824f191816fa3079bc633bb;hp=76a9704fd6481bede2c9eb2834c5b6f4ab34b11f;hpb=995befe0e9b2a829b7aa4aeab76b4a44979c2061;p=youtube-dl
diff --git a/youtube_dl/extractor/rtlnow.py b/youtube_dl/extractor/rtlnow.py
index 76a9704fd..4835ec5ec 100644
--- a/youtube_dl/extractor/rtlnow.py
+++ b/youtube_dl/extractor/rtlnow.py
@@ -8,7 +8,6 @@ from ..utils import (
ExtractorError,
clean_html,
unified_strdate,
- parse_duration,
int_or_none,
)
@@ -123,14 +122,16 @@ class RTLnowIE(InfoExtractor):
upload_date = unified_strdate(self._html_search_meta('uploadDate', webpage, 'upload date'))
+ mobj = re.search(r'', webpage)
+ duration = int(mobj.group('seconds')) if mobj else None
+
playerdata_url = self._html_search_regex(
r"'playerdata': '(?P[^']+)'", webpage, 'playerdata_url')
playerdata = self._download_xml(playerdata_url, video_id, 'Downloading player data XML')
videoinfo = playerdata.find('./playlist/videoinfo')
- duration = parse_duration(videoinfo.find('duration').text)
-
+
formats = []
for filename in videoinfo.findall('filename'):
mobj = re.search(r'(?Prtmpe://(?:[^/]+/){2})(?P.+)', filename.text)