Browse Source

Fix bug in remote torrents matching

master
djib 7 months ago
parent
commit
769a9ccc00
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      PDMameUpdate.py

+ 2
- 2
PDMameUpdate.py View File

@ -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