tregusti / episode-parser Goto Github PK
View Code? Open in Web Editor NEWA javascript utility for parsing file names in a format that sometimes is used for tv shows.
A javascript utility for parsing file names in a format that sometimes is used for tv shows.
var parser = require('episode-parser')
var filename = 'Secret Magic Control Agency 2021 720p WEBRip 800MB x264-GalaxyRG '
var result = parser(filename)
console.log(result.show) //= 'Secret Magic Control Agency'
console.log(result.season) //= 20
console.log(result.episode) //= 21
Is it intended that if it receives a common movie string like The.Movie.2018.1080p.BluRay.x264-Group.mkv
for example, this library thinks it is episode 18 of season 20?
I'll drop this here in case you still work on this.
I'm using your lib to auto subtitle renaming.
Here is an example that's not been recognized: Mr. TvShow - 02x03 - eps2.1k3rnel-pan1c.ksd.KILLERS.English.C.updated.bla.bla
bluray etc is exposed, but not dvd.
Just as for 264.
I'm using this in a typescript project and it would be nice to include the types in the package.
If you are open to typescript, I could convert parser and make a PR :)
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.