anime_title_parser

Simple and fast title parser for anime releases
1.0.1 Latest release released

Anime Title Parser

A Crystal clear 🔮, cut for speed 💎✨ parser for anime release titles or filenames. Should support the vast majority of naming schemes used by release groups.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      anime_title_parser:
        git: https://codeberg.org/Sylphrena/AnimeTitleParser.git
    
  2. Run shards install

Usage

require "anime_title_parser"

information = AnimeTitleParser.parse "86.Eighty.Six.S01E15.REPACK.1080p.Blu-ray.Opus2.0.x265-koala.mkv"
information.title   # => 86 Eighty Six
information.season  # => 1
information.episode # => 15

information = AnimeTitleParser.parse "[Reaktor] JoJo's Bizarre Adventure - Stardust Crusaders S02 - E13 [1080p][x265][10-bit].mkv"
information.title   # => JoJo's Bizarre Adventure - Stardust Crusaders
information.season  # => 2
information.episode # => 13

information = AnimeTitleParser.parse "[SubsPlease] Maou 2099 - 02 (1080p) [980E0201].mkv"
information.title   # => Maou 2099
information.season  # => nil
information.episode # => 2

Contributing

  1. Fork it (https://codeberg.org/Sylphrena/AnimeTitleParser/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

anime_title_parser:
  git: https://codeberg.org/Sylphrena/AnimeTitleParser
  version: ~> 1.0.1
License 0BSD
Crystal ~> 1.14

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently