replace medium.com links with value from constant

Signed-off-by: andregoetz <andregoetz@proton.me>
pull/1016/head
andregoetz 1 year ago
parent b6242b7207
commit 5747835eee
No known key found for this signature in database
GPG Key ID: 005B2641BD9C94FB

@ -593,7 +593,7 @@ class Filter:
# replaced (i.e. 'philomedium.com' should stay as it is).
if 'medium.com' in link_str:
if link_str.startswith('medium.com') or '.medium.com' in link_str:
link_str = 'farside.link/scribe' + link_str[
link_str = SITE_ALTS['medium.com'] + link_str[
link_str.find('medium.com') + len('medium.com'):]
new_desc.string = link_str
else:

Loading…
Cancel
Save