forked from djib/PDMameUpdate
Only newest version of torrents with multiple versions are added
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user