Skip to content

Commit

Permalink
[Converter/ServiceName] instantiate SessionObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jan 4, 2025
1 parent feb43b3 commit 39a89a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/Converter/ServiceName.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def getText(self):
srpart = "//%s:%s/" % (config.misc.softcam_streamrelay_url.getHTML(), config.misc.softcam_streamrelay_port.value)
path = service.toString().split(":")[10].replace("%3a", ":")
if "://" in path and "http" not in path:
path = SessionObject.session.nav.getCurrentServiceRef().toString().split(":")[10].replace("%3a", ":")
path = SessionObject().session.nav.getCurrentServiceRef().toString().split(":")[10].replace("%3a", ":")
return "" if path.startswith("//") and path.find(srpart) > -1 and "://" not in path else path
elif self.type == self.FORMAT_STRING:
name = self.getName(service, info)
Expand Down

0 comments on commit 39a89a5

Please sign in to comment.