Pārlūkot izejas kodu

Edited the code so that it works even if the default download folder has been changed.

BassThatHertz 6 gadi atpakaļ
vecāks
revīzija
766fb6b8e5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pyinstalive/organize.py

+ 1 - 1
pyinstalive/organize.py

@@ -54,7 +54,7 @@ def organize_videos():
             os.rename(filename, date + " " + username + " [" + time_from_unix_timestamp + "] " + live_or_replay)
 
         # Now that the files have been renamed, we need to rescan the files in the directory.
-        current_dir_files = os.listdir()
+        current_dir_files = os.listdir(pil.dl_path)
 
         new_filenames = [filename for filename in download_path_files if filename.split('.')[-1] in video_format]