mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-03 00:10:03 -08:00
18 lines
462 B
Python
18 lines
462 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 anticipited anime", short_help="View upcoming anime"
|
|
)
|
|
@click.pass_obj
|
|
def upcoming(config):
|
|
success, data = AniList.get_upcoming_anime()
|
|
if success:
|
|
anilist_config = QueryDict()
|
|
anilist_config.data = data
|
|
select_anime(config, anilist_config)
|