mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-24 15:27:55 +01:00
[letv] Keep videos' order in playlists
This commit is contained in:
parent
5e73a67d44
commit
7465e7e42d
@ -22,6 +22,7 @@ from ..utils import (
|
|||||||
str_or_none,
|
str_or_none,
|
||||||
encode_data_uri,
|
encode_data_uri,
|
||||||
url_basename,
|
url_basename,
|
||||||
|
orderedSet,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -211,8 +212,8 @@ class LetvTvIE(InfoExtractor):
|
|||||||
page = self._download_webpage(url, playlist_id)
|
page = self._download_webpage(url, playlist_id)
|
||||||
|
|
||||||
# Currently old domain names are still used in playlists
|
# Currently old domain names are still used in playlists
|
||||||
media_ids = list(set(re.findall(
|
media_ids = orderedSet(re.findall(
|
||||||
r'http://www.letv.com/ptv/vplay/(\d+).html', page)))
|
r'http://www.letv.com/ptv/vplay/(\d+).html', page))
|
||||||
entries = [self.url_result(LetvIE._URL_TEMPLATE % media_id, ie='Letv')
|
entries = [self.url_result(LetvIE._URL_TEMPLATE % media_id, ie='Letv')
|
||||||
for media_id in media_ids]
|
for media_id in media_ids]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user