Start moving to ytdl-org
[youtube-dl] / youtube_dl / extractor / veehd.py
index 7fdeb784d65149402331a6b9a2396f5cf1f0fa20..a6dc3c8d894fa7dd148420713bbc330da7341592 100644 (file)
@@ -5,6 +5,7 @@ import json
 
 from .common import InfoExtractor
 from ..compat import (
+    compat_urllib_parse_unquote,
     compat_urlparse,
 )
 from ..utils import (
@@ -39,13 +40,13 @@ class VeeHDIE(InfoExtractor):
             'uploader_id': 'spotted',
         }
     }, {
-        'url': 'http://veehd.com/video/4665804_Tell-No-One-Ne-le-dis-a-personne-2006-French-EngSoftSubs-Re-Up',
+        'url': 'http://veehd.com/video/2046729_2012-2009-DivX-Trailer',
         'info_dict': {
-            'id': '4665804',
+            'id': '2046729',
             'ext': 'avi',
-            'title': 'Tell No One (Ne le dis a personne) 2006 French(EngSoftSubs) Re-Up',
-            'description': 'md5:d660cca685549776f37165e9a10b60ba',
-            'uploader_id': 'belial2549',
+            'title': '2012 (2009) DivX Trailer',
+            'description': 'md5:75435ee95255e6a9838ac6f6f3a2396b',
+            'uploader_id': 'Movie_Trailers',
         }
     }]
 
@@ -53,7 +54,7 @@ class VeeHDIE(InfoExtractor):
         video_id = self._match_id(url)
 
         # VeeHD seems to send garbage on the first request.
-        # See https://github.com/rg3/youtube-dl/issues/2102
+        # See https://github.com/ytdl-org/youtube-dl/issues/2102
         self._download_webpage(url, video_id, 'Requesting webpage')
         webpage = self._download_webpage(url, video_id)
 
@@ -76,7 +77,7 @@ class VeeHDIE(InfoExtractor):
 
         if config_json:
             config = json.loads(config_json)
-            video_url = compat_urlparse.unquote(config['clip']['url'])
+            video_url = compat_urllib_parse_unquote(config['clip']['url'])
 
         if not video_url:
             video_url = self._html_search_regex(