summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-05-14 20:13:34 +0700
committerSergey M․ <dstftw@gmail.com>2014-05-14 20:13:34 +0700
commita2d5a4ee64926c82d0f7d29aebd7654044a61f89 (patch)
tree73bfc435927a68d4697bfa51b7998b2baea93fcb
parentdffcc2ea0c397bafb1712bcc29c0620fa86516ed (diff)
downloadyoutube-dl-a2d5a4ee64926c82d0f7d29aebd7654044a61f89.tar.gz
youtube-dl-a2d5a4ee64926c82d0f7d29aebd7654044a61f89.tar.xz
youtube-dl-a2d5a4ee64926c82d0f7d29aebd7654044a61f89.zip
[gamespot] Update test URL and modernize
-rw-r--r--youtube_dl/extractor/gamespot.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/youtube_dl/extractor/gamespot.py b/youtube_dl/extractor/gamespot.py
index c9598ad3a..3d67b9d60 100644
--- a/youtube_dl/extractor/gamespot.py
+++ b/youtube_dl/extractor/gamespot.py
@@ -15,11 +15,12 @@ from ..utils import (
 class GameSpotIE(InfoExtractor):
     _VALID_URL = r'(?:http://)?(?:www\.)?gamespot\.com/.*-(?P<page_id>\d+)/?'
     _TEST = {
-        "url": "http://www.gamespot.com/arma-iii/videos/arma-iii-community-guide-sitrep-i-6410818/",
-        "file": "gs-2300-6410818.mp4",
-        "md5": "b2a30deaa8654fcccd43713a6b6a4825",
-        "info_dict": {
-            "title": "Arma 3 - Community Guide: SITREP I",
+        'url': 'http://www.gamespot.com/videos/arma-3-community-guide-sitrep-i/2300-6410818/',
+        'md5': 'b2a30deaa8654fcccd43713a6b6a4825',
+        'info_dict': {
+            'id': 'gs-2300-6410818',
+            'ext': 'mp4',
+            'title': 'Arma 3 - Community Guide: SITREP I',
             'description': 'Check out this video where some of the basics of Arma 3 is explained.',
         }
     }