{"id":29618425,"url":"https://github.com/varthe/Redirecter","last_synced_at":"2025-07-21T02:02:03.258Z","repository":{"id":263297286,"uuid":"889916205","full_name":"varthe/Redirecter","owner":"varthe","description":"Filter and redirect media requests based on requester, keywords, age ratings, and more. Supports routing to multiple instances simultaneously.","archived":false,"fork":false,"pushed_at":"2025-07-15T12:47:46.000Z","size":157,"stargazers_count":84,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T04:44:24.017Z","etag":null,"topics":["arrs","filter","filtering","filters","jellyfin","jellyseerr","media","mediaserver","overseerr","plex","plex-media-server","radarr","sonarr"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varthe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-17T15:12:47.000Z","updated_at":"2025-07-15T12:47:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6685d5a-d38f-4c5a-b308-9a2e39c2ce86","html_url":"https://github.com/varthe/Redirecter","commit_stats":null,"previous_names":["varthe/redirecterr","varthe/redirecter"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/varthe/Redirecter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varthe%2FRedirecter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varthe%2FRedirecter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varthe%2FRedirecter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varthe%2FRedirecter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varthe","download_url":"https://codeload.github.com/varthe/Redirecter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varthe%2FRedirecter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266226982,"owners_count":23895728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrs","filter","filtering","filters","jellyfin","jellyseerr","media","mediaserver","overseerr","plex","plex-media-server","radarr","sonarr"],"created_at":"2025-07-21T02:01:32.165Z","updated_at":"2025-07-21T02:02:03.253Z","avatar_url":"https://github.com/varthe.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Redirecter\n\n## Docker Compose\n```yaml\nservices:\n    redirecterr:\n        image: varthe/redirecterr:latest\n        container_name: redirecterr\n        hostname: redirecterr\n        ports:\n            - 8481:8481\n        volumes:\n            - /path/to/config.yaml:/app/config.yaml\n            - /path/to/logs:/logs\n        environment:\n            - LOG_LEVEL=info\n```\n\n## Webhook setup\n\u003e [!IMPORTANT]  \n\u003e Disable automatic request approval for your users\n\nIn Overseerr go to **Settings -\u003e Notifications -\u003e Webhook** and configure the following:\n\n-   **Enable Agent**: Enabled\n-   **Webhook URL**: `http://redirecterr:8481/webhook`\n-   **Notification Types**: Select **Request Pending Approval**\n-   **JSON Payload**:\n    ```json\n    {\n        \"notification_type\": \"{{notification_type}}\",\n        \"media\": {\n            \"media_type\": \"{{media_type}}\",\n            \"tmdbId\": \"{{media_tmdbid}}\",\n            \"status\": \"{{media_status}}\",\n            \"status4k\": \"{{media_status4k}}\"\n        },\n        \"request\": {\n            \"request_id\": \"{{request_id}}\",\n            \"requestedBy_email\": \"{{requestedBy_email}}\",\n            \"requestedBy_username\": \"{{requestedBy_username}}\",\n        },\n        \"{{extra}}\": []\n    }\n    ```\n\n## Config\nCreate a `config.yaml` file with the following sections:\n\n### Overseerr settings\n```yaml\noverseerr_url: \"\"\noverseerr_api_token: \"\"\napprove_on_no_match: true  # Auto-approve if no filters match\n```\n\n### Instances\nDefine your Radarr/Sonarr instances\n\n```yaml\ninstances:\n  radarr:                    \n    server_id: 0             # Match the order in Overseerr \u003e Settings \u003e Services (example below)\n    root_folder: /mnt/movies\n    # quality_profile_id: 1  # Optional\n    # approve: false         # Optional (default is true)\n```\n\n- `server_id`: Starts at 0, increases left to right in Overseerr UI. [Visual example](https://github.com/user-attachments/assets/a7a60d91-0f24-42a9-bbe1-ea4f1c945e6a)\n- `quality_profile_id` (Optional): Override Overseerr default. Get IDs from:\n\n  ```\n  http://\u003carr-url\u003e/api/v3/qualityProfile?apiKey=\u003capi-key\u003e\n  ```\n- `approve`: Set to false to disable auto-approval.\n\n\n### Filters\n\nFilters route requests based on conditions.\n\n```yaml\nfilters:\n    - media_type: movie\n      # is_4k: true  # Optional\n      conditions:\n          keywords:\n              include: [\"anime\", \"animation\"]\n          contentRatings:\n              exclude: [12, 16]\n          requestedBy_username: user\n          max_seasons: 2\n      apply: radarr_anime\n```\n\n#### Fields\n\n-   `media_type`: `movie` or `tv`\n-   `is_4k` (Optional): Set to `true` to only match 4K requests. Set to `false` to only match non-4k requests. Leave empty to match both.\n-   `conditions`:\n    - `field`:\n        -   `require`: All values must match\n        -   `exclude`: None of the values must match\n        -   `include`: At least one value matches\n-   `apply`: One or more instance names\n\n\u003e [!TIP]  \n\u003e For a list of possible condition fields see [fields.md](https://github.com/varthe/Redirecterr/blob/main/fields.md)\n\n### Sample config\n```yaml\noverseerr_url: \"\"\noverseerr_api_token: \"\"\n\napprove_on_no_match: true\n\ninstances:\n    sonarr:\n        server_id: 0\n        root_folder: \"/mnt/plex/Shows\"\n    sonarr_4k:\n        server_id: 1\n        root_folder: \"/mnt/plex/Shows - 4K\"\n    sonarr_anime:\n        server_id: 2\n        root_folder: \"/mnt/plex/Anime\"\n\nfilters:\n    # Send anime to sonarr_anime\n    - media_type: tv\n      conditions:\n          keywords: anime\n      apply: sonarr_anime\n\n    # Send everything else to sonarr and sonarr_4k instances\n    - media_type: tv\n      apply: [\"sonarr\", \"sonarr_4k\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarthe%2FRedirecter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarthe%2FRedirecter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarthe%2FRedirecter/lists"}