FriendTeamInc / VodBot

A command line interface VOD and Clip manager for Twitch.
MIT License
14 stars 1 forks source link

Crash on moving files across drives on Windows #52

Closed NotQuiteApex closed 2 years ago

NotQuiteApex commented 2 years ago
C:\Users\Apex\Desktop\Projects-Software\vodbot>vodbot export all D:\exportvodbot\
* vodbot 1.0.5 (c) 2020-21 Logan "NotQuiteApex" Hickok-Dickson *
Loading and slicing stages...
Slicing stage part (0/1) `1545657956` (1:16:0 - 1:17:0)
frame= 3720 fps=0.0 q=-1.0 Lsize=   28255kB time=00:01:00.00 bitrate=3857.5kbits/s speed=1.42e+03x
Loading all chat messages for `xhgz`. Exporting as format `YTT`.
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Apex\AppData\Roaming\Python\Python310\Scripts\vodbot.exe\__main__.py", line 7, in <module>
  File "C:\Users\Apex\AppData\Roaming\Python\Python310\site-packages\vodbot\__main__.py", line 17, in deffered_main
    main()
  File "C:\Users\Apex\AppData\Roaming\Python\Python310\site-packages\vodbot\__main__.py", line 137, in main
    export.run(args)
  File "C:\Users\Apex\AppData\Roaming\Python\Python310\site-packages\vodbot\commands\export.py", line 81, in run
    os_replace(tmpfile, args.path / (title+tmpfile.suffix))
OSError: [WinError 17] The system cannot move the file to a different disk drive: 'C:\\Users\\Apex\\.vodbot\\temp\\1545657956=0.mp4' -> 'D:\\exportvodbot\\test.mp4'

A quick check for Windows and using a copy-and-delete-original method instead may work better.