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

@soitora/plexanisync-mapping-assistant

v2.0.0

Published

PlexAniSync Mapping Assistant

Downloads

56

Readme

PlexAniSync Mapping Assistant

TheMovieDB/TheTVDB Mapping Assistant for PlexAniSync, specifically, for contribution to the custom mappings project.

Repositories

RickDB/PlexAniSync - GitHub RickDB/PlexAniSync-Custom-Mappings - GitHub

Guide

Step 1: Prerequisites

Make sure you have Node.js and npm installed on your machine. If not, you can download and install them from Node.js official website.

Step 2: Clone the Repository

Clone the repository to your local machine using the following command:

git clone https://github.com/Soitora/PlexAniSync-Mapping-Assistant.git

Step 3: Navigate to Project Directory

Change into the project directory:

cd PlexAniSync-Mapping-Assistant

Step 4: Install Dependencies

Run the following command to install project dependencies:

npm install

Step 5: Create .env file

Copy the provided .env.example file to a new file named .env:

cp .env.example .env

Step 6: Edit .env File

Open the .env file in a text editor and fill in the environment variables with appropriate values.

[!NOTE]

  • You do not need both TMDB_APIKEY and TVDB_APIKEY to run this, only one is required at minimum.
  • You do not need to tweak/add DUMMY_QUERY unless that doesn't work for you.
  • Both PLEX_TOKEN and PLEX_API is also optional, but highly recommended for guid in the output.

Step 7: Configuration

You can copy config/default.yaml.example as config/default.yaml to use custom settings. Read here for more regarding configuration files.

Settings:

  • preferMetadata
    • Possible values: tmdb, tvdb
    • Type: string
  • preferMedia
    • Possible values: tv, movie
    • Type: string
  • copyResults
    • Possible values: true, false
    • Type: boolean
  • saveResults
    • Possible values: true, false
    • Type: boolean
  • dualOutput (requires saveResults being true in prompt)
    • Possible values: true, false
    • Type: boolean
  • inputFilePath
    • A valid path to a TXT input file, see the README example.
    • Type: string
  • outputFilePath
    • A valid path for the output YAML files, see the README example.
    • Type: string

Default config:

userConfig:
  preferMetadata: "tmdb"
  preferMedia: "tv"
  copyResults: true
  saveResults: false
  dualOutput: true
  inputFilePath: "batch/input.txt"
  outputFilePath: "batch/output/"

Examples:

Changing metadata agent

This is useful if you for example only want to use TVDB, and maybe always save results to a file as well, then you can change

userConfig:
  preferMetadata: "tvdb"
  saveResults: true
Changing output paths

This is useful if you for example you want the processed files to be output to a folder on your Desktop

userConfig:
  inputFilePath: "C:/Users/USER/Desktop/Scraper/input.txt"
  outputFilePath: "C:/Users/USER/Desktop/Scraper/"

Step 8: Run the Assistant

You can now run the mapping assistant using the following command:

npm run assistant

Auto-scraping (Optional)

If you would prefer to input a large number of IDs, and have the program output a file for you, you can do it using this script.

Make sure that you fill batch\input.txt with a newline-seperated list of IDs.

npm run auto

Debugging (Optional)

If you need to debug and test towards API directly, you can use the following command:

npm run debug

Testing (Optional)

To run tests to make sure the API is spitting out the correct information, use the following command:

npm test

Scripts

  • assistant: Runs the assistant script
  • debug: Runs the debug script to see raw outputs of APIs

Issues

If you have any issues, please open a new issue in the Issues section of this repository.

Credits

Thank you to all the people who have contributed!

License