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',
|
||||
'kugou' : 'kugou',
|
||||
'kuwo' : 'kuwo',
|
||||
'letv' : 'letv',
|
||||
'le' : 'le',
|
||||
'letv' : 'le',
|
||||
'lizhi' : 'lizhi',
|
||||
'magisto' : 'magisto',
|
||||
'metacafe' : 'metacafe',
|
||||
|
@ -31,7 +31,7 @@ from .jpopsuki import *
|
||||
from .ku6 import *
|
||||
from .kugou import *
|
||||
from .kuwo import *
|
||||
from .letv import *
|
||||
from .le import *
|
||||
from .lizhi import *
|
||||
from .magisto import *
|
||||
from .metacafe import *
|
||||
|
@ -4,7 +4,7 @@ __all__ = ['acfun_download']
|
||||
|
||||
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 .sina import sina_download_by_vid
|
||||
from .tudou import tudou_download_by_iid
|
||||
|
@ -3,7 +3,7 @@ __all__ = ['embed_download']
|
||||
from ..common import *
|
||||
|
||||
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 .sina import sina_download_by_vid
|
||||
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)
|
||||
else:
|
||||
html = get_content(url)
|
||||
#to get title
|
||||
if re.match(r'http://www.letv.com/ptv/vplay/(\d+).html', url):
|
||||
vid = match1(url, r'http://www.letv.com/ptv/vplay/(\d+).html')
|
||||
else:
|
||||
vid = match1(html, r'vid="(\d+)"')
|
||||
vid = match1(url, r'http://www.letv.com/ptv/vplay/(\d+).html') or \
|
||||
match1(url, r'http://www.le.com/ptv/vplay/(\d+).html') or \
|
||||
match1(html, r'vid="(\d+)"')
|
||||
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)
|
||||
|
||||
site_info = "LeTV.com"
|
||||
site_info = "Le.com"
|
||||
download = letv_download
|
||||
download_playlist = playlist_not_supported('letv')
|
Loading…
Reference in New Issue
Block a user