mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-18 00:33:37 +00:00
Fix external site links that used a deprecated config/general/advanced/"Anonymous redirect".
This commit is contained in:
parent
2c2e6bb0f9
commit
ec8ee500e4
2 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
### 3.30.15 (2024-03-20 01:55:00 UTC)
|
||||
### 3.30.16 (2024-03-24 17:30:00 UTC)
|
||||
|
||||
* Fix external site links that used a deprecated config/general/advanced/"Anonymous redirect"
|
||||
|
||||
|
||||
### 3.30.15 (2024-03-20 01:55:00 UTC)
|
||||
|
||||
* Change allow Python 3.10.14, 3.9.19, and 3.8.19
|
||||
|
||||
|
|
|
@ -544,6 +544,7 @@ class ConfigMigrator(object):
|
|||
21: 'Rename vars misusing frequency',
|
||||
22: 'Change Anonymous redirect',
|
||||
23: 'Change Anonymous redirect',
|
||||
24: 'Change Anonymous redirect',
|
||||
}
|
||||
|
||||
def migrate_config(self):
|
||||
|
@ -587,8 +588,9 @@ class ConfigMigrator(object):
|
|||
"""
|
||||
Change deprecated anon redirect service URLs
|
||||
"""
|
||||
if re.search(r'https?://(?:nullrefer.com|dereferer.org|derefer.me)', sickgear.ANON_REDIRECT):
|
||||
sickgear.ANON_REDIRECT = r'https://nosplash.open-dereferrer.com/?'
|
||||
sickgear.ANON_REDIRECT = re.sub(
|
||||
r'https?://(?:nosplash.open-dereferrer.com|nullrefer.com|dereferer.org|derefer.me)',
|
||||
r'https://nullrefer.ir', sickgear.ANON_REDIRECT)
|
||||
|
||||
# Migration v1: Custom naming
|
||||
def _migrate_v1(self):
|
||||
|
@ -983,3 +985,6 @@ class ConfigMigrator(object):
|
|||
|
||||
def _migrate_v23(self):
|
||||
self.deprecate_anon_service()
|
||||
|
||||
def _migrate_v24(self):
|
||||
self.deprecate_anon_service()
|
||||
|
|
Loading…
Reference in a new issue