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

Added options for searching anime by season on kitsu #44

Merged
merged 17 commits into from Apr 19, 2022
Merged

Added options for searching anime by season on kitsu #44

merged 17 commits into from Apr 19, 2022

Conversation

dymattic
Copy link
Contributor

Added options for searching anime by season on kitsu

I wanted to have the option to display and select anime by year and season, so the following was implemented:

  1. AnimeInfo Class ( handles the kitsu stuff )
  2. Option to search for anime by season in download_cli method
  3. Same for seasonal_cli
  4. Changed some logic in download_cli so downloads start in bulk after episode selection for multiple shows is done

@sdaqo sdaqo self-assigned this Apr 19, 2022
"""

assert (
season_name in self.season_names
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use the .lower() method here to prevent the only lower case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't think about that, but true :D

@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

Okay, this is pretty cool though two things before merging, could you add the extra dependencies to setup.py, and add a option in the config to deactivate the prompt, some users may not want to always type no if they don't want to search the seasons. Other than that, I tested it and it works.

@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

lgtm, thanks for the pr!

@sdaqo sdaqo merged commit f4c7efb into sdaqo:master Apr 19, 2022
@dymattic
Copy link
Contributor Author

Lol that was quick haha ^^
You're welcome, I find this tool quite handy :3 @sdaqo

@dymattic
Copy link
Contributor Author

Also the kitsu api library needs at least python 3.9 if I am not mistaken. Should we add that to readme?

sdaqo added a commit that referenced this pull request Apr 19, 2022
@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

I added it to the install procedure so it will enforce it automatically

@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

Hey @dymattic could you deploy your kitsu.py project to pypi, since pypi doesnt allow deps from other sources, and so I wont be able to upload it to pypi.

@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

Oh nevermind, you already did that I will include that version in this script, that okay for you?

@dymattic
Copy link
Contributor Author

Oh yea regarding that, I submitted a PR to MrArkon/kitsu.py, but it hasn't been approved and merged yet.
The changes I made are necessary for us though.

Alternatively I could make some changes to the AnimeInfo class, so it works with the version of kitsu.py that is currently available on pypi.

@sdaqo
Copy link
Owner

sdaqo commented Apr 19, 2022

Yeah I just noticed that. Lets do that, the maintainer doesn't seem to be active, so that's probably the only option.

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

Successfully merging this pull request may close these issues.

None yet

2 participants