Explorar el Código

Update organise-videos.py

Get the username(s) from the downloaded video files and create a folder for each username (folder name = username). Then move the video(s) into their associated folder(s).
BassThatHertz hace 6 años
padre
commit
5dd1e43364
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      organise-videos.py

+ 1 - 2
organise-videos.py

@@ -41,7 +41,6 @@ for username in usernames:
 # Move the videos into the folders
 for filename, username in filenames_to_usernames.items():
     shutil.move(filename, username)
-    # Can also do os.rename(filename, '{}/{}'.format(username, filename))
 
 num_videos_moved = len(filenames_to_usernames.keys())
-print("{} videos moved successfully.".format(num_videos_moved))
+print("{} videos moved successfully.".format(num_videos_moved))