Skip to content

Commit

Permalink
bugfix/move-yt-dlp-import-to-within-youtube-copy-func (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Maxfield Brown authored Mar 8, 2022
1 parent 152e519 commit 826c006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdp_backend/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import aiohttp
import fsspec
from fsspec.core import url_to_fs
from yt_dlp import YoutubeDL

###############################################################################

Expand Down Expand Up @@ -154,6 +153,8 @@ def youtube_copy(uri: str, dst: Path, overwrite: bool = False) -> str:
dst: str
The location of the downloaded file.
"""
from yt_dlp import YoutubeDL

# dst = Path(str(dst) + ".mp4")
dst = dst.with_suffix(".mp4")

Expand Down

0 comments on commit 826c006

Please sign in to comment.