From 54e063db97644909f1c1c548dd071076dad39b43 Mon Sep 17 00:00:00 2001 From: nindogo Date: Thu, 27 Jun 2019 11:27:40 +0300 Subject: [PATCH] A few more clean ups to porntrex.py. --- youtube_dl/extractor/porntrex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/porntrex.py b/youtube_dl/extractor/porntrex.py index cf7442b21..75e780eb7 100644 --- a/youtube_dl/extractor/porntrex.py +++ b/youtube_dl/extractor/porntrex.py @@ -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,