mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
Better normalization of feeds with feed:// in the protocol.
This commit is contained in:
parent
cb1f168812
commit
8d11cd68f1
1 changed files with 9 additions and 1 deletions
|
@ -111,7 +111,15 @@ def normalize(url):
|
|||
if '://' not in url:
|
||||
url = 'http://' + url
|
||||
if url.startswith('feed://'):
|
||||
url = url.replace('feed://', 'http://')
|
||||
if 'http://' in url or 'https://' in url:
|
||||
url = url.replace('feed:', '')
|
||||
else:
|
||||
url = url.replace('feed://', 'http://')
|
||||
if url.startswith('feed:'):
|
||||
if 'http://' in url or 'https://' in url:
|
||||
url = url.replace('feed:', '')
|
||||
else:
|
||||
url = url.replace('feed:', 'http://')
|
||||
|
||||
return url
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue