Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Check-in [b9a667bbe7]

Overview
Comment:Disable window tilte updating per default again.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b9a667bbe7d0a7d209f927030ed56fea352ab056
User & Date: mario on 2015-05-26 00:43:24
Other Links: manifest | tags
Context
2015-05-26
00:43
Allow api: to be "python" or "streamtuner2" check-in: 294a2672d2 user: mario tags: trunk
00:43
Disable window tilte updating per default again. check-in: b9a667bbe7 user: mario tags: trunk
00:42
Fix row[`url`] reference. check-in: 388ef679b7 user: mario tags: trunk
Changes

Modified config.py from [6f5292e90f] to [2962c58373].

   139    139           self.load_favicon = 1
   140    140           self.heuristic_bookmark_update = 0
   141    141           self.retain_deleted = 0
   142    142           self.auto_save_appstate = 1
   143    143           self.auto_save_stations = 0
   144    144           self.reuse_m3u = 1
   145    145           self.playlist_asis = 0
   146         -        self.window_title = 1
          146  +        self.window_title = 0
   147    147           self.google_homepage = 0
   148    148           self.windows = platform.system()=="Windows"
   149    149           self.pyquery = 1
   150    150           self.debug = 0
   151    151   
   152    152       # update old setting names
   153    153       def migrate(self):

Modified st2.py from [f494cf4f99] to [9a3f8e2477].

     1      1   #!/usr/bin/env python
     2      2   # encoding: UTF-8
     3      3   # api: python
     4      4   # type: application
     5      5   # title: streamtuner2
     6      6   # description: Directory browser for internet radio, audio and video streams
     7         -# version: 2.1.9-beta1
            7  +# version: 2.1.9
     8      8   # state: beta
     9      9   # author: Mario Salzer <mario@include-once.org>
    10     10   # license: Public Domain
    11     11   # url: http://freshcode.club/projects/streamtuner2
    12     12   # config:  
    13     13   #   { type: env, name: HTTP_PROXY, description: proxy for HTTP access }
    14     14   #   { type: env, name: XDG_CONFIG_HOME, description: relocates user .config subdirectory }
................................................................................
   188    188               "streamedit_open": self.streamedit.open,
   189    189               "streamedit_save": self.streamedit.save,
   190    190               "streamedit_new": self.streamedit.new,
   191    191               "streamedit_cancel": self.streamedit.cancel,
   192    192           })
   193    193           
   194    194           # actually display main window
   195         -        self.update_title()
          195  +        if conf.window_title:
          196  +            self.update_title()
   196    197           self.win_streamtuner2.show_all()
   197    198           gui_startup(100.0)
   198    199   
   199    200   
   200    201       #-- Shortcut for glade.get_widget()
   201    202       # Allows access to widgets as direct attributes instead of using .get_widget()
   202    203       # Also looks in self.channels[] for the named channel plugins
................................................................................
   241    242       
   242    243           
   243    244       # Notebook tab has been clicked (receives numeric page_num), but *NOT* yet changed (visually).
   244    245       def channel_switch(self, notebook, page, page_num=0, *args):
   245    246           self.current_channel = notebook.get_menu_label_text(notebook.get_nth_page(page_num))
   246    247           log.UI("main.channel_switch() :=", self.current_channel)
   247    248           # update window title, call plugin (e.g. channel link in toolbar)
   248         -        uikit.do(self.update_title)
          249  +        if conf.window_title:
          250  +            uikit.do(self.update_title)
   249    251           # if first selected, load current category
   250    252           # (run in thread, to make it look speedy on first startup)
   251    253           self.thread(self.channel().first_show)
   252    254   
   253    255       # Invoked from the menu instead, uses module name instead of numeric tab id
   254    256       def channel_switch_by_name(self, name):
   255    257           self.notebook_channels.set_current_page(self.channel_names.index(name))
   256    258   
   257    259       # Mirror selected channel tab into main window title
   258    260       def update_title(self, *x, **y):
   259    261           meta = self.channel().meta
   260         -        if conf.window_title:
   261         -            self.win_streamtuner2.set_title("Streamtuner2 - %s" % meta.get("title"))
          262  +        self.win_streamtuner2.set_title("Streamtuner2 - %s" % meta.get("title"))
   262    263           [cb(meta) for cb in self.hooks["switch"]]
   263    264   
   264    265   
   265    266       # Channel: row{} dict for current station
   266    267       def row(self):
   267    268           return self.channel().row()
   268    269