Socket
Socket
Sign inDemoInstall

video-name-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    video-name-parser

Parse names of video files to identify quality (e.g. 1080p), season/episode, year, etc.


Version published
Weekly downloads
321
decreased by-42.27%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

video-name-parser

Parse names of video files to identify quality (e.g. 1080p), season/episode, year, etc.

Usage

var parseVideo = require("video-name-parser");
parseVideo("south park s01e01.avi"); // { name: "south park", season: 1, episode: [1], type: "series", tag: [] }
parseVideo("south park s01e01e02.avi"); // { name: "south park", season: 1, episode: [1,2], type: "series", tag: [] }
parseVideo("The.Wizard.of.Oz.1939.1080p.BrRip.x264.mp4"); // { name: "the wizard of oz", year: 1939, type: "movie", tag: [ "hd", "1080p" ] }
parseVideo("something else.mp4"); // { type: "other" } // no year or season/ep found, assuming 'other'

Returned properties

name - parsed name, in lower case, allowed numbers/letters, no special symbols

type - can be movie, series or other - inferred from keywords / key phrases

tag - additional tags inferred from the name, e.g. 1080p

season - number of the season

episode - array of episode numbers, returned for episodes

Keywords

FAQs

Last updated on 06 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc