Skip to content

Comments

Resolve Issue #15 by adding nextdate command#26

Closed
aaravmaloo wants to merge 10 commits intoCosmicPredator:mainfrom
aaravmaloo:main
Closed

Resolve Issue #15 by adding nextdate command#26
aaravmaloo wants to merge 10 commits intoCosmicPredator:mainfrom
aaravmaloo:main

Conversation

@aaravmaloo
Copy link
Contributor

Description

Adds a new nextdate command to show the next episode release date (or estimated upcoming date) for an anime using its AniList media ID.

Problem solved

Users currently need to open AniList/web to check when the next episode airs for ongoing anime.

What this PR adds

  • New command: chibi nextdate [id] (alias: chibi next [id])
  • Fetches AniList nextAiringEpisode data for the given media ID
  • Displays:
    • ID
    • title
    • airing status
    • next episode number (if available)
    • airing time in local timezone and UTC
    • countdown until airing
  • Graceful output when AniList has no scheduled next episode yet (Not available)
  • Error handling for invalid IDs and non-anime entries
  • Documentation for the new command in CLI guide

Fixes #

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update

Tested Environments

  • Linux (any distro)
  • Windows (10 or 11)
  • MacOS ARM64
  • MacOS Intel

Checklist

  • I have used Gitmojis for my commit messages.
  • My code follows the style guidelines of the Go language.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (leave it unchecked if your changes doesn't need documentation update)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (Ignore this for now 🙂)
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)

N/A (CLI output change)

Additional context

Example usage:

chibi nextdate 16498

P.S. Requires login (chibi login) before querying AniList.

@CosmicPredator
Copy link
Owner

@aaravmaloo i feel like we can add the next airing time as a column when we do chibi ls. We don't need Format column for now. So I removed it and added next airing ep column. What do u think?

image

@aaravmaloo
Copy link
Contributor Author

Sounds good! I like the idea of the next airing episode column—it feels more useful than Format right now.

@CosmicPredator
Copy link
Owner

Sounds good! I like the idea of the next airing episode column—it feels more useful than Format right now.

So let me close this one. Thanks for your time though! Hope you can support me in other parts of the code 😄

@aaravmaloo
Copy link
Contributor Author

sure

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.

2 participants