nikkmitra commited on
Commit
222ae43
·
verified ·
1 Parent(s): abc39a2

Update download.py

Browse files
Files changed (1) hide show
  1. download.py +2 -3
download.py CHANGED
@@ -75,8 +75,6 @@ for k,v in df.T.to_dict().items():
75
 
76
  create_dir(f"{category}/{uid}")
77
 
78
- youtube_url = 'https://www.youtube.com/watch?v=nEiCCaawtHY'
79
- output_file = "audio"
80
 
81
  download_audio(v['url'],f"{category}/{uid}/{unique_name}")
82
 
@@ -87,5 +85,6 @@ for k,v in df.T.to_dict().items():
87
  for root, dirs, files in os.walk(os.getcwd()):
88
  for file in files:
89
  file_path = os.path.join(root, file)
90
- if "voices" not in file_path and file_path.endswith(".mp3"):
91
  os.remove(file_path)
 
 
75
 
76
  create_dir(f"{category}/{uid}")
77
 
 
 
78
 
79
  download_audio(v['url'],f"{category}/{uid}/{unique_name}")
80
 
 
85
  for root, dirs, files in os.walk(os.getcwd()):
86
  for file in files:
87
  file_path = os.path.join(root, file)
88
+ if "voices.mp3" not in file_path and file_path.endswith(".mp3"):
89
  os.remove(file_path)
90
+