Closed Pretzelek closed 2 years ago
i have a similar issue.
khinsider.py beatmania
Getting song list...
An unexpected error occurred! If it isn't too much to ask, please report to https://github.com/obskyr/khinsider/issues.
Attach the following error message:
Traceback (most recent call last):
File "D:\Downloads\khinsider-master\khinsider.py", line 591, in <module>
sys.exit(doIt())
File "D:\Downloads\khinsider-master\khinsider.py", line 535, in doIt
success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True)
File "D:\Downloads\khinsider-master\khinsider.py", line 410, in download
return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose)
File "D:\Downloads\khinsider-master\khinsider.py", line 322, in download
for song in self.songs:
File "D:\Downloads\khinsider-master\khinsider.py", line 149, in lazyVersion
setattr(self, attrName, func(self))
File "D:\Downloads\khinsider-master\khinsider.py", line 286, in songs
anchors = [tr.find('a') for tr in table('tr') if not tr.find('th')]
TypeError: 'NoneType' object is not callable
Same here for silver-surfer-ost-1990-nes.
python khinsider.py silver-surfer-ost-1990-nes
Getting song list...
An unexpected error occurred! If it isn't too much to ask, please report to https://github.com/obskyr/khinsider/issues.
Attach the following error message:
Traceback (most recent call last):
File "E:\Music\khinsider-master\khinsider.py", line 589, in <module>
sys.exit(doIt())
File "E:\Music\khinsider-master\khinsider.py", line 533, in doIt
success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True)
File "E:\Music\khinsider-master\khinsider.py", line 408, in download
return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose)
File "E:\Music\khinsider-master\khinsider.py", line 323, in download
files.append(getAppropriateFile(song, formatOrder))
File "E:\Music\khinsider-master\khinsider.py", line 168, in getAppropriateFile
return song.files[0]
IndexError: list index out of range
Thank you ever so kindly for the report! I've now fixed robot-wants-puppy-gamerip
(a song title containing the string &#
resulted in broken HTML) and shattered-horizon-2009-gamerip
(one of the songs didn't exist, and instead just led to a 404 page).
As for -t-w-y-a-o-gyakuten-meets-jazz-soul
, you can run khinsider.py -- -t-w-y-a-o-gyakuten-meets-jazz-soul
– the --
means “treat the following arguments as positional arguments”, which is needed when the soundtrack name starts with -
. If you think it's a big enough issue that some special syntax should be added for it, or I should rejigger the whole argument parsing to treat unknown dash arguments as positionals, let me know – for now, though, this'll work.
Hello. Some albums fail to download. These are: -t-w-y-a-o-gyakuten-meets-jazz-soul robot-wants-puppy-gamerip shattered-horizon-2009-gamerip
Here's output when attempting to download them: