Check-in [39b9182c6e]
Overview
Comment: | Add version and -V flags. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
39b9182c6e6114cb6b0ef009b376d611 |
User & Date: | mario on 2017-02-13 16:47:58 |
Other Links: | manifest | tags |
Context
2017-02-13
| ||
16:48 | Simplify best_url() dict generation, typecasting, add more comments on channel webpage. check-in: c05cee4440 user: mario tags: trunk | |
16:47 | Add version and -V flags. check-in: 39b9182c6e user: mario tags: trunk | |
2017-02-12
| ||
20:57 | new plugin: streamlicensing check-in: 82b87725e3 user: mario tags: trunk | |
Changes
Modified cli.py from [de8c726472] to [bf2c97a84d].
︙ | |||
34 35 36 37 38 39 40 | 34 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 88 89 90 91 92 93 94 95 96 97 98 99 100 | - + + + + - - + + + + + + + + + + + + + + | channel_modules = ["shoutcast", "xiph", "icast", "jamendo", "radiobrowser"]# module_list() current_channel = "cli" plugins = {} # only populated sparsely by .stream() # start def __init__(self, actions): |
︙ | |||
138 139 140 141 142 143 144 | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | - - + + | return r # load module def channel(self, module): plugin = __import__("channels."+module, None, None, [""]) plugin_class = plugin.__dict__[module] |
︙ | |||
161 162 163 164 165 166 167 168 169 170 171 172 173 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | + | # trap for some main window calls class empty_parent (object): channel = {} hooks = { "init": [], "config_save": [], "config_load": [] } null = lambda *a: None status = lambda *a: None thread = lambda *a: None |
Modified st2.py from [0e842350c3] to [13a6df97da].
︙ | |||
514 515 516 517 518 519 520 | 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 | - + | # startup procedure def main(): # graphical |
︙ | |||
536 537 538 539 540 541 542 543 544 545 546 547 548 | 536 537 538 539 540 541 542 543 544 545 546 547 548 549 | + | gtk.main() [callback() for callback in main.hooks["quit"]] log.PROC(r"[31m gtk_main_quit [0m") # invoke command-line interface else: import cli #print "CLI.py:" cli.StreamTunerCLI(conf.args.action) # run if __name__ == "__main__": main() |