Socket
Socket
Sign inDemoInstall

video-name-parser

Package Overview
Dependencies
95
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

index.js

@@ -19,5 +19,3 @@ /*

var path = require("path"),
fs = require("fs"),
url = require("url");
var path = require("path");

@@ -33,3 +31,3 @@ function simplifyName(n) {

function indexFile(filePath, options)
function parseVideoName(filePath, options)
{

@@ -329,2 +327,2 @@ //if (! filePath.match(MATCH_FILES)) return { type: "other" };

module.exports = indexFile;
module.exports = parseVideoName;
{
"name": "video-name-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Parse names of video files to identify quality (e.g. 1080p), season/episode, year, etc.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,2 +6,7 @@ # video-name-parser

```javascript
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: "movie", tag: [] }
parseVideo("The.Wizard.of.Oz.1939.1080p.BrRip.x264.mp4"); // { name: "wizard of oz", year: 1939, type: "movie", tag: [ "hd", "1080p" ] }
parseVideo("something else.mp4"); // { name: "other" } // no year or season/ep found, assuming 'other'
```
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