Sign inSign up

arialz/romaji-renamer

By arialz

Updated about 2 months ago

Script to retrieve metadata from MAL and Anilist and import it to plex with a Kometa metadata file

Image
1

7.4K

arialz/romaji-renamer repository overview

Romaji-Renamer

See https://github.com/Arial-Z/Romaji-Renamer

Step 1 - Prerequisites

Requirements: Plex Media Server, Plex-Meta-Manager

Step 2 - Run the docker container a first time

to create the default files

docker run --name romaji-renamer --rm --pull=always -v "SCRIPT_CONFIG_PATH_GOES_HERE:/config:rw" -v "KOMETA_PATH_GOES_HERE:/pmm:rw" arialz/romaji-renamer --run
Step 3 - Configure the script
  • Navigate to the config directory.
  • Copy default.env to .env
  • edit .env to fill out the variables and settings.
#Url of the Plex server (Needed)
plex_url=http://127.0.0.1:32400
#Plex token (Needed)
plex_token=zadazdzadazdazdazdazdazd


# Run the animes script (Yes/No)
RUN_ANIMES_SCRIPTS=Yes
# Plex animes library name need to be in a double quote (Needed for the animes script)
ANIME_LIBRARY_NAME="Animes"
# Path to the created animes metadata file (Needed for the animes script)
METADATA_ANIMES=$SCRIPT_FOLDER/pmm/metadata-animes.yml


# Run the movies script (Yes/No)
RUN_MOVIES_SCRIPTS=No
# Plex movies animes library name need to be in a double quote (Needed for the movies script)
MOVIE_LIBRARY_NAME="Animes Movies"
# Path to the created movies metadata file (Needed for the movies script)
METADATA_MOVIES=$SCRIPT_FOLDER/pmm/metadata-animes-movies.yml

# Run the seasonal download script (Yes/No)
RUN_SEASONAL_SCRIPTS=No
# Number of animes added to the sesonal animes auto-download collection (Needed for the seasonal-animes-download.sh script)
DOWNLOAD_LIMIT=20
# Path to the created seasonal-animes-download file (Needed for the seasonal-animes-download.sh script)
DOWNLOAD_ANIMES_COLLECTION=$SCRIPT_FOLDER/pmm/seasonal-animes-download.yml


# Kometa Asset Folder to import posters (Needed)
ASSET_FOLDER=$SCRIPT_FOLDER/pmm/assets
# Folder where the logs of script are kept (Default is okay change if you want)
LOG_FOLDER=$SCRIPT_FOLDER/config/logs


# Type of rating used in Plex by Anilist (audience, critic, user / leave empty to disable)
WANTED_RATING=audience
# Source for RATING (MAL / ANILIST)
RATING_SOURCE=ANILIST
# Use the english name as title (and also sort_title) instead of the romaji one, the romaji title will be set as original title (Yes/No)
MAIN_TITLE_ENG=No
# Use the english name as sort_title instead of the romaji one (Yes/No)
SORT_TITLE_ENG=No
# Use the native name as original_title instead of the romaji/english one (Yes/No)
ORIGINAL_TITLE_NATIVE=Yes
# Download poster (Yes/No)
POSTER_DOWNLOAD=Yes
# Download seasons poster (Yes/No)
POSTER_SEASON_DOWNLOAD=Yes
# Source for poster (MAL / ANILIST)
POSTER_SOURCE=ANILIST
# Ignore seasons rating and poster (Yes/No)
IGNORE_SEASONS=No
# Anilist have some full uppercase title, this settings will remove them "86 EIGHTY-SIX" > "86 Eighty-Six" (Yes/No)
REDUCE_TITLE_CAPS=Yes
#Add the anime season to the season label in plex (Fall  2022, Spring 2021, ...)
SEASON_YEAR=No
# Anime metadata cache time (in days min : 1)
DATA_CACHE_TIME=3
Step 4 - Configure Kometa
  • Within your (Kometa) config.yml add the following metadata_path, it should look like this with the default filepath:
  Animes:
    metadata_path:
    - file: config/metadata-animes.yml

Configuration finished.

You can now run the script using the same command as before
docker run --name romaji-renamer --rm --pull=always -v "SCRIPT_CONFIG_PATH_GOES_HERE:/config:rw" -v "KOMETA_PATH_GOES_HERE:/pmm:rw" arialz/plex-romaji-renamer --run

Tag summary

Content type

Image

Digest

sha256:e60982126

Size

71.7 MB

Last updated

about 2 months ago

docker pull arialz/romaji-renamer