mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
A few more clean ups to porntrex.py.
This commit is contained in:
parent
efa80dfec7
commit
54e063db97
@ -80,8 +80,10 @@ class PornTrexIE(PornTrexBaseIE):
|
|||||||
thumbnails.append({'url': thumbs})
|
thumbnails.append({'url': thumbs})
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
movie_urls = re.findall(r"'(https://www.porntrex.com/get_file/.*?)/'", webpage)
|
movie_urls = re.findall(r"[\"'](https://www.porntrex.com/get_file/.*?)/[\"']", webpage)
|
||||||
for movie_url in movie_urls:
|
for movie_url in movie_urls:
|
||||||
|
if re.search(r'screenshots', movie_url):
|
||||||
|
continue
|
||||||
formats.append({'url': movie_url,
|
formats.append({'url': movie_url,
|
||||||
'height': int(self._search_regex(r'_(\d+)p\.',
|
'height': int(self._search_regex(r'_(\d+)p\.',
|
||||||
movie_url,
|
movie_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user