mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
add site info for youtube and youku
This commit is contained in:
parent
e8f48e5b09
commit
6b0d14e8a9
@ -8,7 +8,7 @@ import base64
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
class Youku(VideoExtractor):
|
class Youku(VideoExtractor):
|
||||||
name = "优酷 (Youku)"
|
name = "Youku"
|
||||||
|
|
||||||
stream_types = [
|
stream_types = [
|
||||||
{'id': 'hd3', 'container': 'flv', 'video_profile': '1080P'},
|
{'id': 'hd3', 'container': 'flv', 'video_profile': '1080P'},
|
||||||
@ -163,7 +163,8 @@ class Youku(VideoExtractor):
|
|||||||
if not self.streams[stream_id]['src'] and self.password_protected:
|
if not self.streams[stream_id]['src'] and self.password_protected:
|
||||||
log.e('[Failed] Wrong password.')
|
log.e('[Failed] Wrong password.')
|
||||||
|
|
||||||
site = Youku()
|
|
||||||
|
site_info = "YouTube.com"
|
||||||
download = site.download_by_url
|
download = site.download_by_url
|
||||||
download_playlist = site.download_playlist_by_url
|
download_playlist = site.download_playlist_by_url
|
||||||
|
|
||||||
|
@ -205,6 +205,7 @@ class YouTube(VideoExtractor):
|
|||||||
self.streams[stream_id]['src'] = [src]
|
self.streams[stream_id]['src'] = [src]
|
||||||
self.streams[stream_id]['size'] = urls_size(self.streams[stream_id]['src'])
|
self.streams[stream_id]['size'] = urls_size(self.streams[stream_id]['src'])
|
||||||
|
|
||||||
site = YouTube()
|
site = "YouTube.com"
|
||||||
|
site_info = "YouTube.com"
|
||||||
download = site.download_by_url
|
download = site.download_by_url
|
||||||
download_playlist = site.download_playlist_by_url
|
download_playlist = site.download_playlist_by_url
|
||||||
|
Loading…
Reference in New Issue
Block a user