A few more clean ups to porntrex.py.

This commit is contained in:
nindogo 2019-06-27 11:27:40 +03:00
parent efa80dfec7
commit 54e063db97
1 changed files with 3 additions and 1 deletions

View File

@ -80,8 +80,10 @@ class PornTrexIE(PornTrexBaseIE):
thumbnails.append({'url': thumbs})
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:
if re.search(r'screenshots', movie_url):
continue
formats.append({'url': movie_url,
'height': int(self._search_regex(r'_(\d+)p\.',
movie_url,