This commit is contained in:
Mort Yao 2016-03-03 21:49:47 +01:00
parent abf477f796
commit fd1c63618a
5 changed files with 9 additions and 10 deletions

View File

@ -40,7 +40,8 @@ SITES = {
'ku6' : 'ku6',
'kugou' : 'kugou',
'kuwo' : 'kuwo',
'letv' : 'letv',
'le' : 'le',
'letv' : 'le',
'lizhi' : 'lizhi',
'magisto' : 'magisto',
'metacafe' : 'metacafe',

View File

@ -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 *

View File

@ -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

View File

@ -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

View File

@ -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')