feat: AniList auth token, character portrait thumbnail & token support - #90
Merged
Conversation
- Add image { large } to AniList character query
- Return char_image_url as 5th element of _anilist_resolve tuple
- Prefer character portrait over anime cover art as thumbnail fallback
- Add ANILIST_TOKEN optional env var to settings - Pass Authorization: Bearer header in _anilist_post (animetrace engine) - Pass Authorization: Bearer header in AnilistProvider.request (data provider) - Token is optional; falls back to anonymous if not set
Nachtalb
commented
Feb 27, 2026
|
|
||
|
|
||
| def _anilist_headers() -> dict: | ||
| from reverse_image_search_bot import settings |
| } | ||
| """.strip() | ||
|
|
||
| from reverse_image_search_bot import settings |
Owner
Author
There was a problem hiding this comment.
Double check if didn't miss anything with the previous settings.py example. Also if we go full env. Write theat in the readme and remove the old example settings file.
- Move settings imports to module level in animetrace.py and anilist.py - Support both local and SSH uploaders via env vars (UPLOADER_HOST/USER/PASSWORD/UPLOAD_DIR/KEY_FILENAME) - Remove settings.example.py (replaced by env vars) - Update README with full env var reference table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #88.
Changes:
ANILIST_TOKENenv var — passesAuthorization: Beareron all AniList GraphQL calls for higher rate limits_anilist_post) and the AniList data provider (AnilistProvider.request)