Skip to content

Commit

Permalink
fix: warn is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Mar 26, 2024
1 parent 9059652 commit a033b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamdl_proto_srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def get_stream(r):
logger.critical("Stream quality not found - exiting")
return {"error": 414}
except NoPluginError:
logger.warn(f"Streamlink is unable to find a plugin for {r.site}")
logger.warn("Falling back to yt_dlp")
logger.warning(f"Streamlink is unable to find a plugin for {r.site}")
logger.warning("Falling back to yt_dlp")
# Fallback to yt_dlp
try:
with yt_dlp.YoutubeDL({}) as ydl:
Expand Down

0 comments on commit a033b15

Please sign in to comment.