meganekos / aniparse Goto Github PK
View Code? Open in Web Editor NEWAnime video filename parser in Python, based on Anitomy with a lot of enhancement
License: Mozilla Public License 2.0
Anime video filename parser in Python, based on Anitomy with a lot of enhancement
License: Mozilla Public License 2.0
A.Certain.Scientific.Railgun.S02.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (English Dubbed Dual Audio)
[Judas] Sword Art Online S3 P2 - 01.mkv
Should we recognize as SAO S3 P2
? Which mean, every season number has followed by episode number, without anything in between except for DELIMITIER
?
[Judas] Black Clover - NCED 04a - four.mkv
In this case it parse as "Anime Title + Episode Title".
The problem it seem because it have the episode title after the identifier.
"[Judas] Kaguya-Sama Wa Kokurasetai - S03E13v2 (S03E12 Part 2).mkv"
Acutal:
{
"anime_season": [3, 3],
"anime_season_prefix": ["S", "S"],
"anime_title": "Kaguya-Sama Wa Kokurasetai",
"episode_number": 12,
"episode_number_alt": 13,
"episode_prefix": ["E", "E"],
"file_extension": "mkv",
"file_name": "[Judas] Kaguya-Sama Wa Kokurasetai - S03E13v2 (S03E12 Part 2).mkv",
"other": ["Part", "2"],
"release_group": "Judas",
"release_version": 2
}
[Judas] One Punch Man - S01OVA05.mkv
[Judas] One Punch Man - S01OVA,mkv
Add a new method for parser_number.EpisodePrefix
to parse the season, type, number.
Or, Split this into 4 Chunk, Season
, number
, type
, number
. And only apply if all satisfied.
Note: Probably the core function are season_type_pattern
[46620] Re:Zero kara Hajimeru Isekai Seikatsu [1080p AV1]
.
I hate ppl
Actual:
{
'file_name': 'Attack On Titan Season 3 Part 2',
'anime_title': 'Attack On Titan',
'anime_season_prefix': 'Season',
'anime_season': 3,
'episode_title': 'Part 2'
}
Proposed Solution:
Ignore season detection, let 'anime_title':'Attack On Titan Season 3 Part 2
.
Maybe add option to toggle season detection.
Reason:
Western sites such as TVDB and TMDB use seasons for shows and group all seasons of a show. However sites such as Anilist and Myanimelist consider each season to be a different independent entry.
aniparse.parse("[AnimeRG] Shingeki no Kyojin (The Final Season) - 13 [1080p 10bit Dual Audio] (Attack on Titan - 72).mkv")
In this case, the anime title will be Shingeki no Kyojin
episode 13
with alternative episode 72.
Also, since the Final
inside is enclosed, it satisfied the Release Information rules, so the Final
will be it release information.
One Piece - Movie 09 - Episode of Chopper Plus, Bloom in the Winter, Miracle Sakura.mkv
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.