MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get_case_insensitive_attr

Function get_case_insensitive_attr

apps/m3u/tasks.py:552–557  ·  view source on GitHub ↗

Get attribute value using case-insensitive key lookup.

(attributes, key, default="")

Source from the content-addressed store, hash-verified

550
551
552def get_case_insensitive_attr(attributes, key, default=""):
553 """Get attribute value using case-insensitive key lookup."""
554 for attr_key, attr_value in attributes.items():
555 if attr_key.lower() == key.lower():
556 return attr_value
557 return default
558
559
560def parse_is_adult(value):

Callers 2

process_m3u_batch_directFunction · 0.85
refresh_m3u_groupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected