Make tabs consistent.

This commit is contained in:
0x80 2022-05-05 00:00:00 +00:00
parent 1004f98619
commit 9e62ea230b
Signed by: 0x80
GPG Key ID: 68368BCBC000EF51
1 changed files with 12 additions and 12 deletions

View File

@ -10,20 +10,20 @@ if platform.endswith(".py"):
platform = platform[:(-3)]
def extract_from_url (url, verbosity):
# split into domain and path
index = url.find("/",url.find("//")+2)
domain = url[:index]
path = url[index:]
# split into domain and path
index = url.find("/",url.find("//")+2)
domain = url[:index]
path = url[index:]
# get username
index = path.find("/",2)
if index > -1:
username = path[1:index]
else:
username = path[1:]
# get username
index = path.find("/",2)
if index > -1:
username = path[1:index]
else:
username = path[1:]
if len(username) > 0 and username[0] == "@":
return domain + "/$/rss/" + username
if len(username) > 0 and username[0] == "@":
return domain + "/$/rss/" + username
def extract (url, page=None, network=False, verbosity=3, args={}):
feed = extract_from_url (url, verbosity)