about summary refs log tree commit diff
path: root/youtube_dl/extractor/nextmedia.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-25 07:39:22 +0100
committerremitamine <remitamine@gmail.com>2015-09-25 07:39:22 +0100
commit1f9fb20fcda76f165ce39b01fe907fc74c8054d3 (patch)
tree5b2c9dbb815390310fd481616843d788d6f9822b /youtube_dl/extractor/nextmedia.py
parent0940c5b4c6a068d4919fd29a8db2a85ab3bbf703 (diff)
downloadyoutube-dl-1f9fb20fcda76f165ce39b01fe907fc74c8054d3.tar.gz
youtube-dl-1f9fb20fcda76f165ce39b01fe907fc74c8054d3.tar.xz
youtube-dl-1f9fb20fcda76f165ce39b01fe907fc74c8054d3.zip
[nextmedia] update AppleDailyIE tests
Diffstat (limited to 'youtube_dl/extractor/nextmedia.py')
-rw-r--r--youtube_dl/extractor/nextmedia.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/youtube_dl/extractor/nextmedia.py b/youtube_dl/extractor/nextmedia.py
index c10784f6b..d1688457f 100644
--- a/youtube_dl/extractor/nextmedia.py
+++ b/youtube_dl/extractor/nextmedia.py
@@ -126,7 +126,8 @@ class AppleDailyIE(NextMediaIE):
             'thumbnail': 're:^https?://.*\.jpg$',
             'description': 'md5:23c0aac567dc08c9c16a3161a2c2e3cd',
             'upload_date': '20150128',
-        }
+        },
+        'skip': 'redirect to http://www.appledaily.com.tw/animation/',
     }, {
         # No thumbnail
         'url': 'http://www.appledaily.com.tw/animation/realtimenews/new/20150128/5003673/',
@@ -140,10 +141,19 @@ class AppleDailyIE(NextMediaIE):
         },
         'expected_warnings': [
             'video thumbnail',
-        ]
+        ],
+        'skip': 'redirect to http://www.appledaily.com.tw/animation/',
     }, {
         'url': 'http://www.appledaily.com.tw/appledaily/article/supplement/20140417/35770334/',
-        'only_matching': True,
+        'md5': 'eaa20e6b9df418c912d7f5dec2ba734d',
+        'info_dict': {
+            'id': '35770334',
+            'ext': 'mp4',
+            'title': '咖啡占卜測 XU裝熟指數',
+            'thumbnail': 're:^https?://.*\.jpg$',
+            'description': 'md5:7b859991a6a4fedbdf3dd3b66545c748',
+            'upload_date': '20140417',
+        },
     }]
 
     _URL_PATTERN = r'\{url: \'(.+)\'\}'