46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
+
|
def __init__(self, parent):
# keep reference to main window
self.bm = parent.channels["bookmarks"]
# create category
self.bm.add_category("history");
self.bm.reload_if_current(self.module)
# hook up to .play event
parent.hooks["play"].append(self.queue)
# add to favourites/history stream list
def queue(self, row):
|
71
72
73
74
75
76
77
78
79
80
|
72
73
74
75
76
77
78
79
80
81
82
83
|
+
-
-
+
+
+
|
# limit number of entries
max = int(conf.history)
while max > 0 and len(hist) > max:
hist.pop()
# update store
self.bm.save()
self.bm.reload_if_current(self.module)
#if self.bm.current == "history":
# self.bm.load("history")
|