aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2021-01-03 06:45:17 +0700
committerSergey M․ <dstftw@gmail.com>2021-01-03 06:45:17 +0700
commitcabfd4b1f0354518068bbdf0718cd36497d5c8a3 (patch)
tree701968aacfdaed48193c72f89a319e6433b1362f /youtube_dl/extractor
parent7b643d4cd0f5aa02149e29d8212acd42038da63b (diff)
downloadyoutube-dl-cabfd4b1f0354518068bbdf0718cd36497d5c8a3.tar.xz
[nrk] Inline _extract_from_playback
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/nrk.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py
index 5f12b0d9e..520206534 100644
--- a/youtube_dl/extractor/nrk.py
+++ b/youtube_dl/extractor/nrk.py
@@ -143,7 +143,9 @@ class NRKIE(NRKBaseIE):
'only_matching': True,
}]
- def _extract_from_playback(self, video_id):
+ def _real_extract(self, url):
+ video_id = self._match_id(url).split('/')[-1]
+
path_templ = 'playback/%s/' + video_id
def call_playback_api(item, query=None):
@@ -212,10 +214,6 @@ class NRKIE(NRKBaseIE):
'formats': formats,
}
- def _real_extract(self, url):
- video_id = self._match_id(url).split('/')[-1]
- return self._extract_from_playback(video_id)
-
class NRKTVIE(InfoExtractor):
IE_DESC = 'NRK TV and NRK Radio'