GithubHelp home page GithubHelp logo

plexanisync-mappings-automation-script's Introduction

PlexAniSync-Mappings Automation Script

This is a web-scraping script for custom-mappings for the PlexAniSync plex addon for Anilist.co. Since there were no other automated tools to create custom mappings, I decided to create my own so I would not need to start from scratch every season.

The script is not 100% accurate with mappings and each mapping may need to be adjusted. This is meant to be a baseline to start from.

The script uses the Anilist.co API. API Documentation can be found here.

Requirements

The program has only been tested on Python 3.11.0. Other versions may have varying levels of success.

  • Dependencies can be found in requirements.txt.
  • install using either pip install -U -r requirements.txt or python -m pip install -U -r requirements.txt.

How to use

Running manually

First, clone the repository with the green button in the top right hand side where it says <> Code. Then install the requirements above.

Single Entry:

  • Run the script by using python getAni.py then follow the prompts.
  • The script will automatically retrieve prequels seasons if it can detect them.
  • This can be disabled by setting getPrequel=False in the main function.

Entire Season:

  • Run the script by using python getAniSeason.py then following the prompts.
  • The script will automatically retrieve prequels seasons if it can detect them.
  • This can be disabled by setting getPrequel=False at the end of getAniSeasonData() function.

Importing

For full information, read this section.

Example custom_mappings.yaml with The Movie Database, which is the default provider using the built-in Plex agent:

remote-urls:
  - https://raw.githubusercontent.com/tmarkn/PlexAniSync-Mappings-Automation-Script/main/yaml/2023-0-WINTER-Anime.yaml
  - https://raw.githubusercontent.com/tmarkn/PlexAniSync-Mappings-Automation-Script/main/yaml/2023-1-SPRING-Anime.yaml
  - https://raw.githubusercontent.com/tmarkn/PlexAniSync-Mappings-Automation-Script/main/yaml/2023-2-SUMMER-Anime.yaml

How to contribute

Recommmendations are welcome, however, I will not be accepting pull requests at the moment. Feel free to add a suggestion by raising an Issue.

plexanisync-mappings-automation-script's People

Contributors

tmarkn avatar

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.