Merge branch 'feature/json-data-reference' of https://github.com/tiemonl/Guides into feature/json-data-reference

pull/720/head
tiemonl 2 years ago
commit 6b0e4a590f

@ -0,0 +1,25 @@
name: Validate Metadata JSON
on:
push:
paths:
- metadata.json
- metadata.schema.json
- .github/workflows/metadata-validation.yml
pull_request:
paths:
- metadata.json
- metadata.schema.json
- .github/workflows/metadata-validation.yml
jobs:
validate:
runs-on: ubuntu-latest
name: Validate metadata.json
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install jsonschema
- run: jsonschema -i metadata.json metadata.schema.json

@ -497,7 +497,7 @@ Add this to your `Must not contain (2)`
Add this to your `Must not contain (2)`
```bash
/^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\b|-GGEZ\b|-GGWP\b|-GLHF\b|-KOGI\b)).*/i
/^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\b|-GGEZ\b|-GGWP\b|-GLHF\b|-GOSSIP\b|-KOGI\b|-PECULATE\b)).*/i
```

@ -0,0 +1,17 @@
{
"trash_id": "0a3f082873eb454bde444150b70253cc",
"trash_score": "-10000",
"name": "Extras",
"includeCustomFormatWhenRenaming": false,
"specifications": [
{
"name": "Extras",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": true,
"fields": {
"value": "(?<=\\b[12]\\d{3}\\b).*\\b(Extras)\\b"
}
}
]
}

@ -58,6 +58,15 @@
"value": "\\bCMRG\\b"
}
},
{
"name": "CRFW",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\bCRFW\\b"
}
},
{
"name": "CRUD",
"implementation": "ReleaseTitleSpecification",

@ -58,6 +58,15 @@
"value": "CMRG\\b"
}
},
{
"name": "CRFW",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "CRFW\\b"
}
},
{
"name": "CRUD",
"implementation": "ReleaseGroupSpecification",

@ -16,7 +16,7 @@
}, {
"name": "Ignore so called scene releases",
"trash_id": "5bc23c3a055a1a5d8bbe4fb49d80e0cb",
"term": "/^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\\b|-GGEZ\\b|-GGWP\\b|-GLHF\\b|-KOGI\\b)).*/i"
"term": "/^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\\b|-GGEZ\\b|-GGWP\\b|-GLHF\\b|-GOSSIP\\b|-KOGI\\b|-PECULATE\\b)).*/i"
}, {
"name": "Dislike Bad Dual Audio Groups",
"trash_id": "538bad00ee6f8aced8e0db5218b8484c",

@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/TRaSH-/Guides/master/metadata.schema.json",
"type": "object",
"additionalProperties": false,
@ -9,8 +9,8 @@
"type": "object",
"additionalProperties": false,
"properties": {
"radarr": "#/$defs/radarr",
"sonarr": "#/$defs/sonarr"
"radarr": { "$ref": "#/$defs/radarr" },
"sonarr": { "$ref": "#/$defs/sonarr" }
}
}
},
@ -27,14 +27,14 @@
"type": "object",
"additionalProperties": false,
"properties": {
"custom_formats": "#/$defs/custom_formats"
"custom_formats": { "$ref": "#/$defs/custom_formats" }
}
},
"sonarr": {
"type": "object",
"additionalProperties": false,
"properties": {
"release_profiles": "#/$defs/release_profiles"
"release_profiles": { "$ref": "#/$defs/release_profiles" }
}
}
}

Loading…
Cancel
Save