diff --git a/movies_list.py b/movies_list.py index c9d6ca6..1e7ff59 100644 --- a/movies_list.py +++ b/movies_list.py @@ -142,7 +142,6 @@ def check_if_favorite(self, movie_name): return movie_name in self.config["favorites"] def display_movies(self, movies): - print("d") self.movies_list.clear() for movie in movies: item = QListWidgetItem(movie["name"]) @@ -426,9 +425,9 @@ def do_handshake(self, url, mac, serverload="/server/load.php", load=True): def load_stb_movies(self, url, options): url = URLObject(url) url = f"{url.scheme}://{url.netloc}" + page = 0 try: - fetchurl = f"{url}/server/load.php?type=vod&action=get_ordered_list&id=*" - print(fetchurl) + fetchurl = f"{url}/server/load.php?type=vod&action=get_ordered_list&genre=0&category=*&p={page}&sortby=added" response = requests.get(fetchurl, headers=options["headers"]) result = response.json() movies = result["js"]["data"]