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

pete

v2.6.3

Published

Automatically download items in your TMdb watchlists

Downloads

31

Readme

$$$$$$$\             $$\
$$  __$$\            $$ |
$$ |  $$ | $$$$$$\ $$$$$$\    $$$$$$\
$$$$$$$  |$$  __$$\\_$$  _|  $$  __$$\
$$  ____/ $$$$$$$$ | $$ |    $$$$$$$$ |
$$ |      $$   ____| $$ |$$\ $$   ____|
$$ |      \$$$$$$$\  \$$$$  |\$$$$$$$\
\__|       \_______|  \____/  \_______|

Pete is a Nodejs CLI and daemon that automatically downloads TV show episodes and movies using themoviedb.org watchlists and Transmission.

This was made as sort of an opinionated alternative to Flexget automatically fetching TV shows and movies. Flexget is amazing and does so many things, but for the life of me could not get it configured to work well and predictably.

I say opinionated because it uses TMdb to track what you want to watch and Transmission as a BitTorrent client and finds magnets using certain static sources (RARBG and EZTV). Some of these 'opinions' could change in the future, but currently this is how it is.

Features

  • Hands-off - automatically find show episodes without searching yourself
  • Easy configuration - set it and forget it!
  • You can tell Pete what you want to download from anywhere using your TMdb watchlists
  • Download a movie or episodes of a show independently
  • Automatically rename movies and episodes in a media server-friendly format
  • Receive notifications when things start and finish via Pushbullet

Installation

See the wiki pages about preparation and installation.

Usage

All the commands:

pete -h

  Usage: pete [options] [command]


  Options:

    -V, --version  output the version number
    -h, --help     output usage information


  Commands:

    install|i                           Sets up the local filesystem, authorizes TMdb api credentials, and other misc installation requirements
    tv [options]                        Fetches your TMdb TV watchlist and finds new episodes of your shows
    show [options] [tmdb_id|show_name]  Fetches episodes for a show based on the TMdb ID or show name. If no show is provided, choose from your watchlist.
    movies                              Download the movies in your TMdb movie watchlist
    movie|m <tmdb_id|title>             Search for a movie to start downloading based on title or TMdb ID
    tv-setup|s                          Runs the configuation setup for the shows in your TV watchlist
    add-service-file|f                  Saves a service file to run Pete as a service on boot
    clean-torrents|c                    Removes torrents that have met or exceeded the configured ratio limit

Example usage of the commands.

tv-setup|s

After adding shows in your TV watchlist, run this if you don't want the default configuration: most recent season, episode 1, HDTV quality.

# Will fetch your TV watchlist and ask you which shows you want to configure
pete tv-setup

# or
pete s

tv

Fetches the shows in your tv watchlist, checks if there's any new episodes that you need download. It will use the starting season, episode and quality that was configured when running pete tv-setup. If no existing configuration is found, it will start at the most current season episode 1 in HDTV quality.

There's also a flag, -c|--choose, that enables you to be selective of the shows you want to check.

# Checks everything, useful for crons and things because it isn't interactive
pete tv

# Interactively choose the shows you want to check
pete tv -c

show

Download all the episodes (or just one) of a show. You can search by show name or TMdb id. Names need to be wrapped in quotes. If more than one show is found for your search string you'll be prompted to confirm which show you want to download. See below for the options that are available. If you don't define a quality, HDTV will be used automatically, but will search for other qualities if it can't find HDTV. This is the easiest way to find an episode of any show to download. 💯

# Searches for all episodes of all the seasons for a show
pete show 'last man on earth' # or pete show 61888

# Searches for all episodes starting at season 3
pete show 'last man on earth' --season 3

# Searches for all episodes starting at season 3
# and ignores if you've already downloaded them
pete show 'last man on earth' --season 3 --force

# Searches for all episodes starting at season 3
# with a desired quality of 1080p but will fallback if that quality can't be found
# and ignores if you've already downloaded them
pete show 'last man on earth' --season 3 --quality 1080p --force

# Searches for all episodes starting at episode 6 of season 3
# with a desired quality of 1080p but will fallback if that quality can't be found
# and ignores if you've already downloaded them
pete show 'last man on earth' --season 3 --episode 6 --quality 1080p --force

# Searches for episode 6 of season 3 ONLY
# with a desired quality of 1080p but will fallback if that quality can't be found
# and ignores if you've already downloaded it
pete show 'last man on earth' --season 3 --episode 6 --quality 1080p --force --one

movies

# Checks your movie watchlist and downloads them using configuration from installation
pete movies

movie|m

Download a movie from a movie title or TMdb id if you have it. Uses the configuration for quality.

# Searches for all episodes of all the seasons for a show
pete movie 'top gun'
# or
pete movie 744

add-service-file|f

Creates a systemd file for Linux. Only applies to Linux platforms. It will prompt you for your sudo password.

pete f

clean-torrents|c

Checks your torrents in Transmission and removes the torrents that have met or exceeded your Transmission ratio limit. This is just a utility function.

pete clean-torrents

License

MIT