Skip to content

Commit

Permalink
Fix urlib import
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Oct 18, 2024
1 parent f999c42 commit fb66961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_editor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def download_video(my_input: str, args: Args, ffmpeg: FFmpeg, log: Log) -> str:
log.conwrite("Downloading video...")

def get_domain(url: str) -> str:
t = __import__("urllib").parse.urlparse(url).netloc
t = __import__("urllib.parse", fromlist=["parse"]).urlparse(url).netloc
return ".".join(t.split(".")[-2:])

download_format = args.download_format
Expand Down

0 comments on commit fb66961

Please sign in to comment.