85
86
87
88
89
90
91
92
93
94 | 85
86
87
88
89
90
91
92
93
94
95
96
97
98 |
+
+
+
+
| self.migrate()
# store defaults in file
else:
self.save("settings")
self.firstrun = 1
# temporary files
if not os.path.exists(self.tmp):
os.mkdir(self.tmp)
# add argv
self.args = self.init_args(argparse.ArgumentParser())
self.apply_args(self.args)
|
113
114
115
116
117
118
119
120
121
122
123 | 117
118
119
120
121
122
123
124
125
126
127 |
-
+
| "bookmarks": 1,
"search": 1,
"streamedit": 1,
"configwin": 1,
}
self.tmp = os.environ.get("TEMP", "/tmp")
self.tmp = os.environ.get("TEMP", "/tmp") + "/streamtuner2"
self.max_streams = "500"
self.show_bookmarks = 1
self.show_favicons = 1
self.load_favicon = 1
self.heuristic_bookmark_update = 0 |
238
239
240
241
242
243
244
245
246
247 | 242
243
244
245
246
247
248
249
250
251
252
253 |
+
+
| def migrate(self):
# 2.1.1
if "audio/mp3" in self.play:
self.play["audio/mpeg"] = self.play["audio/mp3"]
del self.play["audio/mp3"]
if self.tmp == "/tmp":
self.tmp = "/tmp/streamtuner2"
# check for existing filename in directory list
def find_in_dirs(self, dirs, file):
for d in dirs: |