Skip to content

Commit

Permalink
Fixed: UR Play regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Oct 17, 2024
1 parent 12bd8f7 commit 0ad762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/channel.se/urplay/chn_urplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def process_folder_list(self, parent_item: Optional[MediaItem] = None) -> List[M
UriHandler.header(old_url)
if UriHandler.instance().status.code >= 400:
# Replace the build version!
parts = Regexer.do_regex(r"^(.+/_next/data/)[^/]+(/.+\.json)$", old_url)[0]
parts = Regexer.do_regex(r"^(.+/_next/data/)[^/]+(/.+\.json.*)$", old_url)[0]
new_url = f"{parts[0]}{self.build_version}{parts[1]}"
parent_item.url = new_url

Expand Down

0 comments on commit 0ad762e

Please sign in to comment.