Skip to content

Latest commit

 

History

History
240 lines (172 loc) · 10 KB

CONTRIBUTING.md

File metadata and controls

240 lines (172 loc) · 10 KB

Contributing Guidelines

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

Here you will find a set of guidelines for contributing to TRaSH Guides, These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

Guidelines

  • Make sure you're editing the latest version.
  • If you propose changes, ensure they don't break anything else in the guides.
  • Make sure that after the changes, you don't get any markdownlint errors
  • If the metadata.json and metadata.schema.json needs changes, announce it first in the Discord #development channel and ping voidpointer and nitsua so the 3rd party apps don't break ‼️

Branch naming

Important

We're trying to be as consistent as possible because of the automation of the changelog.

  • feat/xxx Commits that adds a new feature
  • fix/xxx Commits that fixes a bug/issue
  • style/xxx Commits that do not affect the meaning (white-space, formatting, missing semi-colons, grammar, etc.)
  • chore/xxx Miscellaneous commits (administrative, cleanup, backend, etc)

Note

Where xxx can stand for the main Guide Categories in the guide.

Examples:

  • feat/Starr-ELEANOR-to-Scene-CF
  • feat/radarr-CiNEPHiLES-to-Remux-Tier-02
  • style/radarr minor-grammar corrections
  • fix/starr-dv-hdr10-cf-should-match-dv-hdr10+

Pull Request naming

Important

Because the changelog is created automatically, we want to make the PR name as clear and consistent as possible.

The PR naming consists of 3 parts.

part1(part2): part3 => type(guide category): short detailed descriptions

Types

Source

  • feat(xxx): Commits that adds a new feature
  • fix(xxx): Commits that fixes a bug/issue
  • style(xxx): Commits that do not affect the meaning (white-space, formatting, missing semi-colons, grammar, etc)
  • chore(xxx): Miscellaneous commits (administrative, cleanup, backend, etc)

Note

Where xxx can stand for the main Guide Categories in the guide.

Guide categories

The following Guide categories can be used for the PR name.

- type(radarr): #Radarr related
- type(radarr-german): #Radarr related but for the German guides
- type(radarr-french): #Radarr related but for the French guides
- type(radarr-anime): #Radarr related but for the Anime guides
- type(sonarr): #Sonarr related
- type(sonarr-german): #Sonarr related but for the German guides
- type(sonarr-french): #Sonarr related but for the French guides
- type(sonarr-anime): #Sonarr related but for the Anime guides
- type(starr): #Sonarr and Radarr related
- type(starr-german): #Sonarr and Radarr related but for the German guides
- type(starr-french): #Sonarr and Radarr related but for the French guides
- type(starr-anime): #Sonarr and Radarr related but for the Anime guides
- type(prowlarr): #Prowlarr related
- type(lidarr): #Lidarr related
- type(bazarr): #Bazarr related
- type(hardlinks): #Hardlinks/File and Folder Structure related
- type(downloaders): #Downloaders related
- type(plex): #Plex related
- type(guide-sync): # Officially supported third-party party Guide Sync Tools related
- type(misc): #Miscellaneous guides that do not fit in any other categories but are still related to Radarr/Sonarr, etc
- type(glossary): #Any additions/changes to the glossary page

Examples:

  • feat(guide-sync): Add more groups to give the user more personal options
  • feat(guide-sync): Add new Quality Profiles for Radarr/Sonarr
  • feat(starr): [NEW Guide] How does the current rank logic work
  • feat(downloaders): [NZBGet] Updated the guide to reflect the recent changes with v24.5

When doing a PR that is WIP

Tip

When doing a PR that is in progress and not yet complete/ready for review or not yet done fully, please ensure it is a DRAFT Pull Request

Radarr/Sonarr Custom Format (JSON)

Release Group Reclassifications, Removals, or Additions

Warning

When adding a release group to a Custom Format, please explain why it's added/removed/moved in the PR.

General Guidelines

Caution

  • Custom Format name needs to match JSON name ‼️
  • No hashcode can exist multiple times ‼️
  • Tiers only hold release groups that have at least done several dozen objectively high-quality releases or are added for a specific reason. (If they do mainly niche stuff and/or foreign stuff, they won't be added)
  • All Tier Groups must use retail sources. Fanres and upscaled groups are forbidden. This is due to the high effort required and the near impossibility of systematically guaranteeing quality without manually checking every single movie.
  • JSON file format shall consist of the following TRaSH-specific data appended to the JSON exported from Starr
{
    "trash_id": "HASHCODE",
    "trash_scores": {
        "default": 50,
        "some_other_profile": 100
    },
    "trash_regex": "https://regex101.com/r/pADWJD/5",
STARRJSONEXPORT
}

General Structure

  • JSON file name - the name of the json file
  • trash_id - Generated HashCode for the Custom Format
  • trash_scores - JSON object of score(s) for the Custom Format. Note that Custom Formats with Default Scores of 0 should NOT have a trash_scores.default
  • trash_regex - Link to regex test cases for regex
  • STARRJSONEXPORT - The exported custom format created within Starr. Note that this will have a leading { that will need to have the trash-specific regex added after it.

File Naming

Caution

JSON file names are always written in lowercase, spaces are replaced by a dash, and no spaces or special characters except a dash ‼️

Hashcode

  • When adding the hashcode for Radarr, use the following naming convention: CF_name e.g., the Custom Format BR-DISK would be the hash of BR-DISK When adding the hashcode for Radarr Anime, use the following naming convention: Radarr Anime CF_name. For example, the Custom Format BR-DISK would be the hash of Radarr Anime BR-DISK.
  • When adding the hashcode for Sonarr, use the following naming convention: Sonarr CF_name e.g. the Custom Format BR-DISK would be the hash of Sonarr BR-DISK.
  • When adding the hashcode for Sonarr Anime, use the following naming convention: Sonarr Anime CF_name e.g. the Custom Format BR-DISK would be the hash of Sonarr Anime BR-DISK.

Regex Test Cases

  • Provide a link to your regex example of your Custom Format using the following Template.

When adding a regex test case:

  • Replace the actual movie name with Movie.
  • Replace the actual Series name/title with Series.
  • Replace the actual group name with RlsGrp

When updating or adding a new CF, the test case URL (trash_regex) needs to be prepended to the exported from Starr JSON

{
    "trash_regex": "https://regex101.com/r/pADWJD/5"
}

Scoring

  • Scores must be added as JSON objects under trash_scores, for example:
{
    "trash_scores": {
        "default": 50,
        "some_other_profile": 100
    }
}
  • This allows for Custom Formats to be assigned different scores for different profiles
  • Default Scores of 0 (e.g., as in trash_scores.default) are FORBIDDEN

YAML file naming

Caution

  • If a hashcode is needed No hashcode can exist multiple times ‼️
  • Use this website to generate an md5 hash
  • YAML file names are always written in small letters, spaces are replaced by a dash, and no spaces or special characters except a dash ‼️

Quality Profiles and 3rd party sync apps

Important

When creating a new quality profile or editing an existing one, it's mandatory to ensure that these settings are updated/added to the following locations for the third-party sync apps.

  • Radarr: docs/json/radarr/quality-profiles

    • docs/json/radarr/cf-groups
  • Sonarr: docs/json/sonarr/quality-profiles

    • docs/json/Sonarr/cf-groups
  • docs/json/xxxarr/quality-profiles = The base quality profile with all the mandatory Custom Formats.

  • docs/json/xxxarr/cf-groups = The optional/User choices that wouldn't break the Quality Profile.

Recommendations

Use VSCode for editing. VS Code should recommend extensions to you based on the .vscode/extensions.json file; you should install all of them.

Preview Docs Locally

Prerequisites

These prerequisites are taken from the mkdocs installation instructions.

  • Install a recent version of Python 3.
  • pip is also required, but it should come with Python. Run pip --version to check if it's available and working. See the installation instructions.

Alternatively, you can check out the docker container and instructions maintained by zakkarry specifically for developing the guides here. The documentation in the README explains the installation process.

Mkdocs Installation

First, install mkdocs:

pip install mkdocs

Then, you can install dependent modules using the command below. This command should be run in the repository's root directory (i.e., where the requirements.txt file is). If the pip command does If it doesn't work, please check the mkdocs installation page linked in the Prerequisite section above.

pip install -r docs/requirements.txt

Once everything is installed, run the command below to start a local dev server to preview your changes to mkdocs:

mkdocs serve