Browse Source

[kickstarter] Eliminate the warning message and add_ie

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
abe694ca95
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      youtube_dl/extractor/kickstarter.py

+ 4
- 2
youtube_dl/extractor/kickstarter.py View File

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


Loading…
Cancel
Save