diff --git a/src/you_get/common.py b/src/you_get/common.py index f22295cd..a92709f9 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -40,7 +40,8 @@ SITES = { 'ku6' : 'ku6', 'kugou' : 'kugou', 'kuwo' : 'kuwo', - 'letv' : 'letv', + 'le' : 'le', + 'letv' : 'le', 'lizhi' : 'lizhi', 'magisto' : 'magisto', 'metacafe' : 'metacafe', diff --git a/src/you_get/extractors/__init__.py b/src/you_get/extractors/__init__.py index dfd45596..85316520 100755 --- a/src/you_get/extractors/__init__.py +++ b/src/you_get/extractors/__init__.py @@ -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 * diff --git a/src/you_get/extractors/acfun.py b/src/you_get/extractors/acfun.py index b1206056..e78d3636 100644 --- a/src/you_get/extractors/acfun.py +++ b/src/you_get/extractors/acfun.py @@ -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 diff --git a/src/you_get/extractors/embed.py b/src/you_get/extractors/embed.py index ef66b0df..b594b9f4 100644 --- a/src/you_get/extractors/embed.py +++ b/src/you_get/extractors/embed.py @@ -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 diff --git a/src/you_get/extractors/letv.py b/src/you_get/extractors/le.py similarity index 95% rename from src/you_get/extractors/letv.py rename to src/you_get/extractors/le.py index 54da21f4..9de6c7a7 100644 --- a/src/you_get/extractors/letv.py +++ b/src/you_get/extractors/le.py @@ -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')