You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the --ytdl-output-format option is used to specify a location on a different drive to the temporary files, the file_dst_path.rename call fails with this error:
Traceback (most recent call last):
File "C:\Users\USER\Documents\GitHub\fgtk\desktop\media\twitch_vod_fetch", line 900, in <module>
if __name__ == '__main__': sys.exit(main())
File "C:\Users\USER\Documents\GitHub\fgtk\desktop\media\twitch_vod_fetch", line 896, in main
loop, conf, vod_queue, list_formats_only=opts.ytdl_list_formats ))
File "C:\Program Files\Python36\lib\asyncio\base_events.py", line 466, in run_until_complete
return future.result()
File "C:\Users\USER\Documents\GitHub\fgtk\desktop\media\twitch_vod_fetch", line 273, in vod_fetch
try: await fetch(url, prefix, info_suffix=info_suffix)
File "C:\Users\USER\Documents\GitHub\fgtk\desktop\media\twitch_vod_fetch", line 189, in _wrapper
return await func(self, ctx, *args, **kws)
File "C:\Users\USER\Documents\GitHub\fgtk\desktop\media\twitch_vod_fetch", line 766, in get
file_dst_path.rename(file_dst_done)
File "C:\Program Files\Python36\lib\pathlib.py", line 1292, in rename
self._accessor.rename(self, target)
File "C:\Program Files\Python36\lib\pathlib.py", line 396, in wrapped
return strfunc(str(pathobjA), str(pathobjB), *args)
OSError: [WinError 17] The system cannot move the file to a different disk drive: '..\\download_temp\\Dave.mp4' ->
'C:\\Users\\USER\\Downloads\\LivestreamDownloads\\KirinDave\\20170529 - X of 2 - GAME - Chill with Minecraft & Dave
For A Bit - v148136907.mp4'
shutil.move can be used to move a file to another location, including across drives.
The text was updated successfully, but these errors were encountered:
Choonster
changed the title
twitch_vod_fetch --ytdl-output-format option can't move output file to another Windows drive
twitch_vod_fetch --ytdl-output-format option can't move output file to another drive on Windows
May 31, 2017
When the
--ytdl-output-format
option is used to specify a location on a different drive to the temporary files, thefile_dst_path.rename
call fails with this error:shutil.move
can be used to move a file to another location, including across drives.The text was updated successfully, but these errors were encountered: