All Projects → soruly → aniep

soruly / aniep

Licence: MIT license
Extract episode number from anime file name

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aniep

KGrabber
Userscript for extracting links from kissanime.ru and similar sites.
Stars: ✭ 29 (+38.1%)
Mutual labels:  anime, episode
ANIME-API
Api for searching page link, download link, streaming link of an anime and a precise episode on many website simultaneously. Only one search and you got the results from all animes websites.
Stars: ✭ 37 (+76.19%)
Mutual labels:  anime, episode
sakura-dmhy
Sakura - 一个简单的工具
Stars: ✭ 29 (+38.1%)
Mutual labels:  anime
twist-dl
Simple Twist.moe/AnimeTwist anime downloader in CLI with support for batch downloading.
Stars: ✭ 28 (+33.33%)
Mutual labels:  anime
Pix2Pix-Keras
基于pix2pix模型的动漫图片自动上色(keras实现) 2019-2-25
Stars: ✭ 95 (+352.38%)
Mutual labels:  anime
lambda-wallpapers
All of my wallpapers in one repo.
Stars: ✭ 123 (+485.71%)
Mutual labels:  anime
anime-relations
Episode redirections for Taiga
Stars: ✭ 69 (+228.57%)
Mutual labels:  anime
Mirai
A website to stream Anime and read Manga for free.. Everything is scraped from sources online and we don't need to actually host any videos or images.
Stars: ✭ 38 (+80.95%)
Mutual labels:  anime
animeta
Manage your anime watch history.
Stars: ✭ 56 (+166.67%)
Mutual labels:  anime
browser-extension
Official LISTEN.moe browser extension
Stars: ✭ 23 (+9.52%)
Mutual labels:  anime
EnterpriseALRobot
An anime themed telegram group management bot
Stars: ✭ 134 (+538.1%)
Mutual labels:  anime
chrollo
A node.js based CLI to enjoy your favourite anime.
Stars: ✭ 38 (+80.95%)
Mutual labels:  anime
TD-Anime4K
Implementation of Anime4K in TouchDesigner.
Stars: ✭ 32 (+52.38%)
Mutual labels:  anime
gogoanime
Gogoanime is a custom API that provides data from the 10.gogoanime.io website. You will have access to the entire catalog whether movies, series, current episodes, etc., with English subtitles.
Stars: ✭ 64 (+204.76%)
Mutual labels:  anime
encode-scripts
Scripts of our encodes
Stars: ✭ 69 (+228.57%)
Mutual labels:  anime
animeflix
A anime discovery, streaming site made with NextJs and TailwindCSS. Uses AniList API and video data from GogoAnime. No ads and no vpn required
Stars: ✭ 326 (+1452.38%)
Mutual labels:  anime
animec
A module to get data about anime characters, news, info, lyrics and more.
Stars: ✭ 31 (+47.62%)
Mutual labels:  anime
MoeFlow
Repository for anime characters recognition website, powered by TensorFlow
Stars: ✭ 113 (+438.1%)
Mutual labels:  anime
michelle
An anime-centric bot for Discord
Stars: ✭ 12 (-42.86%)
Mutual labels:  anime
anime-scraper
[partially working] Scrape and add anime episode stream URLs to uGet (Linux) or IDM (Windows) ~ Python3
Stars: ✭ 21 (+0%)
Mutual labels:  anime

aniep

License GitHub Workflow Status pipeline status coverage report npm

Extract episode number from anime file name (In progress, see % accuracy above)

Install

npm install aniep --save

Usage

JavaScript

const aniep = require("aniep");

// leading zero is removed, returning a Number type
aniep("[Leopard-Raws] Yakusoku no Neverland - 04 RAW (THK 1280x720 x264 AAC).mp4"); // return 4

// floating point is supported
aniep("[Leopard-Raws] Youjo Senki - 06.5 RAW (ATX 1280x720 x264 AAC).mp4"); // return 6.5

// when it cannot find any episode number, it returns null
aniep("[Leopard-Raws] Sora to Umi no Aida Special (SUN 1280x720 x264 AAC).mp4"); // return null

// similarily, OVA also returns null
aniep("[Ohys-Raws] Boku no Kanojo ga Majime Sugiru Shobitch na Ken (2018) - OVA (BD 1280x720 x264 AAC).mp4"); // return null

// however, OVA with episode number would still return a Number
aniep("[Ohys-Raws] Amanchu! - 13 OVA (AT-X 1280x720 x264 AAC).mp4"); // return 13

// episode preview return episode Number
aniep("[Ohys-Raws] Tate no Yuusha no Nariagari - 01 Preview (AT-X 1280x720 x264 AAC).mp4"); // return 1

// for joined episode, it returns an array of Number: the first and the last episode
aniep("[Ohys-Raws] Idolish Seven - 01-02 (MX 1280x720 x264 AAC).mp4"); // return [1, 2]

// in case there are multiple possible episode number, it returns a string of episodes, using | as separator
aniep("[Ohys-Raws] High School DxD Hero - 11(10) (AT-X 1280x720 x264 AAC).mp4"); // return "10|11"

TypeScript

import aniep from 'aniep';

// leading zero is removed, returning a Number type
aniep("[Leopard-Raws] Yakusoku no Neverland - 04 RAW (THK 1280x720 x264 AAC).mp4"); // return 4

// ...

special cases to be confirmed

2	B Gata H Kei - Vol.06 CM_02 (BD 1280x720 AVC AAC).mp4
null	B Gata H Kei - Vol.02 Menu (BD 1280x720 AVC AAC).mp4
1	[CASO][Tentai_Senshi_Sunred][BIG5][Vol05-SP1][DVDRIP][x264_AAC].mp4
2	[CASO][Tentai_Senshi_Sunred][BIG5][Vol05-SP2][DVDRIP][x264_AAC].mp4
9.5|21.5	[Dymy][Berserk 2][09.5(21.5)][BIG5][1280X720].mp4
12	[FLsnow][AIR][Ep12_Creditless_ED][DVDrip][x264_AAC].mp4
1|25	[HKACG][Lupin Sansei 2015][25_OVA1][BIG5_JP][x264_AAC][720p].mp4
06,07|226,227	[SOSG&52wy][Naruto_Shippuuden][226-227(06-07)][BIG5][x264_AAC].mp4
3|3.75	[諸神字幕組][進擊的巨人][Shingeki no Kyojin][OAD3][#3.75][720P][中日雙語字幕][MP4].mp4
4|0.5	[諸神字幕組][進擊的巨人][Shingeki no Kyojin][OAD4][#0.5A][720P][中日雙語字幕][MP4].mp4
5|0.5	[諸神字幕組][進擊的巨人][Shingeki no Kyojin][OAD5][#0.5B][576P][中日雙語字幕][MP4].mp4

Development

To test the program's accuracy:

npm test

Dataset is defined in test/answer.txt, with over 100,000 file names found from Chinese anime websites. The text file is a tab-separated list of testcases. First column is expected answer, second column is input file name.

You can test your implementation (defined in src/index.js) against the dataset to see how well your episode number extraction function performs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].