mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
19 lines
496 B
Python
19 lines
496 B
Python
import click
|
|
|
|
|
|
@click.command(
|
|
help="Fetch the top 15 anime that are currently trending",
|
|
short_help="Trending anime 🔥🔥🔥",
|
|
)
|
|
@click.pass_obj
|
|
def trending(config):
|
|
from ....anilist import AniList
|
|
from ...interfaces.anilist_interfaces import select_anime
|
|
from ...utils.tools import QueryDict
|
|
|
|
success, data = AniList.get_trending()
|
|
if success:
|
|
anilist_config = QueryDict()
|
|
anilist_config.data = data
|
|
select_anime(config, anilist_config)
|