Check-in [2ee52fe7e8]
Comment: | Switch to XDG_CACHE_HOME/.cache (because that's what the cache files are, not really user data). More consistently use new storage path throughout core and plugins (favicon+cachereset). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2ee52fe7e8f181b1cb38048d52eeadf0 |
User & Date: | mario on 2019-02-06 21:16:44 |
Other Links: | manifest | tags |
2019-03-24
| ||
10:25 | Crude fix for new station lookup. Regex still has horrible backtracking. (Should use resolve_urn rather than rnjs playlist workaround.) check-in: 6bfe67e367 user: mario tags: trunk | |
2019-02-06
| ||
21:16 | Switch to XDG_CACHE_HOME/.cache (because that's what the cache files are, not really user data). More consistently use new storage path throughout core and plugins (favicon+cachereset). check-in: 2ee52fe7e8 user: mario tags: trunk | |
2019-02-04
| ||
09:30 | Transitional .cache/XDG_DATA_HOME support (by symlinking from .config dir) check-in: 77d42c82df user: mario tags: trunk | |
Modified channels/favicon.py from [edc53741f5] to [81d5a0ff38].
78 79 80 81 82 83 84 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - + | meta = plugin_meta() # Register with main def __init__(self, parent): # Prepare favicon cache directory |
Modified config.py from [08e51d1986] to [833278b4e6].
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - + | # { arg: --gtk3, type: boolean, name: gtk3, description: Start with Gtk3 interface. } # { arg: --nt, type: boolean, name: nothreads, description: Disable threading/gtk_idle UI. } # { arg: -D, type: boolean, name: debug, description: Enable debug messages on console } # { arg: action, type: str *, name: action[], description: CLI interface commands. } # { arg: -x, type: boolean, name: exit, hidden: 1 } # { arg: -V, type: boolean, name: version, description: Print version. } # { arg: -w, type: boolean, name: pydoc, hiden: 1 } |
202 203 204 205 206 207 208 | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | - + - + - - - - - + + + + + + + + + + + + + + - - + + + + - + - - + | return players[typ][-1] # http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html def xdg(self, path="/streamtuner2"): home = os.environ.get("HOME", self.tmp) config = os.environ.get("XDG_CONFIG_HOME", os.environ.get("APPDATA", home+"/.config")) |
263 264 265 266 267 268 269 | 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | + + + - + | except TypeError as e: f.write(data) # Python3 sometimes wants to write strings rather than bytes f.close() # retrieve data from config file def load(self, name): name = name + ".json" if (name.find("/") > 0): file = self.datadir + "/" + name else: |
Modified contrib/cachereset.py from [3bc4b461a7] to [33337efeee].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | # encoding: UTF-8 # api: streamtuner2 # title: Cache Reset # description: Allows to empty cached stations and favicons |
49 50 51 52 53 54 55 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | - - + + - + | self.l1 = self.t1.get_children()[0] self.l2 = self.t2.get_children()[0] self.l3 = self.t3.get_children()[0] # Update size labels def dialog_update(self, *w): |
Modified help/favicon.page from [5b234a7e90] to [ecdea1f5bb].
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - + | <p>Some channels (Jamendo or Radionomy) provide small album previews or banners even. Whereas normal favicons are just 16x16 pixel images.</p> <note><p>Downloaded image files are meanwhile all sanitized (internally converted to ensure they're really image files). Albeit that's not strictly necessary for modern Gtk versions. (But better safe than sorry). |
Modified help/pluginmanager2.page from [09f72a2f34] to [00cea8f39d].
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + + + | </list> </item> </list> </section> <section id="userplugins"> <title>User plugins</title> |
Modified help/technical.page from [40cbc0e2c0] to [a446a003df].
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + + + + + + - - + + - + - + + | <title>Configuration files</title> <terms> <item> <title><file>/home/$USER/.config/streamtuner2/</file></title> <p>Corresponds to the XDG_CONFIG_HOME setting. All ST2 configuration settings are contained within here and are in JSON format.</p> </item> <item> <title><file>/home/$USER/.cache/streamtuner2/</file></title> <p>Set from XDG_CACHE_HOME environment variable. Contains the channel cache/ and icons/. Symlinks in <file>.config</file> remain for convenience.</p> </item> <item> <title><file>~/.config/streamtuner2/settings.json</file></title> <p>General runtime options, plugin settings, and configured audio players.</p> </item> <item> <title><file>~/.config/streamtuner2/window.json</file></title> <p>Saved window sizes, list widths.</p> </item> <item> <title><file>~/.config/streamtuner2/state.json</file></title> <p>Last category in each channel tab.</p> </item> <item> <title><file>~/.config/streamtuner2/bookmarks.json</file></title> <p>Is a separate cache file for your bookmarked/favourite radio stations.</p> </item> <item> |