Skip to content

Determine what media type a file or folder contains, mostly relating to a torrent

Notifications You must be signed in to change notification settings

ryanramage/media-folder-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media-folder-info

This is mainly for when a file, or folder is created from a torrent download to determine what 'type' it is.

The currently the types are 'movie', 'audio'. More can be added.

usage

var info = require('media-folder-info');
info('/home/you/downloads/folder', function(err, data){
  if (err) return console.log(err);
  console.log(data.type); // 'video', 'audio',
  console.log(data.files); // the main file(s), eg '/home/you/downloads/folder/movie-1999.avi'
})

see the tests folder for more info

About

Determine what media type a file or folder contains, mostly relating to a torrent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages