Code Monkey home page Code Monkey logo

mediatidy's People

Contributors

danb235 avatar jinjorge avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mediatidy's Issues

Typed Array Issues on Clean

When issuing the clean command on OSX Sierra, this is the error I'm getting. Tried with different paths, one path, many paths, etc.

/usr/local/lib/node_modules/mediatidy/node_modules/node-dir/lib/paths.js:124
var bufdir = Buffer.from(dir);
^

TypeError: this is not a typed array.
at Function.from (native)
at Object.files (/usr/local/lib/node_modules/mediatidy/node_modules/node-dir/lib/paths.js:124:23)
at /usr/local/lib/node_modules/mediatidy/lib/media.coffee:48:17
at FSReqWrap.cb [as oncomplete] (fs.js:216:19)

Error: spawn EMFILE

I'll add details later.


$ bin/mediatidy config update
mediatidy: movie path:  /Volumes/Movies
saved mediatidy configuration to /Users/mediaserver/.mediatidy/config.json
media:mediatidy mediaserver$ bin/mediatidy movies update
==> search for current files and directories
Found: 4726 video files
Found: 4213 other files
Found: 17 directories
==> updating mediatidy database with current files and directories
updating directories...
updating video files...
updating other files...
database updated
==> removing files and directories from database that no longer exist
0 out of 8939 files removed from database...
0 out of 17 directories removed from database...
finished removing missing files and directories from mediatidy database
==> update database with probed video metadata
Found: 4726 video files that need metadata update
.....................................................

............................................................................................................................................
child_process.js:947
    throw errnoException(process._errno, 'spawn');
          ^
Error: spawn EMFILE
  at errnoException (child_process.js:1000:11)
  at ChildProcess.spawn (child_process.js:947:11)
  at exports.spawn (child_process.js:735:9)
  at doProbe (/Users/mediaserver/repos/mediatidy/node_modules/node-ffprobe/lib/ffprobe.js:84:14)
  at probeFiles (/Users/mediaserver/repos/mediatidy/lib/movies.coffee:91:9)
  at /Users/mediaserver/repos/mediatidy/lib/movies.coffee:143:23
  at /Users/mediaserver/repos/mediatidy/node_modules/async/lib/async.js:157:25
  at /Users/mediaserver/repos/mediatidy/lib/movies.coffee:135:21
  at iterate (/Users/mediaserver/repos/mediatidy/node_modules/async/lib/async.js:149:13)
  at /Users/mediaserver/repos/mediatidy/node_modules/async/lib/async.js:160:25
  at /Users/mediaserver/repos/mediatidy/lib/movies.coffee:135:21
  at iterate (/Users/mediaserver/repos/mediatidy/node_modules/async/lib/async.js:149:13)
  at Object.async.eachSeries (/Users/mediaserver/repos/mediatidy/node_modules/async/lib/async.js:165:9)
  at /Users/mediaserver/repos/mediatidy/lib/movies.coffee:124:25
  at ReadStream.<anonymous> (/Users/mediaserver/repos/mediatidy/lib/movies.coffee:122:21)
  at ReadStream.emit (events.js:95:17)
  at ReadStream.<anonymous> (_stream_readable.js:748:14)
  at ReadStream.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:410:10)
  at emitReadable (_stream_readable.js:406:5)
  at readableAddChunk (_stream_readable.js:168:9)
  at ReadStream.Readable.push (_stream_readable.js:130:10)
  at onread (fs.js:1568:12)
  at Object.wrapper [as oncomplete] (fs.js:459:17)

Error When Running ./mediatidy clean

/home/temp/mediatidy/node_modules/node-dir/lib/paths.js:124
  var bufdir = Buffer.from(dir);
                      ^

TypeError: this is not a typed array.
    at Function.from (native)
    at Object.files (/home/temp/mediatidy/node_modules/node-dir/lib/paths.js:124:23)
    at /home/temp/mediatidy/lib/media.coffee:48:17
    at FSReqWrap.cb [as oncomplete] (fs.js:212:19)

skip prompt for auto yes?

Hey, I have 15000 duplicates in my show directory after years of sonarr, rss, and filebot mishaps.
This app seems perfect for my use case. however I would like to just have this thing run through all my files, without me having to click yes every single time. I'd just like to let it do it's thing and worry about any issues after with like, sonarr. I have already changed line 189 to default 'yes' in media.coffee, so I only have to hit enter, and not type yes everytime. but I'd love to just skip the prompt all together if possible. Please let me know if this is possible, thank you.

error when deleting non movie files

received an error when deleting non movie files with the latest version of mediated(via npm)

mediatidy: Delete all files that are not video types?:  (no) yes

/usr/local/lib/node_modules/mediatidy/lib/media.coffee:321
                    throw err;
                          ^
Error: EACCES, unlink '/Volumes/Movies/.12 Years A Slave (2013).mkv.qhQUxg'


media:mediatidy mediaserver$ 

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

could not be found. Consider updating media dirs...

I'm using Automounter to automatically mount my NAS media directories, which is does underneath Library/Containers/...

I can successfully add the folders to mediatidy but when it runs it cannot find any files, despite there being thousands.

Mac-mini:plexcleaner username$ mediatidy clean
==> search for and add files to database...
/Users/username/Library/Containers/nz.co.pixeleyes.AutoMounter/Data/Mounts/NAS/AFP/Media/TV  could not be found. Consider updating media dirs...
/Users/username/Library/Containers/nz.co.pixeleyes.AutoMounter/Data/Mounts/NAS/AFP/Media/Movies  could not be found. Consider updating media dirs...
==> removing files from database that no longer exist
No files were found for mediatidy to tidy up! Check your media paths with "mediatidy add-paths"

SQLITE_CANTOPEN

mediatidy add-paths /Volumes/Library/Film/
events.js:160
throw er; // Unhandled 'error' event
^

Error: SQLITE_CANTOPEN: unable to open database file
at Error (native)

unable to add new paths

Run mediatidy in the past with only one folder path /Volumes/Movies. Today, run the command to add a path and got the following

media:mediatidy mediaserver$ mediatidy paths add
==> update paths to media files for mediatidy to tidy up!
==> remove all media paths from mediatidy
CURRENT PATH: /Volumes/Movies
mediatidy: Add another media path to mediatidy?:  (no) CURRENT PATH: /Volumes/Movies
mediatidy: Delete all paths from mediatidy?:  (no) 

Notice that the answer to "Add another media path to mediatidy" is answered with the folder path that's currently configured.

Also the questions are reversed - as in wouldn't it make sense to ask to delete all paths before asking to add new folder paths? (Would you like me to open a different issue for this)

Thanks!

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.