npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

handbrake-watch

v0.2.2

Published

Node application that watches a configured folder for new video files and converts them using Handbrake.

Downloads

4

Readme

Handbrake watcher / converter utility

This app was created for personal use and so documentation errs toward non-existent.

There's no ongoing support for this. It works for me.™ PRs are always welcome, though.

What it does

Watches a pre-configured folder for new movies and then attempts to convert that file using Handbrake to a hard-coded preset.

On finding a new movie, it will also try to determine the movie's name and metadata using the Rotten Tomatoes API and if a match is found, then normalise the output filename to MOVIE_TITLE (MOVIE_YEAR).

Purpose:

Intended for use in conjunction with some download tool (like Transmission), where downloads can be moved to the watched folder on completion. This tool will then detect the new movie, convert it and move the converted file to a configured location.

This output directory could in turn be watched by other tools for further processing (e.g. for adding to a media server).

Installation

npm install handbrake-watch

Set config

API keys

Set your Rotten Tomatoes API key: * as an environment variable (ROTTEN_API_KEY) * in config/local.yml

Folders

The following folders need to be set in config/default.yml or config/local.yml:

folders:
  # The folder that should be watched for new files. i.e. the files to be converted.
  input: ''

  # The folder where pending and currently converting videos are stored
  pending: ''

  # The folder where the newly created converted file will be moved
  output: ''

  # The folder where the original, un-converted file will be moved on conversion success
  completed: ''

  # The folder where the origin, un-converted file will be moved on conversion failure
  failed: ''

Usage

Once configured, run:

npm start

The application logs verbosely to logs/handbrake-watch.log, but for common events such as when starting and completing (or failing) a conversion, the application will make an audible noise. This won't be ideal in all cases, but... it suits me.