Merge branch 'main' into dev

This commit is contained in:
JackDandy 2023-10-10 07:31:11 +01:00
commit 092de1a1ca
2 changed files with 10 additions and 2 deletions

View file

@ -11,6 +11,11 @@
* Add support for Brotli compression
### 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

View file

@ -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()