anime_title_parser
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
-
Add the dependency to your
shard.yml
:dependencies: anime_title_parser: git: https://codeberg.org/Sylphrena/AnimeTitleParser.git
-
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
- Fork it (https://codeberg.org/Sylphrena/AnimeTitleParser/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Sylphrena - creator and maintainer