video-name-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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' | ||
``` |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
15031
12
0
277