Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug #15

Open
desmonHak opened this issue Sep 21, 2024 · 0 comments
Open

bug #15

desmonHak opened this issue Sep 21, 2024 · 0 comments

Comments

@desmonHak
Copy link
Contributor

>>> a = api.get_anime_info("one-punch-man")
>>> a.episodes
[EpisodeInfo(id=12, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/12/th_3.jpg'), EpisodeInfo(id=11, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/11/th_3.jpg'), EpisodeInfo(id=10, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/10/th_3.jpg'), EpisodeInfo(id=9, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/9/th_3.jpg'), EpisodeInfo(id=8, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/8/th_3.jpg'), EpisodeInfo(id=7, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/7/th_3.jpg'), EpisodeInfo(id=6, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/6/th_3.jpg'), EpisodeInfo(id=5, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/5/th_3.jpg'), EpisodeInfo(id=4, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/4/th_3.jpg'), EpisodeInfo(id=3, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/3/th_3.jpg'), EpisodeInfo(id=2, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/2/th_3.jpg'), EpisodeInfo(id=1, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/1/th_3.jpg')]
>>> a.episodes[0]
EpisodeInfo(id=12, anime='one-punch-man', image_preview='https://cdn.animeflv.net/screenshots/2218/12/th_3.jpg')
>>> api.get_links("one-punch-man", a.episodes[0])
Traceback (most recent call last):
  File "C:\Users\desmon0xff\Downloads\animeflv-api\animeflv\animeflv.py", line 131, in get_links
    rows = parse_table(table)
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\desmon0xff\Downloads\animeflv-api\animeflv\animeflv.py", line 31, in parse_table
    columns = list([x.string for x in table.thead.tr.find_all("th")])
                                      ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'thead'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\desmon0xff\Downloads\animeflv-api\animeflv\animeflv.py", line 154, in get_links
    raise AnimeFLVParseError(exc)
animeflv.exception.AnimeFLVParseError: 'NoneType' object has no attribute 'thead'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant