Giter Site home page Giter Site logo

tregusti / episode-parser Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 2.0 800 KB

A javascript utility for parsing file names in a format that sometimes is used for tv shows.

JavaScript 56.21% TypeScript 43.79%
javascript javascript-utility tv-shows parsing

episode-parser's People

Contributors

dependabot[bot] avatar derflocki avatar jephuff avatar jonhester avatar tregusti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

derflocki jephuff

episode-parser's Issues

2021 -> Season 20 Episode 21

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

It thinks movies are episodes

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?

Unrecognized string

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

Typescript support

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.