]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[kickstarter] Eliminate the warning message and add_ie
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 1 Feb 2016 09:10:11 +0000 (17:10 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 1 Feb 2016 09:10:11 +0000 (17:10 +0800)
youtube_dl/extractor/kickstarter.py

index 1d391e69ff7e0aba1b78ae5e32792b2dca839943..e703fc59789708ffe47548a542b93b6717ae8c4a 100644 (file)
@@ -2,6 +2,7 @@
 from __future__ import unicode_literals
 
 from .common import InfoExtractor
+from ..utils import smuggle_url
 
 
 class KickStarterIE(InfoExtractor):
@@ -27,7 +28,8 @@ class KickStarterIE(InfoExtractor):
             'uploader_id': 'pebble',
             'uploader': 'Pebble Technology',
             'title': 'Pebble iOS Notifications',
-        }
+        },
+        'add_ie': ['Vimeo'],
     }, {
         'url': 'https://www.kickstarter.com/projects/1420158244/power-drive-2000/widget/video.html',
         'info_dict': {
@@ -52,7 +54,7 @@ class KickStarterIE(InfoExtractor):
             return {
                 '_type': 'url_transparent',
                 'ie_key': 'Generic',
-                'url': url,
+                'url': smuggle_url(url, {'to_generic': True}),
                 'title': title,
             }