Only newest version of torrents with multiple versions are added #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "sebastian404/PDMameUpdate:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
currently both the 0.215 & 0.214 torrents are listed on the PD RSS feed
INFO - Opening PleasureDome RSS feed
INFO - Found: HBMAME 0.215 ROMs (merged)
INFO - Found: HBMAME 0.215 ROMs (bios-devices)
INFO - Found: HBMAME 0.215 Rollback ROMs
INFO - Found: HBMAME 0.214 ROMs (merged)
INFO - Found: HBMAME 0.214 ROMs (bios-devices)
INFO - Found: HBMAME 0.214 Rollback ROMs
as the script loops the full feed, it will pick out both versions, updating the torrents array for all it finds, and the result is it will overwrite the first entry with the older version.
I have added check to make sure the remote-version is not already defined, so it will only use the first (newest) entry it finds.
There is probably a more elegant/robust way to do this, but this works :)
Thanks.