Blane187 commited on
Commit
8dfeb7c
·
verified ·
1 Parent(s): c0bc839

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +2 -2
src/main.py CHANGED
@@ -28,7 +28,7 @@ rvc_models_dir = os.path.join(BASE_DIR, 'rvc_models')
28
  output_dir = os.path.join(BASE_DIR, 'song_output')
29
 
30
 
31
- def get_youtube_video_id(url, ignore_playlist=True):
32
  """
33
  Examples:
34
  http://youtu.be/SA2iWivDJiE
@@ -250,7 +250,7 @@ def song_cover_pipeline(song_input, voice_model, pitch_change, keep_files,
250
  # if youtube url
251
  if urlparse(song_input).scheme == 'https':
252
  input_type = 'yt'
253
- song_id = get_youtube_video_id(song_input)
254
  if song_id is None:
255
  error_msg = 'Invalid YouTube url.'
256
  raise_exception(error_msg, is_webui)
 
28
  output_dir = os.path.join(BASE_DIR, 'song_output')
29
 
30
 
31
+ def get_youtube_video_id(url, ignore_playlist=True): # this code unused here!
32
  """
33
  Examples:
34
  http://youtu.be/SA2iWivDJiE
 
250
  # if youtube url
251
  if urlparse(song_input).scheme == 'https':
252
  input_type = 'yt'
253
+ song_id = yt_download(song_input)
254
  if song_id is None:
255
  error_msg = 'Invalid YouTube url.'
256
  raise_exception(error_msg, is_webui)