about summary refs log tree commit diff
path: root/youtube_dl/extractor/nba.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-08-30 10:46:48 +0100
committerRemita Amine <remitamine@gmail.com>2016-08-30 10:46:48 +0100
commit3c77a54d5dfa1097d5e3a5eaa0c631b5b01e93ce (patch)
treef03dfbc9f2db50363add882d85fe9d6e9461b976 /youtube_dl/extractor/nba.py
parentda30a20a4d8b0ece61c271a5d0f0c6de2817ef5f (diff)
downloadyoutube-dl-3c77a54d5dfa1097d5e3a5eaa0c631b5b01e93ce.tar.gz
youtube-dl-3c77a54d5dfa1097d5e3a5eaa0c631b5b01e93ce.tar.xz
youtube-dl-3c77a54d5dfa1097d5e3a5eaa0c631b5b01e93ce.zip
[turner] keep video id intact
Diffstat (limited to 'youtube_dl/extractor/nba.py')
-rw-r--r--youtube_dl/extractor/nba.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/youtube_dl/extractor/nba.py b/youtube_dl/extractor/nba.py
index aabd5b670..53561961c 100644
--- a/youtube_dl/extractor/nba.py
+++ b/youtube_dl/extractor/nba.py
@@ -39,18 +39,19 @@ class NBAIE(TurnerBaseIE):
         'url': 'http://watch.nba.com/video/channels/playoffs/2015/05/20/0041400301-cle-atl-recap.nba',
         'md5': 'b2b39b81cf28615ae0c3360a3f9668c4',
         'info_dict': {
-            'id': '0041400301-cle-atl-recap',
+            'id': 'channels/playoffs/2015/05/20/0041400301-cle-atl-recap.nba',
             'ext': 'mp4',
             'title': 'Hawks vs. Cavaliers Game 1',
             'description': 'md5:8094c3498d35a9bd6b1a8c396a071b4d',
             'duration': 228,
             'timestamp': 1432134543,
             'upload_date': '20150520',
-        }
+        },
+        'expected_warnings': ['Unable to download f4m manifest'],
     }, {
         'url': 'http://www.nba.com/clippers/news/doc-rivers-were-not-trading-blake',
         'info_dict': {
-            'id': '1455672027478-Doc_Feb16_720',
+            'id': 'teams/clippers/2016/02/17/1455672027478-Doc_Feb16_720.mov-297324',
             'ext': 'mp4',
             'title': 'Practice: Doc Rivers - 2/16/16',
             'description': 'Head Coach Doc Rivers addresses the media following practice.',
@@ -61,6 +62,7 @@ class NBAIE(TurnerBaseIE):
             # m3u8 download
             'skip_download': True,
         },
+        'expected_warnings': ['Unable to download f4m manifest'],
     }, {
         'url': 'http://www.nba.com/timberwolves/wiggins-shootaround#',
         'info_dict': {
@@ -75,7 +77,7 @@ class NBAIE(TurnerBaseIE):
     }, {
         'url': 'http://www.nba.com/timberwolves/wiggins-shootaround#',
         'info_dict': {
-            'id': 'Wigginsmp4-3462601',
+            'id': 'teams/timberwolves/2014/12/12/Wigginsmp4-3462601',
             'ext': 'mp4',
             'title': 'Shootaround Access - Dec. 12 | Andrew Wiggins',
             'description': 'Wolves rookie Andrew Wiggins addresses the media after Friday\'s shootaround.',
@@ -87,6 +89,7 @@ class NBAIE(TurnerBaseIE):
             # m3u8 download
             'skip_download': True,
         },
+        'expected_warnings': ['Unable to download f4m manifest'],
     }]
 
     _PAGE_SIZE = 30