Code Monkey home page Code Monkey logo

ani-skip's Introduction



ani-skip

A script to automatically skip anime opening and ending sequences, making it easier to watch your favorite shows without having to manually skip the intros and outros each time.

Important: There's a chance ani-skip may not recognize the anime you're watching. It leverages the aniskip API. If an anime's episode(s) are missing, you can contribute or request its inclusion on their discord server.

Troubleshooting Errors

Should you run into problems, first ensure you're using the most recent version:

  • For Linux:

    sudo ani-skip -U
  • For Windows: Open Git Bash as an administrator and enter:

    ani-skip -U

If the issue remains unresolved, please create a new issue.


Usage

ani-skip -h
    Usage:
    ani-skip [OPTIONS]

    Options:
      -q, --query
        Anime Title or MyAnimeList ID
      -e, --episode
        Specify the episode number
      -V, --version
        Show the version of the script
      -h, --help
        Show this help message and exit
      -U, --update
        Update the script
    Some example usages:
      ani-skip -q "Solo Leveling" # Returns MyAnimeList ID
      ani-skip -q "Solo Leveling" -e 3 # Returns MPV skip flag
      ani-skip -q 52299 -e 5 # Returns MPV skip flag
  • Build MPV skip options directly using anime's title

    ani-skip --query "Black Clover (170 episodes)" --episode 10
    --chapters-file=/tmp/tempfile --script-opts=skip-op_start=140.153,skip-op_end=230.153,skip-ed_start=1301.824,skip-ed_end=1431
    

    script-opts with the script flag is produced by ani-skip when metadata for a specific anime's skip times exists in the database. It's important to append these flags at the end due to certain mpv nuances.

  • Fetch MyAnimeList ID

    ani-skip -q "Solo Leveling"
    52299
    

    Persisting it will help building flags quickly when requesting the same anime for skip times.

  • Build MPV skip options directly using MyAnimeList ID

    ani-skip -q 52299 -e 2
    --chapters-file=/tmp/tempfile --script-opts=skip-op_start=130.531,skip-op_end=220.531,skip-ed_start=1326.58,skip-ed_end=1416.58
    

    Use the stored or persisted MAL ID to expedite the process of fetching skip times.

Install

  • Linux

    git clone https://github.com/synacktraa/ani-skip.git
    sudo apt install mpv fzf  
    sudo cp ani-skip/ani-skip /usr/local/bin
    mkdir -p ~/.config/mpv/scripts && cp ani-skip/skip.lua ~/.config/mpv/scripts
  • Windows

    Make sure scoop is installed.

    • Open powershell and run:
      scoop install mpv fzf git
    • Open git bash
      git clone https://github.com/synacktraa/ani-skip.git
      cp ani-skip/ani-skip /usr/bin
      mkdir -p ~/scoop/apps/mpv/current/portable_config/scripts
      cp ani-skip/skip.lua ~/scoop/apps/mpv/current/portable_config/scripts

Dependencies

  • grep
  • sed
  • curl
  • fzf
  • mpv - Video Player

Checklist

  • MPV support
  • MyAnimeList Id scraper
  • VLC support
  • Create packages for Windows, Linux and Termux
  • Test it on Android termux and Mac

ani-skip's People

Contributors

synacktraa avatar 71zenith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.