Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

"TypeError: 'NoneType' object is not callable" occurs when trying any album #8

@svioletg

Description

@svioletg

Hi! I've tried to get multiple different albums, but unfortunately each one gives me the same error:

$ python3 thehylia.py 11930
Getting song list...

An unexpected error occurred! If it isn't too much to ask, please report to https://github.com/obskyr/thehylia/issues.
Attach the following error message:

Traceback (most recent call last):
  File "thehylia.py", line 498, in <module>
    doIt()
  File "thehylia.py", line 474, in doIt
    download(soundtrack, outPath, formatOrder=formatOrder, verbose=True)
  File "thehylia.py", line 363, in download
    Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose)
  File "thehylia.py", line 287, in download
    for song in self.songs:
  File "thehylia.py", line 125, in lazyVersion
    setattr(self, attrName, func(self))
  File "thehylia.py", line 250, in songs
    anchors = table('a')
TypeError: 'NoneType' object is not callable

Any help is appreciated, and I can provide any more info if need be.

EDIT: I've also tried using the name instead of the number, however that then causes the following error instead:

$ python3 thehylia.py fullmetal-alchemist-brotherhood-original-soundtrack-1
Getting song list...

An unexpected error occurred! If it isn't too much to ask, please report to https://github.com/obskyr/thehylia/issues.
Attach the following error message:

Traceback (most recent call last):
  File "thehylia.py", line 498, in <module>
    doIt()
  File "thehylia.py", line 474, in doIt
    download(soundtrack, outPath, formatOrder=formatOrder, verbose=True)
  File "thehylia.py", line 363, in download
    Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose)
  File "thehylia.py", line 288, in download
    files.append(getAppropriateFile(song, formatOrder))
  File "thehylia.py", line 158, in getAppropriateFile
    return song.files[0]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions