talkytrend.handler.livetv.LivetvHandler#
- class talkytrend.handler.livetv.LivetvHandler(**kwargs)[source]#
Bases:
ClientClass for handling live TV.
Initialize the object with the given keyword arguments.
- Parameters:
kwargs – keyword arguments
- Returns:
None
Methods
fetch()Asynchronously retrieves the URL for TV feed.
get_news()Asynchronously retrieves the latest news from various sources based on the configured settings.
monitor()Asynchronously monitors the system and retrieves various data sources based on the configured settings.
- async fetch()[source]#
Asynchronously retrieves the URL for TV feed.
- Returns:
An URL representing the live TV url if available, otherwise None.
- Return type:
str
- async monitor()[source]#
Asynchronously monitors the system and retrieves various data sources based on the configured settings. Cover Events, Feed, and Signal.
- Returns:
- A string containing the concatenated results
of the retrieved data sources.
- Return type:
str
- async get_news()#
Asynchronously retrieves the latest news from various sources based on the configured settings.
- Returns:
- A string containing the concatenated
results of the retrieved news sources.
- Return type:
str