aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-08-29 22:41:49 +0600
committerSergey M․ <[email protected]>2015-08-29 22:41:49 +0600
commitc88e118b3cfb611bf2eae300a13885772481134f (patch)
treeb54f46a1c9c56755829d981d38a93f55792efebd
parentae6a802106663a5bb0f94803dec21bf5feaa2527 (diff)
downloadyoutube-dl-c88e118b3cfb611bf2eae300a13885772481134f.tar.gz
youtube-dl-c88e118b3cfb611bf2eae300a13885772481134f.zip
[nowtv] Fix display_id (Closes #6702)
-rw-r--r--youtube_dl/extractor/nowtv.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/nowtv.py b/youtube_dl/extractor/nowtv.py
index 66c627bec..c8257719f 100644
--- a/youtube_dl/extractor/nowtv.py
+++ b/youtube_dl/extractor/nowtv.py
@@ -130,10 +130,16 @@ class NowTVIE(InfoExtractor):
}, {
'url': 'http://www.nowtv.at/rtl/bauer-sucht-frau/die-neuen-bauern-und-eine-hochzeit/preview?return=/rtl/bauer-sucht-frau/die-neuen-bauern-und-eine-hochzeit',
'only_matching': True,
+ }, {
+ 'url': 'http://www.nowtv.de/rtl2/echtzeit/list/aktuell/schnelles-geld-am-ende-der-welt/player',
+ 'only_matching': True,
}]
def _real_extract(self, url):
display_id = self._match_id(url)
+ display_id_split = display_id.split('/')
+ if len(display_id) > 2:
+ display_id = '/'.join((display_id_split[0], display_id_split[-1]))
info = self._download_json(
'https://api.nowtv.de/v3/movies/%s?fields=id,title,free,geoblocked,articleLong,articleShort,broadcastStartDate,seoUrl,duration,format,files' % display_id,