Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dp247/Freeview-EPG
/ functions
Functions
40 in github.com/dp247/Freeview-EPG
⨍
Functions
40
◇
Types & classes
4
↓ 5 callers
Function
_pick_text
(*values: Any)
src/providers/youview.py:86
↓ 4 callers
Function
parse_duration
Parse an ISO 8601 duration string into a :class:`timedelta`. Years and months are not handled because they are ambiguous with respect to a co
src/xmltv.py:51
↓ 3 callers
Function
clean_text
Clean a piece of text for inclusion in XML. This function removes control characters, feature tags (e.g. [AD], [HD]) and season/episode annot
src/xmltv.py:31
↓ 2 callers
Function
_safe_int
Safely convert a value to a positive integer or return None.
src/xmltv.py:79
↓ 2 callers
Function
build_xmltv
Construct an XMLTV document from channels and programmes. Channels and programmes are sorted deterministically to ensure stable output betwee
src/xmltv.py:88
↓ 2 callers
Function
dedupe_programmes
Deduplicate a list of programme dictionaries. A programme is considered duplicate if it has the same channel ID, start timestamp and title as
src/dedupe.py:14
↓ 2 callers
Function
remove_control_characters
Remove all control characters from the given string.
src/xmltv.py:26
↓ 1 callers
Function
_extract_entries
(payload: Any)
src/providers/youview.py:29
↓ 1 callers
Function
_extract_episode
(payload: Any)
src/providers/youview.py:93
↓ 1 callers
Function
_extract_instance_id
(entry: Dict[str, Any])
src/providers/youview.py:118
↓ 1 callers
Function
_extract_synopsis
(data: Dict[str, Any])
src/providers/youview.py:106
↓ 1 callers
Function
_fetch_episode_details
(instance_id: str, ctx: Context)
src/providers/youview.py:126
↓ 1 callers
Function
_intervals
(days: int, step_hours: int = 12)
src/providers/youview.py:21
↓ 1 callers
Function
_parse_duration_value
(value: Any)
src/providers/youview.py:67
↓ 1 callers
Function
_parse_timestamp
(value: Any)
src/providers/youview.py:39
↓ 1 callers
Function
fetch_programmes
Fetch programme data for a Freeview channel. Args: channel: The channel definition from ``channels.json``. ctx: Shared context ca
src/providers/freeview.py:18
↓ 1 callers
Function
fetch_programmes
Fetch programme data for a Freesat channel. Args: channel: The channel definition from ``channels.json``. ctx: Shared context car
src/providers/freesat.py:15
↓ 1 callers
Function
fetch_programmes
Fetch programme data for a Sky channel. Args: channel: The channel definition from ``channels.json``. ctx: Shared context carryin
src/providers/sky.py:15
↓ 1 callers
Function
fetch_programmes
Fetch programme data for a RadioTimes channel. Args: channel: The channel definition from ``channels.json``. ctx: Shared context
src/providers/radiotimes.py:16
↓ 1 callers
Function
json_to_markdown
Converts JSON data to a Markdown table.
jsontomd.py:8
↓ 1 callers
Function
json_to_markdown
Converts JSON data to a Markdown table.
wiki/jsontomd.py:8
↓ 1 callers
Function
load_channels
Load channel definitions from a JSON file. Args: path: Path to the JSON file containing channel definitions. Returns: A list
src/config.py:14
↓ 1 callers
Function
main
()
jsontomd.py:41
↓ 1 callers
Function
main
Main orchestration function.
main.py:34
↓ 1 callers
Function
main
()
wiki/jsontomd.py:41
↓ 1 callers
Function
make_session
Create and return a configured ``requests.Session``. The returned session is configured with a retry strategy that will automatically retry i
src/http.py:14
↓ 1 callers
Function
save_markdown
Saves the markdown content into the 'wiki' folder.
jsontomd.py:31
↓ 1 callers
Function
save_markdown
Saves the markdown content into the 'wiki' folder.
wiki/jsontomd.py:31
↓ 1 callers
Function
write_atomic
Write data to a file atomically. Writes to a temporary file and then renames it into place. On POSIX systems the rename is atomic, ensuring r
src/xmltv.py:171
Function
fetch_programmes
Fetch programme data for a YouView channel. Args: channel: The channel definition from ``channels.json``. ctx: Shared context car
src/providers/youview.py:144
Method
test_build_xmltv_sorting_and_structure
(self)
tests/test_xmltv.py:29
Method
test_clean_text_removes_tags_and_episode_info
(self)
tests/test_xmltv.py:16
Method
test_dedupe_preserves_last_occurrence
(self)
tests/test_dedupe.py:7
Function
test_freesat_fetch_programmes_builds_output
()
tests/test_providers_freesat.py:12
Function
test_freeview_fetch_programmes_builds_details
()
tests/test_providers_freeview.py:16
Method
test_parse_duration_invalid_raises
(self)
tests/test_xmltv.py:23
Method
test_parse_duration_valid
(self)
tests/test_xmltv.py:20
Function
test_radiotimes_fetch_programmes_includes_details
()
tests/test_providers_radiotimes.py:16
Method
test_remove_control_characters
(self)
tests/test_xmltv.py:13
Function
test_sky_fetch_programmes_parses_events
()
tests/test_providers_sky.py:14