@@ -1,11 +1,11 @@ # # api: streamtuner2 # title: Recording timer # description: Schedules play/record events for bookmarked radio stations. # type: feature -# category: ui +# category: hook # depends: kronos # version: 0.5 # config: - # priority: optional # support: unsupported @@ -21,12 +21,12 @@ # from config import * from channels import * -import kronos # Doesn't work with Python3 -from mygtk import mygtk +import bundle.kronos as kronos # Doesn't work with Python3 +from uikit import uikit from action import action import copy import re @@ -57,11 +57,11 @@ # keep reference to main window self.parent = parent self.bookmarks = parent.bookmarks # add menu - mygtk.add_menu(self.parent.extensions, "Add timer for station", self.edit_timer) + uikit.add_menu(self.parent.extensions, "Add timer for station", self.edit_timer) # target channel if not self.bookmarks.streams.get("timer"): self.bookmarks.streams["timer"] = [{"title":"--- timer events ---"}] self.bookmarks.add_category("timer")