Only newest version of torrents with multiple versions are added #2

Merged
djib merged 1 commits from sebastian404/PDMameUpdate:master into master 2019-10-29 12:45:27 +01:00
Contributor

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 :)

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 :)
djib closed this pull request 2019-10-29 12:45:27 +01:00
Owner

Thanks.

Thanks.
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: djib/PDMameUpdate#2
No description provided.