Skip to content

Commit

Permalink
possible bugfix for restore live tv bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDavici committed Mar 22, 2015
1 parent 911617b commit e335ed7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/DP_MainMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from DPH_WOL import wake_on_lan
from DPH_ScreenHelper import DPH_ScreenHelper, DPH_Screen

from __common__ import printl2 as printl, testPlexConnectivity, testInetConnectivity
from __common__ import printl2 as printl, testPlexConnectivity, testInetConnectivity, saveLiveTv
from __plugin__ import Plugin
from __init__ import _ # _ is translation

Expand Down Expand Up @@ -78,6 +78,9 @@ def __init__(self, session, allowOverride=True):
printl("selectionOverride:" +str(self.selectionOverride), self, "D")
self.session = session

# save liveTvData
saveLiveTv(self.session.nav.getCurrentlyPlayingServiceReference())

self.initScreen("main_menu")
self.initMenu()

Expand Down
7 changes: 1 addition & 6 deletions src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from __init__ import prepareEnvironment, startEnvironment, _ # _ is translation
from __common__ import getUUID, saveLiveTv, getLiveTv, getOeVersion, getBoxResolution

from enigma import getDesktop

#===============================================================================
# GLOBALS
#===============================================================================
Expand All @@ -44,10 +42,7 @@ def main(session, **kwargs):
def DPS_MainMenu(*args, **kwargs):
import DP_MainMenu

# save liveTvData
saveLiveTv(global_session.nav.getCurrentlyPlayingServiceReference())

# this loads the skin
# this loads the skin
startEnvironment()

return DP_MainMenu.DPS_MainMenu(*args, **kwargs)
Expand Down

0 comments on commit e335ed7

Please sign in to comment.