Skip to content

Commit

Permalink
fix: allow hyphen, dot or space when parsing for HDR10plus
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronisles authored and dreulavelle committed Dec 6, 2024
1 parent 877585b commit 57a6b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PTT/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def handle_bit_depth(context):

# HDR
parser.add_handler("hdr", regex.compile(r"\bDV\b|dolby.?vision|\bDoVi\b", regex.IGNORECASE), uniq_concat(value("DV")), {"remove": True, "skipIfAlreadyFound": False})
parser.add_handler("hdr", regex.compile(r"HDR10(?:\+|plus)", regex.IGNORECASE), uniq_concat(value("HDR10+")), {"remove": True, "skipIfAlreadyFound": False})
parser.add_handler("hdr", regex.compile(r"HDR10(?:\+|[-\.\s]?plus)", regex.IGNORECASE), uniq_concat(value("HDR10+")), {"remove": True, "skipIfAlreadyFound": False})
parser.add_handler("hdr", regex.compile(r"\bHDR(?:10)?\b", regex.IGNORECASE), uniq_concat(value("HDR")), {"remove": True, "skipIfAlreadyFound": False})
parser.add_handler("hdr", regex.compile(r"\bSDR\b", regex.IGNORECASE), uniq_concat(value("SDR")), {"remove": True, "skipIfAlreadyFound": False})

Expand Down

0 comments on commit 57a6b82

Please sign in to comment.