From d5815b447109bf89c334f50db5ce4015b7e8c02e Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 10 Oct 2023 07:28:45 +0100 Subject: [PATCH] Change bad anon redirect service for an open source service. --- CHANGES.md | 7 ++++++- sickgear/config.py | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 420c1f1d..e38157a8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 3.30.2 (2023-10-08 02:00:00 UTC) +### 3.30.3 (2023-10-10 07:30:00 UTC) + +* Change bad anon redirect service for an open source service + + +### 3.30.2 (2023-10-08 02:00:00 UTC) * Update UnRar x64 for Windows 6.23 to 6.24 diff --git a/sickgear/config.py b/sickgear/config.py index 262219db..7c352832 100644 --- a/sickgear/config.py +++ b/sickgear/config.py @@ -543,6 +543,7 @@ class ConfigMigrator(object): 20: 'Change Growl', 21: 'Rename vars misusing frequency', 22: 'Change Anonymous redirect', + 23: 'Change Anonymous redirect', } def migrate_config(self): @@ -586,8 +587,8 @@ class ConfigMigrator(object): """ Change deprecated anon redirect service URLs """ - if re.search(r'https?://(?:nullrefer.com|dereferer.org)', sickgear.ANON_REDIRECT): - sickgear.ANON_REDIRECT = r'https://anonymz.com/?' + if re.search(r'https?://(?:nullrefer.com|dereferer.org|derefer.me)', sickgear.ANON_REDIRECT): + sickgear.ANON_REDIRECT = r'https://nosplash.open-dereferrer.com/?' # Migration v1: Custom naming def _migrate_v1(self): @@ -980,3 +981,5 @@ class ConfigMigrator(object): def _migrate_v22(self): self.deprecate_anon_service() + def _migrate_v23(self): + self.deprecate_anon_service()