mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-26 12:51:15 -08:00
19 lines
539 B
Python
19 lines
539 B
Python
import click
|
|
|
|
from ....anilist import AniList
|
|
from ...interfaces.anilist_interfaces import select_anime
|
|
from ...utils.tools import QueryDict
|
|
|
|
|
|
@click.command(
|
|
help="Fetch the 15 most recently updated anime from anilist that are currently releasing",
|
|
short_help="View recently updated anime",
|
|
)
|
|
@click.pass_obj
|
|
def recent(config):
|
|
anime_data = AniList.get_most_recently_updated()
|
|
if anime_data[0]:
|
|
anilist_config = QueryDict()
|
|
anilist_config.data = anime_data[1]
|
|
select_anime(config, anilist_config)
|