projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e73a67
)
[letv] Keep videos' order in playlists
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 2 Mar 2016 18:40:51 +0000
(
02:40
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 2 Mar 2016 19:27:55 +0000
(
03:27
+0800)
youtube_dl/extractor/letv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/letv.py
b/youtube_dl/extractor/letv.py
index 246556316c95922de4bb130d76b04ecb8bfe16b3..91172c096066894a368a73fcea1d951e607f1e42 100644
(file)
--- a/
youtube_dl/extractor/letv.py
+++ b/
youtube_dl/extractor/letv.py
@@
-22,6
+22,7
@@
from ..utils import (
str_or_none,
encode_data_uri,
url_basename,
+ orderedSet,
)
@@
-211,8
+212,8
@@
class LetvTvIE(InfoExtractor):
page = self._download_webpage(url, playlist_id)
# Currently old domain names are still used in playlists
- media_ids =
list(s
et(re.findall(
- r'http://www.letv.com/ptv/vplay/(\d+).html', page))
)
+ media_ids =
orderedS
et(re.findall(
+ r'http://www.letv.com/ptv/vplay/(\d+).html', page))
entries = [self.url_result(LetvIE._URL_TEMPLATE % media_id, ie='Letv')
for media_id in media_ids]