obskyr / khinsider

A script for khinsider mass downloads. Get video game soundtracks quickly and easily! Also a Python interface.
594 stars 64 forks source link

Error when downloading Deltarune/Undertale OST #64

Closed travistouchup closed 2 years ago

travistouchup commented 2 years ago

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 "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 599, in sys.exit(doIt()) File "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 543, in doIt success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True) File "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 413, in download return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose) File "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 325, in download for song in self.songs: File "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 149, in lazyVersion setattr(self, attrName, func(self)) File "C:\Users\ren\Desktop\khinsider-master\khinsider.py", line 289, in songs anchors = [tr.find('a') for tr in table('tr') if not tr.find('th')] TypeError: 'NoneType' object is not callable

C:\Users\ren\Desktop\khinsider-master>

ValsartaN7 commented 2 years ago

Hi, I get the same error.

I can't download any album or track. Everything got wrong just today. I'm using python 3.10.4-1.

Here's the error I get : Traceback (most recent call last): File "/home/khinsider-master/khinsider.py", line 599, in sys.exit(doIt()) File "/home/khinsider-master/khinsider.py", line 543, in doIt success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True) File "/home/khinsider-master/khinsider.py", line 413, in download return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose) File "/home/khinsider-master/khinsider.py", line 319, in download if not set(self.availableFormats) & set(formatOrder): File "/home/khinsider-master/khinsider.py", line 149, in lazyVersion setattr(self, attrName, func(self)) File "/home/khinsider-master/khinsider.py", line 279, in availableFormats table = self._contentSoup.find('table', id='songlist') File "/home/khinsider-master/khinsider.py", line 149, in lazyVersion setattr(self, attrName, func(self)) File "/home/khinsider-master/khinsider.py", line 271, in _contentSoup if contentSoup.find('p').string == "No such album": AttributeError: 'NoneType' object has no attribute 'find'}

Any idea about what's wrong ?

ImMalding commented 2 years ago

I also received a similar error which I first encountered today.

Traceback (most recent call last): File "C:\Users\Nolan\khinsider.py", line 602, in sys.exit(doIt()) File "C:\Users\Nolan\khinsider.py", line 546, in doIt success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True) File "C:\Users\Nolan\khinsider.py", line 416, in download return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose) File "C:\Users\Nolan\khinsider.py", line 322, in download if not set(self.availableFormats) & set(formatOrder): File "C:\Users\Nolan\khinsider.py", line 152, in lazyVersion setattr(self, attrName, func(self)) File "C:\Users\Nolan\khinsider.py", line 282, in availableFormats table = self._contentSoup.find('table', id='songlist') File "C:\Users\Nolan\khinsider.py", line 152, in lazyVersion setattr(self, attrName, func(self)) File "C:\Users\Nolan\khinsider.py", line 274, in _contentSoup if contentSoup.find('p').string == "No such album": AttributeError: 'NoneType' object has no attribute 'find'

I'm thinking something changed on the khinsider site itself, but I'm not sure.

ViviRadio commented 2 years ago

Getting the exact same error.

Does anyone know if this project still receives updates? I can't really see it anywhere.

RGPZ commented 2 years ago

The person who works on this is still active on Twitter, so I mentioned it to him.

T-Craig commented 2 years ago

Just chiming in to say that I'm getting the same error. I can only assume that something changed on the backend of KHInsider.

kamilkrzyskow commented 2 years ago

Possibly related to issue #65
I've sent a somewhat 🤷‍♂️ working solution there.