[nfb] Add rtmp app field to format
[youtube-dl] / youtube_dl / extractor / nfb.py
index a8c514f53d96a016e3147b21f9e6f438b9450904..e88566c693c9139ae725604427fb8cd3894e7e3b 100644 (file)
@@ -74,7 +74,8 @@ class NFBIE(InfoExtractor):
                 description = media.find('description').text
                 # It seems assets always go from lower to better quality, so no need to sort
                 formats = [{
-                    'url': x.find('default/streamerURI').text + '/',
+                    'url': x.find('default/streamerURI').text,
+                    'app': x.find('default/streamerURI').text.split('/', 3)[3],
                     'play_path': x.find('default/url').text,
                     'rtmp_live': False,
                     'ext': 'mp4',