Check-in [ead195d25c]
Overview
Comment: | Use .meta[title] instead of literal property. Channel list in config_dialog completed again with disabled plugins. New tooltop for comment doc section. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ead195d25c3b72805379ece3a545b0ad |
User & Date: | mario on 2015-03-29 03:08:15 |
Other Links: | manifest | tags |
Context
2015-03-29
| ||
03:09 | Moved all config[] lists into plugin meta data fields (JSOL style retained). Add channel homepages as plugin url: field. check-in: d58eeed475 user: mario tags: trunk | |
03:08 | Use .meta[title] instead of literal property. Channel list in config_dialog completed again with disabled plugins. New tooltop for comment doc section. check-in: ead195d25c user: mario tags: trunk | |
03:06 | More complete plugin_meta() regex patterns. Now defaults to inspect.get_comments() on previous stack frame, src= or fn= only accepted as fallback. Complete default meta fields, splits doc block out, autostrips hash prefixes and indentation. check-in: 70c2e437fd user: mario tags: trunk | |
Changes
Modified st2.py from [05a9ab14f0] to [d6067edad1].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + | #!/usr/bin/env python # # encoding: UTF-8 # api: python # type: application # title: streamtuner2 # description: Directory browser for internet radio / audio streams # depends: pygtk | gi, threading, requests, pyquery, lxml, deb:python-pyquery, deb:python-requests, deb:python-gtk2 # version: 2.1.4 |
︙ | |||
57 58 59 60 61 62 63 | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | - + | sys.path.insert(0, ".") # development module path # gtk modules from mygtk import pygtk, gtk, gobject, ui_file, mygtk, ver as GTK_VER, ComboBoxText, gui_startup # custom modules from config import conf # initializes itself, so all conf.vars are available right away |
︙ | |||
401 402 403 404 405 406 407 | 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | - + - - | mygtk.do(lambda:self.statusbar.push(sbar_cid, text)) pass # load plugins from /usr/share/streamtuner2/channels/ def load_plugin_channels(self): |
︙ | |||
544 545 546 547 548 549 550 | 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | - + | current = None # show search dialog def menu_search(self, w): self.search_dialog.show(); if not self.current or main.current_channel != "bookmarks": self.current = main.current_channel |
︙ | |||
604 605 606 607 608 609 610 | 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 | - + | entries = [] for i,cn in enumerate([main.channels[c] for c in self.targets]): if cn.has_search: # "search" in cn.update_streams.func_code.co_varnames: __print__(dbg.PROC, "has_search:", cn.module) try: add = cn.update_streams(cat=None, search=self.q) for row in add: |
︙ | |||
795 796 797 798 799 800 801 | 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 | + + + - - - + + + + + + + + - - - + - + + | def apply_theme(self): conf.theme = self.theme.get_active_text() main.load_theme() # iterate over channel and feature plugins def add_plugins(self): ls = {} for name in channels.module_list(): if name in main.channels: |
︙ |