aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-07 21:18:32 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-07 21:18:32 +0600
commitb6bfa6fb7953b8dc477a932acea2df2d73175bc2 (patch)
tree1050183191a5c5e8ee3e5a9a86fdec699ce5d3ed /youtube_dl
parentf070197bd7b0de49672c4ff151887355d5e6a2ec (diff)
[konserthusetplay] Reorder code pieces
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/konserthusetplay.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/konserthusetplay.py b/youtube_dl/extractor/konserthusetplay.py
index e1395b24e..55291c66f 100644
--- a/youtube_dl/extractor/konserthusetplay.py
+++ b/youtube_dl/extractor/konserthusetplay.py
@@ -44,10 +44,6 @@ class KonserthusetPlayIE(InfoExtractor):
source = next(f for f in playlist if f.get('bitrates'))
- connection_url = (player_config.get('rtmp', {}).get(
- 'netConnectionUrl') or player_config.get(
- 'plugins', {}).get('bwcheck', {}).get('netConnectionUrl'))
-
FORMAT_ID_REGEX = r'_([^_]+)_h264m\.mp4'
formats = []
@@ -58,6 +54,9 @@ class KonserthusetPlayIE(InfoExtractor):
fallback_format_id = self._search_regex(
FORMAT_ID_REGEX, fallback_url, 'format id', default=None)
+ connection_url = (player_config.get('rtmp', {}).get(
+ 'netConnectionUrl') or player_config.get(
+ 'plugins', {}).get('bwcheck', {}).get('netConnectionUrl'))
if connection_url:
for f in source['bitrates']:
video_url = f.get('url')