Skip to content

[BUG] Can't import anime from Anilist #486

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

Closed
xGigaa opened this issue May 14, 2025 · 3 comments
Closed

[BUG] Can't import anime from Anilist #486

xGigaa opened this issue May 14, 2025 · 3 comments
Labels
bug Something isn't working fixed in dev Fixed in the development branch

Comments

@xGigaa
Copy link

xGigaa commented May 14, 2025

Describe the bug
When I try to import my Anilist i get the following error in the import history:

Unexpected error occurred:
'NoneType' object cannot be interpreted as an integer

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to "Settings".
  2. Input your AniList username and click import.
  3. Wait a few seconds and the import will show as failed in the import history.

Expected behavior
AniList gets imported without issues.

Screenshots
Image

Error logs

rack        | [2025-05-14 13:35:35 +0000] [521] [INFO] Importing anime from Anilist
yamtrack        | [2025-05-14 13:35:35 +0000] [521] [ERROR] Task Import from AniList[cfd9ce6c-4b3a-4c92-a9b0-9371fa8a6b3a] raised unexpected: TypeError("'NoneType' object cannot be interpreted as an integer")
yamtrack        | Traceback (most recent call last):
yamtrack        |   File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 453, in trace_task
yamtrack        |     R = retval = fun(*args, **kwargs)
yamtrack        |                  ^^^^^^^^^^^^^^^^^^^^
yamtrack        |   File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 736, in __protected_call__
yamtrack        |     return self.run(*args, **kwargs)
yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^
yamtrack        |   File "/yamtrack/integrations/tasks.py", line 96, in import_anilist
yamtrack        |     num_anime_imported, num_manga_imported, warning_message = anilist.importer(
yamtrack        |                                                               ^^^^^^^^^^^^^^^^^
yamtrack        |   File "/yamtrack/integrations/imports/anilist.py", line 95, in importer
yamtrack        |     anime_imported, anime_warnings = import_media(
yamtrack        |                                      ^^^^^^^^^^^^^
yamtrack        |   File "/yamtrack/integrations/imports/anilist.py", line 121, in import_media
yamtrack        |     bulk_media, warnings = process_status_list(
yamtrack        |                            ^^^^^^^^^^^^^^^^^^^^
yamtrack        |   File "/yamtrack/integrations/imports/anilist.py", line 169, in process_status_list
yamtrack        |     start_date=get_date(content["startedAt"]),
yamtrack        |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yamtrack        |   File "/yamtrack/integrations/imports/anilist.py", line 181, in get_date
yamtrack        |     return datetime.date(date["year"], date["month"], date["day"])
yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yamtrack        | TypeError: 'NoneType' object cannot be interpreted as an integer

Yamtrack version: 0.22.7
Database: SQLite

@xGigaa xGigaa added the bug Something isn't working label May 14, 2025
@FuzzyGrim
Copy link
Owner

Would you mind sharing your AniList username? You can send it to [email protected] if you prefer.

@xGigaa
Copy link
Author

xGigaa commented May 14, 2025

It's pretty much the same as my username on github so I don't mind: Gigaa

@FuzzyGrim FuzzyGrim added the fixed in dev Fixed in the development branch label May 14, 2025
@FuzzyGrim
Copy link
Owner

Fixed in v0.23.0

dannyvfilms pushed a commit to dannyvfilms/Yamtrack that referenced this issue Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the development branch
Projects
None yet
Development

No branches or pull requests

2 participants