spotify-downloader: -nm/--no-metadata errors
What is the purpose of your issue?
- Bug
- Feature Request
- Question
- Other
Description
I think using -nm/–no-metadata is giving me some errors. Tried changing it in config.yml and still got errors.
Log
C:\Users\Eugene>spotdl -s https://open.spotify.com/track/7gHs73wELdeycvS48JfIos?si=-BhaIpQLQS-_E9mOuHcRBg -nm -f D:\Desktop\Eugene\Songs --log-level=DEBUG
DEBUG: Python version: 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)]
DEBUG: Platform: Windows-10-10.0.17763-SP0
DEBUG: {'album': None,
'all_albums': None,
'avconv': False,
'config': None,
'download_only_metadata': False,
'dry_run': False,
'file_format': '{artist} - {track_name}',
'folder': 'D:\\Desktop\\Eugene\\Songs',
'input_ext': '.m4a',
'list': None,
'log_level': 10,
'manual': False,
'music_videos_only': False,
'no_metadata': True,
'no_spaces': False,
'output_ext': '.mp3',
'overwrite': 'prompt',
'playlist': None,
'search_format': '{artist} - {track_name} lyrics',
'skip': None,
'song': 'https://open.spotify.com/track/7gHs73wELdeycvS48JfIos?si=-BhaIpQLQS-_E9mOuHcRBg',
'trim_silence': False,
'username': None,
'version': False,
'write_m3u': False,
'write_successful': None,
'youtube_api_key': None}
DEBUG: Opening URL: https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=https%3A//open.spotify.com/track/7gHs73wELdeycvS48JfIos%3Fsi%3D-BhaIpQLQS-_E9mOuHcRBg
Traceback (most recent call last):
File "d:\desktop\eugene\programs\others\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\desktop\eugene\programs\others\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Desktop\Eugene\Programs\Others\Python\Scripts\spotdl.exe\__main__.py", line 9, in <module>
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\spotdl.py", line 212, in main
download_single(raw_song=const.args.song)
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\spotdl.py", line 130, in download_single
content, meta_tags = youtube_tools.match_video_and_metadata(raw_song)
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\youtube_tools.py", line 57, in match_video_and_metadata
content = go_pafy(track, meta_tags)
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\youtube_tools.py", line 33, in go_pafy
track_url = generate_youtube_url(raw_song, meta_tags)
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\youtube_tools.py", line 154, in generate_youtube_url
url = url_fetch.scrape()
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\youtube_tools.py", line 276, in scrape
return self._best_match(videos)
File "d:\desktop\eugene\programs\others\python\lib\site-packages\spotdl\youtube_tools.py", line 193, in _best_match
result = videos[0]
IndexError: list index out of range
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (10 by maintainers)
When the user selects no Metadata but has a spotify URL in the input, app should fetch metadata that is part of custom YouTube search query Specfied here but should not encode it to the file as user selected -nm.
Right now it’s failing because youtube search URL is not formed correctly. Its something like DEBUG: Opening URL: https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=https%3A//open.spotify.com/track/7gHs73wELdeycvS48JfIos%3Fsi%3D-BhaIpQLQS-_E9mOuHcRBg