Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Nov 14, 2023
1 parent 5033717 commit 7560c3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def config(url):
full_url = full_url.replace(param, '')
if full_url.endswith("%2F"):
full_url = full_url[:-len("%2F")]
full_url = unquote(full_url)
if request.args.get('url'):
full_url = full_url
else:
full_url = unquote(full_url)
print (full_url)
if "|" in full_url:
subscribe['url'] = full_url.split('url=', 1)[-1].split('|')[0] if full_url.startswith('url') else full_url.split('|')[0]
Expand Down

0 comments on commit 7560c3a

Please sign in to comment.