From 981488abf07e76ad25fc57ce5c557c14fc084919 Mon Sep 17 00:00:00 2001 From: ozankaraali Date: Sun, 29 Sep 2024 16:55:49 +0200 Subject: [PATCH] This should fix itv and movies --- channel_list.py | 4 +++- config_manager.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/channel_list.py b/channel_list.py index 40c5684..13f58b2 100644 --- a/channel_list.py +++ b/channel_list.py @@ -337,7 +337,7 @@ def display_categories(self, categories): self.content_list.addItem(item) self.back_button.setVisible(False) - def display_content(self, items, content_type="category"): + def display_content(self, items, content_type="content"): self.content_list.clear() for item_data in items: item_name = item_data.get("name") or item_data.get("title") @@ -576,6 +576,8 @@ def item_selected(self, item): self.navigation_stack.append(("root", self.current_category)) self.current_category = data["data"] self.load_content_in_category(data["data"]) + elif data["type"] == "content": + self.play_item(data["data"]) elif data["type"] == "series": if self.content_type == "series": # For series, load seasons diff --git a/config_manager.py b/config_manager.py index 06055b0..712528e 100644 --- a/config_manager.py +++ b/config_manager.py @@ -6,7 +6,7 @@ class ConfigManager: - CURRENT_VERSION = "1.5.1" # Set your current version here + CURRENT_VERSION = "1.5.2" # Set your current version here def __init__(self): self.config = {}