Skip to content

Commit

Permalink
add-movies-window
Browse files Browse the repository at this point in the history
  • Loading branch information
Amined9 committed Sep 14, 2024
1 parent 917c33e commit 0cb8b23
Show file tree
Hide file tree
Showing 4 changed files with 501 additions and 2 deletions.
4 changes: 2 additions & 2 deletions channel_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def display_channels(self, channels):
item.setBackground(
QColor(0, 0, 255, 20)
) # Optional: change color for favorite channels

def filter_channels(self, text=""):
show_favorites = self.favorites_only_checkbox.isChecked()
search_text = text.lower() if isinstance(text, str) else ""
Expand Down Expand Up @@ -451,7 +451,7 @@ def create_link(self, cmd):
except Exception as e:
print(f"Error creating link: {e}")
return None

@staticmethod
def random_token(self):
return "".join(random.choices(string.ascii_letters + string.digits, k=32))
Expand Down
1 change: 1 addition & 0 deletions config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def default_config():
],
"window_positions": {
"channel_list": {"x": 1250, "y": 100, "width": 400, "height": 800},
"movie_list": {"x": 50, "y": 100, "width": 300, "height": 700},
"video_player": {"x": 50, "y": 100, "width": 1200, "height": 800},
},
"favorites": [],
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from video_player import VideoPlayer
from channel_list import ChannelList
from movies_list import MoviesList
from config_manager import ConfigManager
from update_checker import check_for_updates
from sleep_manager import prevent_sleep, allow_sleep
Expand All @@ -29,9 +30,12 @@
try:
player = VideoPlayer(config_manager)
channel_list = ChannelList(app, player, config_manager)
movies_list = MoviesList(app, player, config_manager)
qdarktheme.setup_theme("auto")
player.show()
channel_list.show()
movies_list.show()

check_for_updates()
sys.exit(app.exec())
finally:
Expand Down
Loading

0 comments on commit 0cb8b23

Please sign in to comment.