Skip to content

Commit

Permalink
catchup api alternative url, hungrary tranlsation update, removed bra…
Browse files Browse the repository at this point in the history
…ckets from filenames
  • Loading branch information
kiddac committed Jan 10, 2025
1 parent cfa9342 commit 7a774a4
Show file tree
Hide file tree
Showing 9 changed files with 848 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,15 @@ def displayShortEpg(self):

def play(self):
if self["epg_short_list"].getCurrent():
playurl = "%s/streaming/timeshift.php?username=%s&password=%s&stream=%s&start=%s&duration=%s" % (self.domain, self.username, self.password, self.epg_short_list[self.current_selection][7], self.epg_short_list[self.current_selection][4], self.epg_short_list[self.current_selection][5])
playurl = "{}/timeshift/{}/{}/{}/{}/{}.ts".format(
self.domain,
self.username,
self.password,
self.epg_short_list[self.current_selection][5],
self.epg_short_list[self.current_selection][4],
self.epg_short_list[self.current_selection][7]
)

stream_type = 4097
sref = eServiceReference(stream_type, 0, playurl)
sref.setName(self.epg_short_list[self.current_selection][2])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def safeName(name):
name = str(name)

# Replace unsafe characters with underscores
name = re.sub(r"[\<\>\:\"\/\\\|\?\*]", "_", name)
name = re.sub(r'[\'\<\>\:\"\/\\\|\?\*\(\)\[\]]', "_", name)
name = re.sub(r" ", "_", name)
name = re.sub(r"_+", "_", name)
name = name.strip("_")
Expand Down
Binary file not shown.
Loading

0 comments on commit 7a774a4

Please sign in to comment.