vitiko98 / qobuz-dl

A complete Lossless and Hi-Res music downloader for Qobuz
GNU General Public License v3.0
1.45k stars 192 forks source link

KeyError: 'album' #84

Closed CyberLykan closed 3 years ago

CyberLykan commented 3 years ago

Traceback (most recent call last): File "d:\programdata\miniconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\programdata\miniconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\ProgramData\Miniconda3\Scripts\qobuz-dl.exe__main__.py", line 7, in File "d:\programdata\miniconda3\lib\site-packages\qobuz_dl\cli.py", line 166, in main qobuz.download_list_of_urls(arguments.SOURCE) File "d:\programdata\miniconda3\lib\site-packages\qobuz_dl\core.py", line 223, in download_list_of_urls self.handle_url(url) File "d:\programdata\miniconda3\lib\site-packages\qobuz_dl\core.py", line 211, in handle_url self.download_from_id(item_id, type_dict["album"]) File "d:\programdata\miniconda3\lib\site-packages\qobuz_dl\core.py", line 135, in download_from_id downloader.download_id_by_type( File "d:\programdata\miniconda3\lib\site-packages\qobuz_dl\downloader.py", line 327, in download_id_by_type sanitized_title = sanitize_filename(folder_format.format(**track_attr)) KeyError: 'album'

CyberLykan commented 3 years ago

Tested with this link: https://open.qobuz.com/track/104171464

CyberLykan commented 3 years ago

Works great now. Thank you! (As of this writing, it has not been pushed to pip yet.)