瀏覽代碼

[youtube] Add age limit to tests

Sergey M․ 10 年之前
父節點
當前提交
34952f09e1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      youtube_dl/extractor/youtube.py

+ 3 - 0
youtube_dl/extractor/youtube.py

@@ -365,6 +365,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 'description': 'md5:64249768eec3bc4276236606ea996373',
                 'description': 'md5:64249768eec3bc4276236606ea996373',
                 'uploader': 'justintimberlakeVEVO',
                 'uploader': 'justintimberlakeVEVO',
                 'uploader_id': 'justintimberlakeVEVO',
                 'uploader_id': 'justintimberlakeVEVO',
+                'age_limit': 18,
             }
             }
         },
         },
         {
         {
@@ -475,6 +476,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 'uploader': 'The Witcher',
                 'uploader': 'The Witcher',
                 'uploader_id': 'WitcherGame',
                 'uploader_id': 'WitcherGame',
                 'upload_date': '20140605',
                 'upload_date': '20140605',
+                'age_limit': 18,
             },
             },
         },
         },
         # Age-gate video with encrypted signature
         # Age-gate video with encrypted signature
@@ -488,6 +490,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 'uploader': 'LloydVEVO',
                 'uploader': 'LloydVEVO',
                 'uploader_id': 'LloydVEVO',
                 'uploader_id': 'LloydVEVO',
                 'upload_date': '20110629',
                 'upload_date': '20110629',
+                'age_limit': 18,
             },
             },
         },
         },
         # video_info is None (https://github.com/rg3/youtube-dl/issues/4421)
         # video_info is None (https://github.com/rg3/youtube-dl/issues/4421)