rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.35k stars 603 forks source link

unexpected keyword argument 'filelist' in qbittorrent.py with QBittorrent v4.3.1 #3260

Open johnnyxmas opened 3 years ago

johnnyxmas commented 3 years ago

2020-10-28 11:05:36 ERROR Uncaught exception: Traceback (most recent call last): File "C:\Program Files\headphones\headphones\logger.py", line 214, in new_run old_run(*args, *kwargs) File "C:\Python27\lib\threading.py", line 754, in run self.__target(self.args, **self.kwargs) File "C:\Program Files\headphones\headphones\searcher.py", line 227, in searchforalbum do_sorted_search(album, new, losslessOnly) File "C:\Program Files\headphones\headphones\searcher.py", line 339, in do_sorted_search send_to_downloader(data, bestqual, album) File "C:\Program Files\headphones\headphones\searcher.py", line 1011, in send_to_downloader qbittorrent.addFile(data) File "C:\Program Files\headphones\headphones\qbittorrent.py", line 231, in addFile return qbclient._command('command/upload', filelist=files) TypeError: _command() got an unexpected keyword argument 'filelist'

2020-10-28 11:05:36 WARNING Error with qBittorrent v2 api, check settings or update, will try v1: This wrapper only supports qBittorrent applications with version higher than 4.1.x. Please use the latest qBittorrent release.

dsm1212 commented 3 years ago

This is a typo in an update someone made that broke the v1 api. The argument should be named "files" not filelist. But if you upgrade to a v2 api version of qbittorrent it uses a different method and doesn't hit this issue.

johnnyxmas commented 3 years ago

This was using QBitorrent v4.3.0.1, which is definitely an API v2 version.

dsm1212 commented 3 years ago

There was some incompatibility with what you were running that caused it to fallback to v1 and then hit this latent bug. You can see in your log the message "WARNING Error with qBittorrent v2 api.." that is when the code was initialized. After this all requests were using v1.