Browse Source

Fix bug in remote torrents matching

master
djib 2 years ago
parent
commit
769a9ccc00
  1. 4
      PDMameUpdate.py

4
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

Loading…
Cancel
Save