mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-31 23:15:51 -08:00
This enhances the `anilist auth` command by allowing the authentication token to be provided directly as an argument or from a file. This provides a non-interactive way to authenticate, which is useful for scripting or for users who have issues with the interactive browser-based flow. The `auth` command now accepts an optional `token_input` argument. - If the argument is a valid file path, the token is read from the file. - Otherwise, the argument is treated as the token itself. - If no argument is provided, the command falls back to the previous interactive method. The README is also updated to document these new authentication options. This commit also includes: - `test`: Unit tests for the new authentication logic (``test_auth.py``) and for the mapper fix (``test_mapper.py``). - `fix(api)`: A fix in the Anilist API mapper to handle potentially missing data in the API response, making it more robust. - `style`: Minor code style and formatting fixes throughout the codebase.
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.