mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-27 08:47:55 +01:00
Small changes done to make things cleaner.
Hopefully also make things pythonic.
This commit is contained in:
parent
151adc3216
commit
54db14c4ea
@ -81,7 +81,7 @@ class PornTrexIE(PornTrexBaseIE):
|
|||||||
formats.append({'url': movie_url,
|
formats.append({'url': movie_url,
|
||||||
'ext': movie_url.split('.')[-1],
|
'ext': movie_url.split('.')[-1],
|
||||||
'protocol': movie_url.split(':')[0],
|
'protocol': movie_url.split(':')[0],
|
||||||
'height': int(self._search_regex(r'_(\d+)p.', movie_url.split('/')[8], 'height', default='480')),
|
'height': int(self._search_regex(r'_(\d+)p.', movie_url.split('/')[-1], 'height', default='480')),
|
||||||
})
|
})
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ class PornTrexPlayListIE(PornTrexBaseIE):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
'id': url.split('/')[4],
|
'id': playlist_id,
|
||||||
'title': self._html_search_regex(
|
'title': self._html_search_regex(
|
||||||
r'<title>(.+?)</title>',
|
r'<title>(.+?)</title>',
|
||||||
webpage,
|
webpage,
|
||||||
|
Loading…
Reference in New Issue
Block a user