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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sonarr-pogdesign-importer

v0.5.2

Published

Import tv series from pogdesign and/or trakt into sonarr

Readme

About

Scrape tv series from either Pogdesign and/or Trakt and import them into Sonarr based on ratings and genre. Pogdesign rating is how many users have selected the tv show. Trakt rating is the rating from 0-100. When the tv series have been found from Trakt and/or Pogdesign it is being looked up in Sonarr and based on the genre from Sonarr it is imported into Sonarr for later download.

Install

npm i -g sonarr-pogdesign-importer

Run

sonarr-pogdesign-importer --config="[CONFIG PATH]"

or

sonarr-pogdesign-importer -c "[CONFIG PATH]"

Create config

Create a config.json file some where with the following content:

{
    "genresIgnored": ["comedy", "documentary"],
    "sonarr": {
        "url": "http://localhost:8989",
        "apiKey": "abcdef12345",
        "profileId": 1,
        "path": "/tv/",
        "useSeasonFolder": true
    },
    "scrapers": [
        {
            "type": "pogdesign",
            "monthsForward": 3,
            "minimumStars": 5000
        },
        {
            "type": "trakt",
            "apiKey": "abcdef12345",
            "listName": "trending",
            "minimumRating": 70,
            "fromYear": 2018,
            "toYear": 2020
        }
    ],
    "verbose": false,
    "test": false
}

genresIgnored: Genres to be ignored. If a series contain one of the genres in the list it is not imported to Sonarr.

verbose: If you want to include verbose. Can be ignored.

test: If you want to test it without adding series to Sonarr. Can be ignored

sonarr: Sonarr configurations see Sonarr section

scrapers: A list of scrapers. See scraper section

Sonarr

url: Sonarr url. Has to include http protocol and port.

apiKey: Api key for Sonarr. Can be found in sonarr under Settings > General > Security > API Key

profileId: Profile id in Sonarr. Must be greater than 0. Can be found by running sonarr-pogdesign-importer --config="[CONFIG PATH]" --profiles or sonarr-pogdesign-importer -c "[CONFIG PATH]" --profiles.

path: Where Sonarr should store the series. Can be found by running sonarr-pogdesign-importer --config="[CONFIG PATH]" --paths or sonarr-pogdesign-importer -c "[CONFIG PATH]" --paths.

useSeasonFolder: If sonarr should create season folders for the series.

Scraper

type: Type must always be declared for each scraper. At this time it can be either pogdesign or trakt.

There are no limit on how many scraper configurations you fill in, as long as they match configuration for either pogdesign or trakt. Atleast one scraper is required.

Pogdesign

monthsForward: Lookups up series from current month and X months in the future. 0 means only current month.

minimumStars: Minimum users who has given an interest in the series. Pogdesign writes "Selected by X Users"

Trakt

apiKey: Your own api key for Trakt.

listName: List that you want to crawl from on Trakt. Can be either trending, popular,watched, collected, anticipated or new.

minimumRating: Minimum rating for a show to be imported to Sonarr. Must be between 0 and 100. Minimum rating is ignored when having list name set to new.

startYear: Start year for a show to be released after. If this is not specified it will look from current year. Start year is ignored when having list name set to new.

endYear End year for a show to be released within. If this is not specified it will be set to 10 years ahead of current year. End year is ignored when having list name set to new.

Run from source

  1. Clone this repository.
  2. Create config.json file
  3. Change files in /src and transpile them to js by using the command tsc (you need to have tsc installed globally npm i -g typescript)
  4. Go to /dist and run node index --config="[CONFIG PATH]" or node index -c "[CONFIG PATH]"