Skip to content

Commit

Permalink
Fixed: SVT Nyheter & Categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Mar 19, 2024
1 parent 05249df commit 36f07b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion channels/channel.se/svt/chn_svt.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def add_live_items_and_genres(self, data):
LanguageHelper.get_localized_string(LanguageHelper.LatestNews): (
self.__get_api_url(
"CategoryPageQuery",
"00be06320342614f4b186e9c7710c29a7fc235a1936bde08a6ab0f427131bfaf",
"c51c2c12a390014f864a03a319e89c3e1332cf81cf39ef8f59cd01d1858ec989",
variables={"id": "nyheter", "includeFullOppetArkiv": True, "tab": "all"}),
False
),
Expand Down
4 changes: 2 additions & 2 deletions tests/channel_tests/test_chn_svt.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_genre_recent_news(self):
url = ("https://api.svt.se/contento/graphql?operationName=CategoryPageQuery&variables=%7B"
"%22id%22%3A%22nyheter%22%2C%22includeFullOppetArkiv%22%3Atrue%2C%22tab%22%3A%22all"
"%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22sha256Hash%22%3A%22"
"00be06320342614f4b186e9c7710c29a7fc235a1936bde08a6ab0f427131bfaf%22%2C"
"c51c2c12a390014f864a03a319e89c3e1332cf81cf39ef8f59cd01d1858ec989%22%2C"
"%22version%22%3A1%7D%7D&ua=svtplaywebb-render-low-prio-client")
self._test_folder_url(url, expected_results=4)

Expand All @@ -50,7 +50,7 @@ def test_new_on_svt(self):
self._test_folder_url(url, expected_results=4)

def test_latest_news(self):
url = "https://api.svt.se/contento/graphql?operationName=CategoryPageQuery&variables=%7B%22id%22%3A%20%22nyheter%22%2C%20%22includeFullOppetArkiv%22%3A%20true%2C%20%22tab%22%3A%20%22all%22%7D&extensions=%7B%22persistedQuery%22%3A%20%7B%22version%22%3A%201%2C%20%22sha256Hash%22%3A%20%2200be06320342614f4b186e9c7710c29a7fc235a1936bde08a6ab0f427131bfaf%22%7D%7D&ua=svtplaywebb-play-render-prod-client"
url = "https://api.svt.se/contento/graphql?operationName=CategoryPageQuery&variables=%7B%22id%22%3A%20%22nyheter%22%2C%20%22includeFullOppetArkiv%22%3A%20true%2C%20%22tab%22%3A%20%22all%22%7D&extensions=%7B%22persistedQuery%22%3A%20%7B%22version%22%3A%201%2C%20%22sha256Hash%22%3A%20%22c51c2c12a390014f864a03a319e89c3e1332cf81cf39ef8f59cd01d1858ec989%22%7D%7D&ua=svtplaywebb-play-render-prod-client"
self._test_folder_url(url, expected_results=4)

def test_most_viewed(self):
Expand Down

0 comments on commit 36f07b7

Please sign in to comment.