rembo10 / headphones

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

Uncaught exception: TypeError: 'bool' object has no attribute '__getitem__' #3218

Open chibicitiberiu opened 4 years ago

chibicitiberiu commented 4 years ago
ERROR | Uncaught exception: Traceback (most recent call last):

  File "/app/headphones/headphones/logger.py", line 214, in new_run
    old_run(*args, **kwargs)
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/app/headphones/headphones/searcher.py", line 227, in searchforalbum
    do_sorted_search(album, new, losslessOnly)
  File "/app/headphones/headphones/searcher.py", line 339, in do_sorted_search
    send_to_downloader(data, bestqual, album)
  File "/app/headphones/headphones/searcher.py", line 1015, in send_to_downloader
    torrentid = calculate_torrent_hash(bestqual[2], data)
  File "/app/headphones/headphones/searcher.py", line 145, in calculate_torrent_hash
    info = bdecode(data)["info"]
  File "/app/headphones/lib/bencode.py", line 67, in bdecode
    r, l = decode_func[x[0]](x, 0)

TypeError: 'bool' object has no attribute '__getitem__'
raymondjstone commented 4 years ago

I suspect that you need to add some more details, looking at the stack trace it looks like you are downloading a torrent after searchiing for a specific album, do was this a single search, a full wanted albums scan and what search providers and downloaders do you have configured