Browse Source

[vgtv] Add view count to test cases

Sergey M․ 11 years ago
parent
commit
3fbeb95e14
1 changed files with 6 additions and 3 deletions
  1. 6 3
      youtube_dl/extractor/vgtv.py

+ 6 - 3
youtube_dl/extractor/vgtv.py

@@ -22,7 +22,8 @@ class VGTVIE(InfoExtractor):
                 'thumbnail': 're:^https?://.*\.jpg',
                 'thumbnail': 're:^https?://.*\.jpg',
                 'duration': 648.000,
                 'duration': 648.000,
                 'timestamp': 1404626400,
                 'timestamp': 1404626400,
-                'upload_date': '20140706'
+                'upload_date': '20140706',
+                'view_count': int,
             },
             },
         },
         },
         {
         {
@@ -36,7 +37,8 @@ class VGTVIE(InfoExtractor):
                 'thumbnail': 're:^https?://.*\.jpg',
                 'thumbnail': 're:^https?://.*\.jpg',
                 'duration': 9056.000,
                 'duration': 9056.000,
                 'timestamp': 1410113864,
                 'timestamp': 1410113864,
-                'upload_date': '20140907'
+                'upload_date': '20140907',
+                'view_count': int,
             },
             },
             'params': {
             'params': {
                 # m3u8 download
                 # m3u8 download
@@ -54,7 +56,8 @@ class VGTVIE(InfoExtractor):
                 'thumbnail': 're:^https?://.*\.jpg',
                 'thumbnail': 're:^https?://.*\.jpg',
                 'duration': 0,
                 'duration': 0,
                 'timestamp': 1407423348,
                 'timestamp': 1407423348,
-                'upload_date': '20140807'
+                'upload_date': '20140807',
+                'view_count': int,
             },
             },
             'params': {
             'params': {
                 # m3u8 download
                 # m3u8 download