From 769a9ccc00840c7b189149f134ad0c7dfbda3f7b Mon Sep 17 00:00:00 2001 From: djib Date: Tue, 20 Oct 2020 11:15:18 +0200 Subject: [PATCH] Fix bug in remote torrents matching --- PDMameUpdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDMameUpdate.py b/PDMameUpdate.py index 5337383..037671a 100755 --- a/PDMameUpdate.py +++ b/PDMameUpdate.py @@ -125,10 +125,10 @@ def fetch_remote_torrents(): d = feedparser.parse('http://www.pleasuredome.org.uk/rss.xml') for post in d.entries: for regexp in regexps: - match = regexp.match(post.title) + match = regexp.search(post.title) if match: matched_version = match.group(0) - matched_torrent = regexp.sub('#', post.title) + matched_torrent = torrents[regexp.sub('#', post.title)] if matched_version > matched_torrent.get('remote-version', ''): matched_torrent['remote-version'] = matched_version matched_torrent['remote-link'] = post.link