Skip to content

Commit

Permalink
deb-di
Browse files Browse the repository at this point in the history
  • Loading branch information
Amined9 committed Sep 14, 2024
1 parent 0cb8b23 commit ba2ee3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions movies_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit ba2ee3f

Please sign in to comment.