Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed py3 import compatibility #5

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vps/src_py/Modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def new_TimerEntry_createConfig(self):
default_value = {False: "yes_safe", True: "yes"}[self.timer.vpsplugin_overwrite]

elif config.plugins.vps.vps_default.value != "no" and self.timer.eit is not None and self.timer.name != "" and self.timer not in self.session.nav.RecordTimer.timer_list and self.timer not in self.session.nav.RecordTimer.processed_timers:
from Vps_check import Check_PDC
from .Vps_check import Check_PDC
service = self.timerentry_service_ref.ref
if service and service.flags & eServiceReference.isGroup:
service = getBestPlayableServiceReference(service, eServiceReference())
Expand Down Expand Up @@ -161,7 +161,7 @@ def new_TimerEntry_createSetup(self, widget):
self.list.append(self.timerVps_enabled_Entry)

if self.timerentry_vpsplugin_enabled.value != "no":
from Vps_check import Check_PDC, VPS_check_PDC_Screen
from .Vps_check import Check_PDC, VPS_check_PDC_Screen
service = self.timerentry_service_ref.ref
if service and service.flags & eServiceReference.isGroup:
service = getBestPlayableServiceReference(service, eServiceReference())
Expand Down Expand Up @@ -249,7 +249,7 @@ def new_InfoBarInstantRecord_recordQuestionCallback(self, answer):
if answer is not None and answer[1] == "event" and config.plugins.vps.instanttimer.value != "no" and entry is not None and entry >= 0:
# If we aren't checking PDC, just put the values in directly
if not config.plugins.vps.do_PDC_check.getValue():
from Vps import vps_timers
from .Vps import vps_timers
if config.plugins.vps.instanttimer.value == "yes":
self.recording[entry].vpsplugin_enabled = True
self.recording[entry].vpsplugin_overwrite = True
Expand All @@ -259,7 +259,7 @@ def new_InfoBarInstantRecord_recordQuestionCallback(self, answer):
self.recording[entry].vpsplugin_overwrite = False
vps_timers.checksoon()
else:
from Vps_check import VPS_check_on_instanttimer
from .Vps_check import VPS_check_on_instanttimer
rec_ref = self.recording[entry].service_ref.ref
if rec_ref and rec_ref.flags & eServiceReference.isGroup:
rec_ref = getBestPlayableServiceReference(rec_ref, eServiceReference())
Expand Down
Loading