mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
feat: add Quality_Modifiers class for Radarr quality mappings and retrieval method
This commit is contained in:
@@ -66,6 +66,18 @@ class Sources:
|
||||
}
|
||||
|
||||
|
||||
class Quality_Modifiers:
|
||||
"""Quality modifier mappings for Radarr ONLY"""
|
||||
RADARR = {
|
||||
'none': 0,
|
||||
'regional': 1,
|
||||
'screener': 2,
|
||||
'rawhd': 3,
|
||||
'brdisk': 4,
|
||||
'remux': 5,
|
||||
}
|
||||
|
||||
|
||||
class Qualities:
|
||||
"""Quality mappings for both applications"""
|
||||
COMMON_RESOLUTIONS = {
|
||||
@@ -927,6 +939,10 @@ class ValueResolver:
|
||||
"""Maps quality names between different formats based on target app"""
|
||||
return QualityNameMapper.map_quality_name(name, target_app)
|
||||
|
||||
@classmethod
|
||||
def get_quality_modifier(cls, quality_modifier: str) -> int:
|
||||
return Quality_Modifiers.RADARR.get(quality_modifier.lower(), 0)
|
||||
|
||||
@classmethod
|
||||
def get_language(cls,
|
||||
language_name: str,
|
||||
|
||||
Reference in New Issue
Block a user