瀏覽代碼

[vevo] Adapt test to constantly changing timestamp

Philipp Hagemeister 11 年之前
父節點
當前提交
aba77bbfc2
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      youtube_dl/extractor/vevo.py

+ 3 - 2
youtube_dl/extractor/vevo.py

@@ -58,8 +58,9 @@ class VevoIE(InfoExtractor):
             'age_limit': 18,
             'title': 'Tunnel Vision (Explicit)',
             'uploader': 'Justin Timberlake',
-            'upload_date': '20130704',
-            'timestamp': 1372906800,
+            # timestamp and upload_date are often incorrect; seem to change randomly
+            'upload_date': 're:2013070[34]',
+            'timestamp': int,
         },
         'params': {
             'skip_download': 'true',