@@ -413,7 +413,7 @@ def add_item(language_id: int, url: str, content_type: str,
413413 description = "Profile van de npostart.nl website." )
414414
415415 add_item (LanguageHelper .Trending ,
416- "https://npo.nl/start/api/domain/recommendation-collection?partyId=1&collectionId=trending-anonymous-v0" ,
416+ "https://npo.nl/start/api/domain/recommendation-collection?partyId=1&collectionId=trending-anonymous-v0&layoutType=RECOMMENDATION " ,
417417 content_type = contenttype .TVSHOWS , parser = "collection-with-series" )
418418
419419 add_item (LanguageHelper .LatestNews ,
@@ -429,7 +429,7 @@ def add_item(language_id: int, url: str, content_type: str,
429429 # content_type=contenttype.TVSHOWS)
430430
431431 add_item (LanguageHelper .TvShows ,
432- "https://npo.nl/start/api/domain/page-layout?layoutId=programmas" ,
432+ "https://npo.nl/start/api/domain/page-layout?layoutId=programmas&layoutType=PAGE " ,
433433 content_type = contenttype .TVSHOWS )
434434
435435 live_radio = add_item (
@@ -535,6 +535,7 @@ def switch_profile(self, data: Union[str, JsonHelper]) -> Tuple[Union[str, JsonH
535535 f"partyId=1&"
536536 f"profileGuid={ profile_id } &"
537537 # f"subscriptionType=free"
538+ f"layoutType=RECOMMENDATION"
538539 )
539540
540541 data = UriHandler .open (profile_content_url )
@@ -560,6 +561,7 @@ def create_profile_content_item(self, result_set: Dict[str, str]) -> Union[Media
560561 # f"partyId=1%3Alp08hirt%3A2c8e90d7048a467babf108e0146ad52d&"
561562 f"profileGuid={ profile_id } &"
562563 # f"subscriptionType=free"
564+ f"layoutType=RECOMMENDATION"
563565 )
564566 title_key = folder_key .rsplit ("-" , 2 )[0 ]
565567 title_id = self .__collection_names .get (title_key , None )
@@ -651,7 +653,7 @@ def create_api_page_layout(self, result_set: dict) -> Optional[MediaItem]:
651653 else :
652654 guid = result_set ["collectionId" ]
653655 page_type = result_set ["type" ]
654- url = f"https://npo.nl/start/api/domain/page-collection?type={ page_type .lower ()} &collectionId={ guid } &partyId=1"
656+ url = f"https://npo.nl/start/api/domain/page-collection?type={ page_type .lower ()} &collectionId={ guid } &partyId=1&layoutType=PAGE "
655657
656658 info = UriHandler .open (url )
657659 info = JsonHelper (info )
0 commit comments