Ensure all conditions work
This commit is contained in:
parent
e48af3aba1
commit
09c5bc02d9
206 changed files with 413 additions and 251 deletions
0
scripts/utils/mappings/__init__.py
Normal file
0
scripts/utils/mappings/__init__.py
Normal file
24
scripts/utils/mappings/indexer_flags.py
Normal file
24
scripts/utils/mappings/indexer_flags.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
INDEXER_FLAG_MAPPING = {
|
||||
"radarr": {
|
||||
1: "freeleech",
|
||||
2: "halfleech",
|
||||
4: "double_upload",
|
||||
32: "internal",
|
||||
128: "scene",
|
||||
256: "freeleech_75",
|
||||
512: "freeleech_25",
|
||||
2048: "nuked",
|
||||
8: "ptp_golden",
|
||||
16: "ptp_approved",
|
||||
},
|
||||
"sonarr": {
|
||||
1: "freeleech",
|
||||
2: "halfleech",
|
||||
4: "double_upload",
|
||||
8: "internal",
|
||||
16: "scene",
|
||||
32: "freeleech_75",
|
||||
64: "freeleech_25",
|
||||
128: "nuked",
|
||||
},
|
||||
}
|
||||
108
scripts/utils/mappings/languages.py
Normal file
108
scripts/utils/mappings/languages.py
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
LANGUAGE_MAPPING = {
|
||||
"radarr": {
|
||||
-1: "any",
|
||||
-2: "original",
|
||||
0: "unknown",
|
||||
1: "english",
|
||||
2: "french",
|
||||
3: "spanish",
|
||||
4: "german",
|
||||
5: "italian",
|
||||
6: "danish",
|
||||
7: "dutch",
|
||||
8: "japanese",
|
||||
9: "icelandic",
|
||||
10: "chinese",
|
||||
11: "russian",
|
||||
12: "polish",
|
||||
13: "vietnamese",
|
||||
14: "swedish",
|
||||
15: "norwegian",
|
||||
16: "finnish",
|
||||
17: "turkish",
|
||||
18: "portuguese",
|
||||
19: "flemish",
|
||||
20: "greek",
|
||||
21: "korean",
|
||||
22: "hungarian",
|
||||
23: "hebrew",
|
||||
24: "lithuanian",
|
||||
25: "czech",
|
||||
26: "hindi",
|
||||
27: "romanian",
|
||||
28: "thai",
|
||||
29: "bulgarian",
|
||||
30: "portuguese_br",
|
||||
31: "arabic",
|
||||
32: "ukrainian",
|
||||
33: "persian",
|
||||
34: "bengali",
|
||||
35: "slovak",
|
||||
36: "latvian",
|
||||
37: "spanish_latino",
|
||||
38: "catalan",
|
||||
39: "croatian",
|
||||
40: "serbian",
|
||||
41: "bosnian",
|
||||
42: "estonian",
|
||||
43: "tamil",
|
||||
44: "indonesian",
|
||||
45: "telugu",
|
||||
46: "macedonian",
|
||||
47: "slovenian",
|
||||
48: "malayalam",
|
||||
49: "kannada",
|
||||
50: "albanian",
|
||||
51: "afrikaans",
|
||||
},
|
||||
"sonarr": {
|
||||
0: "unknown",
|
||||
1: "english",
|
||||
2: "french",
|
||||
3: "spanish",
|
||||
4: "german",
|
||||
5: "italian",
|
||||
6: "danish",
|
||||
7: "dutch",
|
||||
8: "japanese",
|
||||
9: "icelandic",
|
||||
10: "chinese",
|
||||
11: "russian",
|
||||
12: "polish",
|
||||
13: "vietnamese",
|
||||
14: "swedish",
|
||||
15: "norwegian",
|
||||
16: "finnish",
|
||||
17: "turkish",
|
||||
18: "portuguese",
|
||||
19: "flemish",
|
||||
20: "greek",
|
||||
21: "korean",
|
||||
22: "hungarian",
|
||||
23: "hebrew",
|
||||
24: "lithuanian",
|
||||
25: "czech",
|
||||
26: "arabic",
|
||||
27: "hindi",
|
||||
28: "bulgarian",
|
||||
29: "malayalam",
|
||||
30: "ukrainian",
|
||||
31: "slovak",
|
||||
32: "thai",
|
||||
33: "portuguese_br",
|
||||
34: "spanish_latino",
|
||||
35: "romanian",
|
||||
36: "latvian",
|
||||
37: "persian",
|
||||
38: "catalan",
|
||||
39: "croatian",
|
||||
40: "serbian",
|
||||
41: "bosnian",
|
||||
42: "estonian",
|
||||
43: "tamil",
|
||||
44: "indonesian",
|
||||
45: "macedonian",
|
||||
46: "slovenian",
|
||||
-2: "original",
|
||||
},
|
||||
}
|
||||
212
scripts/utils/mappings/qualities.py
Normal file
212
scripts/utils/mappings/qualities.py
Normal file
|
|
@ -0,0 +1,212 @@
|
|||
QUALITIES = [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Raw-HD",
|
||||
"description": "Uncompressed, high definition recorded video from airing",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "BR-Disk",
|
||||
"description": "Complete Blu-ray disc image",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Remux-2160p",
|
||||
"description": "4K Ultra HD Blu-ray disc content remuxed into a playable file format",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "Bluray-2160p",
|
||||
"description": "4K Ultra HD Blu-ray video encoded with lossy compression",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "WEBDL-2160p",
|
||||
"description": "4K web download, untouched as released by the streaming service",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "WEBRip-2160p",
|
||||
"description": "4K web rip, either captured from a 4K WEB-DL using a capture card or re-encoded from a 4K WEB-DL",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"name": "HDTV-2160p",
|
||||
"description": "4K high-definition digital television capture",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"name": "Remux-1080p",
|
||||
"description": "1080p Blu-ray disc content remuxed into a playable file format",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "WEBDL-1080p",
|
||||
"description": "1080p web download, untouched as released by the streaming service",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"name": "Bluray-1080p",
|
||||
"description": "1080p Blu-ray video encoded with lossy compression",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "WEBRip-1080p",
|
||||
"description": "1080p web rip, either captured using a capture card or re-encoded from a WEB-DL of equal or higher resolution",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "HDTV-1080p",
|
||||
"description": "1080p high-definition digital television capture",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"name": "Bluray-720p",
|
||||
"description": "720p Blu-ray video encoded with lossy compression",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"name": "WEBDL-720p",
|
||||
"description": "720p web download, untouched as released by the streaming service",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "WEBRip-720p",
|
||||
"description": "720p web rip, either captured using a capture card or re-encoded from a WEB-DL of equal or higher resolution",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"name": "HDTV-720p",
|
||||
"description": "720p high-definition digital television capture",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"name": "Bluray-576p",
|
||||
"description": "576p Blu-ray video encoded with lossy compression",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"name": "Bluray-480p",
|
||||
"description": "480p Blu-ray video encoded with lossy compression",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"name": "WEBDL-480p",
|
||||
"description": "480p web download, untouched as released by the streaming service",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"name": "WEBRip-480p",
|
||||
"description": "480p web rip, either captured using a capture card or re-encoded from a WEB-DL of equal or higher resolution",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"name": "DVD-R",
|
||||
"description": "DVD-Video disc image",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"name": "DVD",
|
||||
"description": "Standard DVD video, usually encoded at 480p",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"name": "DVDSCR",
|
||||
"description": "DVD screener, usually a lower quality early release",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"name": "SDTV",
|
||||
"description": "Standard-definition digital television capture, typically 480p or lower",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"name": "Telecine",
|
||||
"description": "Movie captured from a film print using a telecine machine",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"name": "Telesync",
|
||||
"description": "Filmed in a movie theater using a professional camera, often with external audio",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"name": "REGIONAL",
|
||||
"description": "A release intended for a specific geographic region",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"name": "WORKPRINT",
|
||||
"description": "An unfinished version of a movie, often with incomplete special effects",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"name": "CAM",
|
||||
"description": "Filmed in a movie theater using a camcorder or mobile phone",
|
||||
"radarr": True,
|
||||
"sonarr": False,
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"name": "Unknown",
|
||||
"description": "Quality or source is unknown or unspecified",
|
||||
"radarr": True,
|
||||
"sonarr": True,
|
||||
},
|
||||
]
|
||||
10
scripts/utils/mappings/quality_modifiers.py
Normal file
10
scripts/utils/mappings/quality_modifiers.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
QUALITY_MODIFIER_MAPPING = {
|
||||
"radarr": {
|
||||
0: "none",
|
||||
1: "regional",
|
||||
2: "screener",
|
||||
3: "rawhd",
|
||||
4: "brdisk",
|
||||
5: "remux",
|
||||
}
|
||||
}
|
||||
8
scripts/utils/mappings/release_type.py
Normal file
8
scripts/utils/mappings/release_type.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
RELEASE_TYPE_MAPPING = {
|
||||
"sonarr": {
|
||||
0: "none",
|
||||
1: "single_episode",
|
||||
2: "multi_episode",
|
||||
3: "season_pack",
|
||||
}
|
||||
}
|
||||
22
scripts/utils/mappings/source.py
Normal file
22
scripts/utils/mappings/source.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
SOURCE_MAPPING = {
|
||||
"radarr": {
|
||||
1: "cam",
|
||||
2: "telesync",
|
||||
3: "telecine",
|
||||
4: "workprint",
|
||||
5: "dvd",
|
||||
6: "tv",
|
||||
7: "web_dl",
|
||||
8: "webrip",
|
||||
9: "bluray",
|
||||
},
|
||||
"sonarr": {
|
||||
1: "television",
|
||||
2: "televisionraw",
|
||||
3: "web_dl",
|
||||
4: "webrip",
|
||||
5: "dvd",
|
||||
6: "bluray",
|
||||
7: "blurayraw",
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue