Skip to content

Commit

Permalink
Handle empty password
Browse files Browse the repository at this point in the history
  • Loading branch information
interlark committed Jan 7, 2023
1 parent 0aff19e commit fdaa42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ustvgo_iptv.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ def __str__(self) -> str:
app.router.add_get('/logos/{filename:[^/]+}', logos_handler) # logos
app.router.add_get('/{stream_id}{tail:/.*}', stream_handler) # stream

if password.strip():
password = password.strip()
if password:
password_prefix = f'/{password}'
app_auth = web.Application()
app_auth.add_subapp(password_prefix, app)
Expand Down

0 comments on commit fdaa42c

Please sign in to comment.