Skip to content

Commit

Permalink
Update if to elfi
Browse files Browse the repository at this point in the history
  • Loading branch information
Mageas committed Sep 9, 2021
1 parent 3875f71 commit 4bd4552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube/local_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def path_edit_playlist(playlist_name):
number_of_videos_remaining = remove_from_playlist(playlist_name, videos_to_remove)
redirect_page_number = min(int(request.values.get('page', 1)), math.ceil(number_of_videos_remaining/50))
return flask.redirect(util.URL_ORIGIN + request.path + '?page=' + str(redirect_page_number))
if request.values['action'] == 'remove_playlist':
elif request.values['action'] == 'remove_playlist':
try:
os.remove(os.path.join(playlists_directory, playlist_name + ".txt"))
except OSError:
Expand Down

0 comments on commit 4bd4552

Please sign in to comment.