mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add option for custom fields to the export modal
This commit is contained in:
parent
31e6f4282d
commit
26fb9a6803
6 changed files with 167 additions and 15 deletions
|
@ -1300,6 +1300,18 @@ def dict_merge(a, b, path=None):
|
|||
return a
|
||||
|
||||
|
||||
#https://stackoverflow.com/a/26853961
|
||||
def dict_update(*dict_args):
|
||||
"""
|
||||
Given any number of dictionaries, shallow copy and merge into a new dict,
|
||||
precedence goes to key value pairs in latter dictionaries.
|
||||
"""
|
||||
result = {}
|
||||
for dictionary in dict_args:
|
||||
result.update(dictionary)
|
||||
return result
|
||||
|
||||
|
||||
def is_hdr(bit_depth, color_space):
|
||||
bit_depth = cast_to_int(bit_depth)
|
||||
return bit_depth > 8 and color_space == 'bt2020nc'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue