diff --git a/whatapi.py b/whatapi.py index 66e0d3d..da0cfff 100644 --- a/whatapi.py +++ b/whatapi.py @@ -184,7 +184,7 @@ def get_candidates(self, mode, skip=None, media=lossless_media): else: media_params = ['&media={0}'.format(media_search_map[m]) for m in media] - pattern = re.compile(r'reportsv2\.php\?action=report&id=(\d+)".*?torrents\.php\?id=(\d+)"', re.MULTILINE | re.IGNORECASE | re.DOTALL) + pattern = re.compile(r'reportsv2\.php\?action=report&id=(\d+)".*?torrents\.php\?id=(\d+).*?"', re.MULTILINE | re.IGNORECASE | re.DOTALL) if mode == 'snatched' or mode == 'both' or mode == 'all': url = '{0}/torrents.php?type=snatched&userid={1}&format=FLAC'.format(self.endpoint, self.userid) for mp in media_params: