lowlighter/rakun is one of the open-source repositories TopGit tracks, currently at 26 stars, written primarily in TypeScript. ๐ฆ A parser to extract metadata from anime torrent filename, like source, codecs, resolution, series, audio, etc.
Snapshot summary built from the project's own GitHub metadata โ there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then โ see the READ ME tab for the original README in full.
A parser to extract informations and metadata from anime torrents filename.
With this, it'll be easier to script anime torrents related stuff !
๐ป Usage
๐ฆ Website
If you want to use Rakun online, you can visit the website by @Wamy-Dev at rakun.app.
๐ฆ Installation
You can either use default npm registry (https://registry.npmjs.org) or the GitHub package registry (https://npm.pkg.github.com).
npm install @lowlighter/rakun --save
โช With the following code...
import rakun from "rakun"
console.log(rakun.parse("[Team246] Ghost in the shell Stand alone complex S01 E10-E15 [BDREMUX 1080P MULTi DTSHDMA 5.1][VOSTFR]"))
โฉ You'll get the following output :
{
filename:"[Team246] Ghost in the shell Stand alone complex S01 E10-E15 [BDREMUX 1080P MULTi DTSHDMA 5.1][VOSTFR]",
subber:"Team246",
name:"Ghost in the shell Stand alone complex",
season:"1",
episode:"10-15",
resolution:"1080p",
audio:"multi vo",
subtitles:"fr",
source:"bluray",
codecs:"audio_5_1 dts_hdma",
meta:"remux",
}
๐ What's rakun performances ?
We try to gather a lot of different torrents name format from all over the net to make rakun more efficient and reliable.
You can check tests cases to see what kind of formatting is currently supported.
Below is an excerpt of tests cases which may help you to check rakun's capabilities :
- [Leopard-Raws] Shingeki no Kyojin Season 3 Part.2 - 09 END RAW (NHKG 1280x720 x264 AAC).mp4
- [Team246] Ghost in the shell Stand alone complex S01 E10-E15 [BDREMUX 1080P MULTi DTSHDMA 5.1][VOSTFR]
- [U3-Web] PSYCHO-PASS 3 - FIRST INSPECTOR (2020) [Movie][AMZN WEB-DL(v) 1080p AVC AAC DDP SRT][Multi-Subs] (PSYCHO-PASS ใตใคใณใใน / ๅฟ้ๅคๅฎ / ๅฟ็ๆธฌ้่ )
- [Kaerizaki-Fansub]_One-Piece_Stampede_Film_14_[VERSION-LIGHT][VOSTFR][BLU-RAY][FHD_1920x1080].mp4
- Serial Experiments Lain (1998) 1080p.H264.Ac3.Ita.Flac.Jap.Eng.Sub.Ita.Eng [v2] [21GB] [stress]
- [T.H.X&A.I.R.nesSub][Shinsekai_Yori][BDRIP][Vol.1-9ๅ จ][1920x1080_10bpp][AVC_FLAC][MKV]
- [BDRip1080p.x264.AC3.ITA.ENG.JAP.].Fullmetal.Alchemist.Brotherhood + OAV Bluray RIP
- [AnimeRG] Spirited Away (2001) (Sen to Chihiro no Kamikakushi) [720p BD 10bit] [Dual Audio] [Multi-Language Subtitles] [JRR] [Studio Ghibli].mkv
- Death Note 1-37 [480p] [EN SUB]
- Dragon.Ball.Z.Movie.14.Battle.of.Gods.2013.EXTENDED.DUAL.AUDiO.SUB.PL.1080p.BluRay.REMUX.AVC.TrueHD.5.1-SeBoLeX
- [Erai-raws] Berserk 2017 - 12 [v2][END][720p][Multiple Subtitle][10A073DC].mkv
- [BDMV] Made in Abyss / ใกใคใใคใณใขใใน [BD-BOX I+II][JP]
- Naruto.SD.Rock.Lee.no.Seishun.Full-Power.Ninden.S01.FRENCH.DVDRiP.x264-Kazelle
- Evangelion 1.11 You Are (Not) Alone 2007 Multi 1080p Blu-ray Remux AVC DTS-HD MA 6.1 VFF 5.1 H264 [Team246]
๐ Extracted informations
Below is the descriptor of the possible extreacted torrent informations.
Multiple values properties (codecs, audio, subtitles, etc.) are sorted to keep consistancy.
An input filename is given, with possible parser options
Pre-processors are executed
Main processor iterates through the collection of regexs to extract informations from filename
At each iteration, extracted informations can be either removed from filename through cleaners are applied to remove remnants, or keept for next iteration for closely related informations (like season, parts and episode)
Post-processors are executed
The remaining part of filename is considered as the cleaned title
Extracted informations are returned
๐ฐ Additional informations
Regexs are ordered to match first what can be accurately extracted and removed early (like hash, extension, website, etc.) to ease the remaining extraction.
Except for cleaners and specials regexs, they should have named capture groups. (if capture group are needed). It allows easier understanding of regexs, but it is also the way that the parser register data.
The main processor is a list of descriptors with the following properties :
{
key?:string, // Property to set (e.g. audio, episode, meta, etc..)
collection?:RegExp[], // Regex collection to use
get?:"key"|"value", // If "key", will return capture group's name ; if "value", will return capture group's value
mode?:"append"|"replace"|"skip", // If "append", add value (or create) to property ; if "replace", replace property ; if "skip", skip if property already defined
clean?:boolean, // If true, cleaners will be applied at the end of the iteration
cleaners?:RegExp[] // Additional cleaners to apply
}
While the aim is to reach 100% accuracy, note that this objective is nearly impossible since there are too much outliers in naming conventions across various websites.
๐ Code quality
To ensure a quality library, code is required to pass Onee-chan's judgement and fulfill a parsing accuracy of at least 85% of defined test cases.
Pull requests may not be merged if they do not reach this standard, unless they are adding revelant tests which may reveal missed matches in current builds. Although edges cases should be integrated to challenge rakun, simpler cases should also be added to not biases Onee-chan's evaluation.
๐ช Contributing
Want to contribute ? Sugoรฏ ! Here what you can help with :
No homepage URL was recorded for lowlighter/rakun in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on lowlighter/rakun?
The most recent commit recorded on lowlighter/rakun was 3.8 years ago, based on the GitHub push timestamp. The repository has 3 forks โ one of the better signals of community interest.
How many stars does lowlighter/rakun have?
lowlighter/rakun has 26 GitHub stars โ refresh the page for the live number, or check github.com/lowlighter/rakun. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is lowlighter/rakun open source?
Yes โ lowlighter/rakun ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/lowlighter/rakun.
What topics is lowlighter/rakun associated with?
GitHub's repository topics for lowlighter/rakun: "anime-torrents", "parser", "torrent", "torrent-management". TopGit's editorial category is open-source.
Where do I read more about lowlighter/rakun?
This TopGit page is a snapshot โ the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/lowlighter/rakun is the definitive source.
Read full README in the tab above.
Want a second opinion on rakun?
Ask an AI that can read this page โ one click and you get its take on rakun.