diff --git a/usr/lib/hypnotix/xtream.py b/usr/lib/hypnotix/xtream.py index 05775ca..f1311c5 100644 --- a/usr/lib/hypnotix/xtream.py +++ b/usr/lib/hypnotix/xtream.py @@ -39,6 +39,7 @@ class Channel: group_title = "" title = "" url = "" + info = "" # XTream stream_type = "" @@ -75,6 +76,14 @@ def __init__(self, xtream: object, group_title, stream_info): self.group_title = group_title self.title = stream_name + # Required by the favorites system + self.info = ( + f'#EXTINF:-1 tvg-name="{self.name}" ' + f'tvg-logo="{self.logo}" ' + f'group-title="{self.group_title}",' + f'{self.name}' + ) + # Check if category_id key is available if "category_id" in stream_info.keys(): self.group_id = int(stream_info["category_id"])