From 946dd815db8c67e6fe5c488010b240d485b83cdf Mon Sep 17 00:00:00 2001 From: Markus B Date: Sat, 13 Feb 2016 22:35:45 +0100 Subject: [PATCH 1/2] fix netzkino extractor for subcategory urls --- youtube_dl/extractor/netzkino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/netzkino.py b/youtube_dl/extractor/netzkino.py index 0d165a82a..ea5000d3d 100644 --- a/youtube_dl/extractor/netzkino.py +++ b/youtube_dl/extractor/netzkino.py @@ -36,7 +36,7 @@ class NetzkinoIE(InfoExtractor): def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) - category_id = mobj.group('category') + category_id = mobj.group('category').split('-')[-1] video_id = mobj.group('id') api_url = 'http://api.netzkino.de.simplecache.net/capi-2.0a/categories/%s.json?d=www' % category_id From 7c36433966260bc08a024b1e4fac8ddec38e83a6 Mon Sep 17 00:00:00 2001 From: Markus B Date: Tue, 16 Feb 2016 18:09:55 +0100 Subject: [PATCH 2/2] [netzkino] well fixed it again :D last fix only worked partially --- youtube_dl/extractor/netzkino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/netzkino.py b/youtube_dl/extractor/netzkino.py index ea5000d3d..827abda02 100644 --- a/youtube_dl/extractor/netzkino.py +++ b/youtube_dl/extractor/netzkino.py @@ -36,7 +36,7 @@ class NetzkinoIE(InfoExtractor): def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) - category_id = mobj.group('category').split('-')[-1] + category_id = mobj.group('category').split('-')[0] video_id = mobj.group('id') api_url = 'http://api.netzkino.de.simplecache.net/capi-2.0a/categories/%s.json?d=www' % category_id