Merge branch 'master' of sebastian404/PDMameUpdate into master

Fix script when multiple MAME versions are listed.
This commit is contained in:
2019-10-29 12:45:27 +01:00
committed by Gitea

View File

@ -82,6 +82,9 @@ def fetch_remote_terrents():
for post in d.entries: for post in d.entries:
match = re_mame_version.match(post.title) match = re_mame_version.match(post.title)
if match: if match:
try:
torrents[match.group(2)]['remote-version']
except KeyError:
torrents[match.group(2)]['remote-version'] = int(match.group(1)) torrents[match.group(2)]['remote-version'] = int(match.group(1))
torrents[match.group(2)]['remote-link'] = post.link torrents[match.group(2)]['remote-link'] = post.link
torrents[match.group(2)]['remote-name'] = post.title torrents[match.group(2)]['remote-name'] = post.title