]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[leeco] Letv renamed to LeEco
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 2 Mar 2016 19:24:20 +0000 (03:24 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 2 Mar 2016 19:27:55 +0000 (03:27 +0800)
LeEco is the company name and Le is the domain name.

For more information see the Chinese news post
http://www.techorz.com/company-news/letv-renamed-to-leeco-and-new-logo/

youtube_dl/extractor/__init__.py
youtube_dl/extractor/leeco.py [moved from youtube_dl/extractor/letv.py with 97% similarity]

index 19c56317297f1bd7fc82420664615475604999df..037654a23b538e01c895e917fb6b2c050adc20bf 100644 (file)
@@ -352,9 +352,9 @@ from .la7 import LA7IE
 from .laola1tv import Laola1TvIE
 from .lecture2go import Lecture2GoIE
 from .lemonde import LemondeIE
-from .letv import (
-    LetvIE,
-    LetvPlaylistIE,
+from .leeco import (
+    LeIE,
+    LePlaylistIE,
     LetvCloudIE,
 )
 from .libsyn import LibsynIE
similarity index 97%
rename from youtube_dl/extractor/letv.py
rename to youtube_dl/extractor/leeco.py
index ce25bb4dbf12b1959f36ac62b20570c7a1bd82c5..d0cd3f5919350117a1babe44df1e1ea6ff4bb3c5 100644 (file)
@@ -26,7 +26,7 @@ from ..utils import (
 )
 
 
-class LetvIE(InfoExtractor):
+class LeIE(InfoExtractor):
     IE_DESC = '乐视网'
     _VALID_URL = r'http://www\.le\.com/ptv/vplay/(?P<id>\d+)\.html'
 
@@ -195,7 +195,7 @@ class LetvIE(InfoExtractor):
         }
 
 
-class LetvPlaylistIE(InfoExtractor):
+class LePlaylistIE(InfoExtractor):
     _VALID_URL = r'http://[a-z]+\.le\.com/[a-z]+/(?P<id>[a-z0-9_]+)'
 
     _TESTS = [{
@@ -235,7 +235,7 @@ class LetvPlaylistIE(InfoExtractor):
 
     @classmethod
     def suitable(cls, url):
-        return False if LetvIE.suitable(url) else super(LetvPlaylistIE, cls).suitable(url)
+        return False if LeIE.suitable(url) else super(LePlaylistIE, cls).suitable(url)
 
     def _real_extract(self, url):
         playlist_id = self._match_id(url)
@@ -244,7 +244,7 @@ class LetvPlaylistIE(InfoExtractor):
         # Currently old domain names are still used in playlists
         media_ids = orderedSet(re.findall(
             r'<a[^>]+href="http://www\.letv\.com/ptv/vplay/(\d+)\.html', page))
-        entries = [self.url_result(LetvIE._URL_TEMPLATE % media_id, ie='Letv')
+        entries = [self.url_result(LeIE._URL_TEMPLATE % media_id, ie='Le')
                    for media_id in media_ids]
 
         title = self._html_search_meta('keywords', page,
@@ -256,6 +256,8 @@ class LetvPlaylistIE(InfoExtractor):
 
 
 class LetvCloudIE(InfoExtractor):
+    # Most of *.letv.com is changed to *.le.com on 2016/01/02
+    # but yuntv.letv.com is kept, so also keep the extractor name
     IE_DESC = '乐视云'
     _VALID_URL = r'https?://yuntv\.letv\.com/bcloud.html\?.+'