summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomey <homey@dreambox-plugins.de>2011-02-16 03:01:23 (GMT)
committerHomey <homey@dreambox-plugins.de>2011-02-16 03:01:23 (GMT)
commit02b31e7a47efdbb998211169457656bc64c1eca8 (patch)
tree7516f553b890af3a028ba50cff7a4c6afc5085a0
parent87fd2f1120962f553ecb1a88bbee46ed821df975 (diff)
[TVCharts] Fix possible bluescreen introduced with last commit.
.toString() is not available when no service is running.
-rw-r--r--tvcharts/src/plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tvcharts/src/plugin.py b/tvcharts/src/plugin.py
index a58c7be..1fc31f0 100644
--- a/tvcharts/src/plugin.py
+++ b/tvcharts/src/plugin.py
@@ -497,8 +497,9 @@ class DBUpdateStatus(Screen):
return
# Get Channelname
- ref = eServiceReference(self.session.nav.getCurrentlyPlayingServiceReference().toString())
- if ref is not None:
+ sref = self.session.nav.getCurrentlyPlayingServiceReference()
+ if sref is not None:
+ ref = eServiceReference(sref.toString())
ref.setName("")
serviceHandler = eServiceCenter.getInstance()
info = serviceHandler.info(ref)