Skip to content

Commit

Permalink
lint: fix import order
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Mar 26, 2024
1 parent b822e43 commit e12eaa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions streamdl_proto_srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
from concurrent import futures

import grpc
import yt_dlp
from streamlink.exceptions import NoPluginError, PluginError
from streamlink.options import Options
from streamlink.session import Streamlink

import stream_pb2 as pb
import stream_pb2_grpc as pb_grpc

import yt_dlp

logging.basicConfig(
level=os.environ.get("LOG_LEVEL", "DEBUG").lower(),
format="%(asctime)s: |%(levelname)s| %(message)s",
Expand Down Expand Up @@ -81,7 +80,7 @@ def get_stream(r):
try:
with yt_dlp.YoutubeDL({}) as ydl:
info_dict = ydl.extract_info(r.site + "/" + r.user, download=False)
return {"url": info_dict.get('url', '')}
return {"url": info_dict.get("url", "")}
except Exception as e:
logger.error(f"yt_dlp error: {e}")
return {"error": 101}
Expand Down

0 comments on commit e12eaa7

Please sign in to comment.