mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[letv] fix #947
This commit is contained in:
parent
abf477f796
commit
fd1c63618a
@ -40,7 +40,8 @@ SITES = {
|
|||||||
'ku6' : 'ku6',
|
'ku6' : 'ku6',
|
||||||
'kugou' : 'kugou',
|
'kugou' : 'kugou',
|
||||||
'kuwo' : 'kuwo',
|
'kuwo' : 'kuwo',
|
||||||
'letv' : 'letv',
|
'le' : 'le',
|
||||||
|
'letv' : 'le',
|
||||||
'lizhi' : 'lizhi',
|
'lizhi' : 'lizhi',
|
||||||
'magisto' : 'magisto',
|
'magisto' : 'magisto',
|
||||||
'metacafe' : 'metacafe',
|
'metacafe' : 'metacafe',
|
||||||
|
@ -31,7 +31,7 @@ from .jpopsuki import *
|
|||||||
from .ku6 import *
|
from .ku6 import *
|
||||||
from .kugou import *
|
from .kugou import *
|
||||||
from .kuwo import *
|
from .kuwo import *
|
||||||
from .letv import *
|
from .le import *
|
||||||
from .lizhi import *
|
from .lizhi import *
|
||||||
from .magisto import *
|
from .magisto import *
|
||||||
from .metacafe import *
|
from .metacafe import *
|
||||||
|
@ -4,7 +4,7 @@ __all__ = ['acfun_download']
|
|||||||
|
|
||||||
from ..common import *
|
from ..common import *
|
||||||
|
|
||||||
from .letv import letvcloud_download_by_vu
|
from .le import letvcloud_download_by_vu
|
||||||
from .qq import qq_download_by_vid
|
from .qq import qq_download_by_vid
|
||||||
from .sina import sina_download_by_vid
|
from .sina import sina_download_by_vid
|
||||||
from .tudou import tudou_download_by_iid
|
from .tudou import tudou_download_by_iid
|
||||||
|
@ -3,7 +3,7 @@ __all__ = ['embed_download']
|
|||||||
from ..common import *
|
from ..common import *
|
||||||
|
|
||||||
from .iqiyi import iqiyi_download_by_vid
|
from .iqiyi import iqiyi_download_by_vid
|
||||||
from .letv import letvcloud_download_by_vu
|
from .le import letvcloud_download_by_vu
|
||||||
from .qq import qq_download_by_vid
|
from .qq import qq_download_by_vid
|
||||||
from .sina import sina_download_by_vid
|
from .sina import sina_download_by_vid
|
||||||
from .tudou import tudou_download_by_id
|
from .tudou import tudou_download_by_id
|
||||||
|
@ -130,14 +130,12 @@ def letv_download(url, output_dir='.', merge=True, info_only=False ,**kwargs):
|
|||||||
letvcloud_download(url, output_dir=output_dir, merge=merge, info_only=info_only)
|
letvcloud_download(url, output_dir=output_dir, merge=merge, info_only=info_only)
|
||||||
else:
|
else:
|
||||||
html = get_content(url)
|
html = get_content(url)
|
||||||
#to get title
|
vid = match1(url, r'http://www.letv.com/ptv/vplay/(\d+).html') or \
|
||||||
if re.match(r'http://www.letv.com/ptv/vplay/(\d+).html', url):
|
match1(url, r'http://www.le.com/ptv/vplay/(\d+).html') or \
|
||||||
vid = match1(url, r'http://www.letv.com/ptv/vplay/(\d+).html')
|
match1(html, r'vid="(\d+)"')
|
||||||
else:
|
|
||||||
vid = match1(html, r'vid="(\d+)"')
|
|
||||||
title = match1(html,r'name="irTitle" content="(.*?)"')
|
title = match1(html,r'name="irTitle" content="(.*?)"')
|
||||||
letv_download_by_vid(vid, title=title, output_dir=output_dir, merge=merge, info_only=info_only,**kwargs)
|
letv_download_by_vid(vid, title=title, output_dir=output_dir, merge=merge, info_only=info_only,**kwargs)
|
||||||
|
|
||||||
site_info = "LeTV.com"
|
site_info = "Le.com"
|
||||||
download = letv_download
|
download = letv_download
|
||||||
download_playlist = playlist_not_supported('letv')
|
download_playlist = playlist_not_supported('letv')
|
Loading…
Reference in New Issue
Block a user