Open nins-k opened 9 years ago
I got that error too. I will try look in that problem. EDIT: I found out, that newest HTML update caused this library to crash. I will try fix it.
Thanks, that would be great!
Well I made temporary fix... because I couldn't make it find 'Synopsis' with BS4... https://github.com/martiogalalt/python-mal/commit/46dc3aa267e9dd1a28e4eb29d2b37439026f4e33
# Lame Fix
synopsis_elt = media_page.find_all(u'h2')
for item in synopsis_elt:
if 'Synopsis' in item.text:
synopsis_elt = item.parent
utilities.extract_tags(synopsis_elt.find_all(u'h2'))
for item in synopsis_elt(["script", "style"]):
item.extract()
media_info[u'synopsis'] = synopsis_elt.text.strip()
Sorry I've been unreachable; I'll take a look at this this weekend, since it looks like there's some changes that need to be made to pass all the tests.
Oh, that's great :) In the meantime, thanks for your temporary fix @martiogalalt.
if anyone want to find the repo with working fix, there are my repo and @pushrbx, which are still actively updated. If you are looking for python 3 only package (as in #10) try the fork from @pushrbx, because his fork only support that.
Started getting this error while retrieving info on any anime about a week ago.
I had no idea what to do so I tried commenting out the following lines (193-195) which restored partial functionality.
This let me fetch an anime's title, rank, score, episodes but keeps returning
NoneType
for every call toanime.related
The complete nosetests results are in this gist.
This API is really awesome so hoping it'll be fixed. Thanks!