From 8eda620078c4c7e6706a00a24cbc77130a858e94 Mon Sep 17 00:00:00 2001 From: djib Date: Wed, 23 Oct 2019 21:02:48 +0200 Subject: [PATCH] Check that remote link is correct --- PDMameUpdate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PDMameUpdate.py b/PDMameUpdate.py index 23d9e0e..de8a10b 100755 --- a/PDMameUpdate.py +++ b/PDMameUpdate.py @@ -96,6 +96,10 @@ def filter_updatable_torrents(): keys_to_check.issubset(data.keys()) and data['local-version'] < data['remote-version'] + and + data['remote-link'].startswith( + 'http://www.pleasuredome.org.uk/download.php' + ) ): del torrents[torrent] logging.info(