Explorar o código

[ninegag] Modernize and remove unused import

Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
d2983ccb25
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      youtube_dl/extractor/ninegag.py

+ 2 - 2
youtube_dl/extractor/ninegag.py

@@ -1,6 +1,5 @@
 from __future__ import unicode_literals
 from __future__ import unicode_literals
 
 
-import json
 import re
 import re
 
 
 from .common import InfoExtractor
 from .common import InfoExtractor
@@ -12,8 +11,9 @@ class NineGagIE(InfoExtractor):
 
 
     _TEST = {
     _TEST = {
         "url": "http://9gag.tv/v/1912",
         "url": "http://9gag.tv/v/1912",
-        "file": "1912.mp4",
         "info_dict": {
         "info_dict": {
+            "id": "1912",
+            "ext": "mp4",
             "description": "This 3-minute video will make you smile and then make you feel untalented and insignificant. Anyway, you should share this awesomeness. (Thanks, Dino!)",
             "description": "This 3-minute video will make you smile and then make you feel untalented and insignificant. Anyway, you should share this awesomeness. (Thanks, Dino!)",
             "title": "\"People Are Awesome 2013\" Is Absolutely Awesome",
             "title": "\"People Are Awesome 2013\" Is Absolutely Awesome",
             "view_count": int,
             "view_count": int,