Giter Club home page Giter Club logo

animatch's Introduction

animatch

animatch is an anime video file tagging tool.

It uses the provided file name as reference. File names are cleaned, tokenized and normalized before comparing them to the (also normalized) list of anime titles provided by AniDB.

The main command is:

animatch tag [file|directory]

which appends an [anidb-12345] tag to the filename.

The Plex Hama.bundle plugin is then able to extract such tags on its own and propertly fetch the corresponding meta data. Another great tagging tool that might help is FileBot which can have either the --q flag added in a command line interface environment or instead the Quary Expression set in the FileBot Node user interface.

Any of those two properties may be set to the following value in order to extract the anime id and directly query the AniDB database:

{(fn =~ /\[anidb-(\d+)\]/)[0][1]}

Use the following command to add auto completions for your terminal:

source < $(animatch completion $(basename $SHELL))

Installation

Requirements:

Installation with the Go compiler:

go install github.com/jxsl13/animatch

Building from source with the Go compiler

Download the source code with either git or directly from the website as archive and unpack it to some directory. Usually the directory has the same name is the project, animatch in this case.

cd animatch
go build .

if you want to install from the source code to your GOPATH directory, you may also execute the following command.

cd animatch
go install .

FileBot renaming script

Initially you may tag your files

animatch tag [file|directory]

FileBot bash script

filebot -rename input-directory \
--output output-directory \
--action test \
--order Airdate \
--conflict auto \
--db AniDB \
--q "{(fn =~ /\[anidb-(\d+)\]/)[0][1]}" \
-non-strict \
--lang "English" \
--log all \
--format "{plex}"

Requesting new sub commands or features:

You may ask for a new feature in the github issues.

Potential improvements

  • fully featured ranaming of the series title as well as the episode number and name.
  • Go templating engine in order to rename files according to all fetched meta data that is passed to the templating engine The resulting name must e.g. not contain any newline characters.
  • optional flags that control the threshold values.

animatch's People

Contributors

jxsl13 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.