Skip to content

Commit

Permalink
fix: [dl-downer] attempt to fix 'No such file or dir' on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianNoise committed May 5, 2024
1 parent 49e5228 commit 74bf60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dl-downer/src/downloaders/GOPLAY.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,6 @@ def GOPLAY_DL(dl_request: DLRequest):
final_file = mpd.download('./tmp', download_options)
# move the final file to the downloads folder
final_file_move_to = dl_request.get_full_filename_path(title)
shutil.move(final_file, final_file_move_to)
os.makedirs(os.path.dirname(final_file_move_to), exist_ok=True)
os.rename(final_file, final_file_move_to)
logger.debug(f'Downloaded {title} to {final_file_move_to}')

0 comments on commit 74bf60d

Please sign in to comment.