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

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [a62db5a28b]:

To Artifact [2915a6cb3f]:


487
488
489
490
491
492
493
494
495
496
497
498
499






500
501
502
503


504
505
506

507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526

527
528
529
530
531
487
488
489
490
491
492
493






494
495
496
497
498
499




500
501
502
503

504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523

524
525
526
527
528
529







-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+


-
+



















-
+








# startup procedure
def main():

    # process a few command line flags (needs a rewrite)
    argv = sys.argv[1:]
    while len(argv) and argv[0] in ("-d", "-D"):
        opt = argv.pop(0)
        if opt == "-D":
            conf.debug = 1
    # process a few command line flags
    if conf.args.plugin:
        for p_id in conf.args.plugin:
            conf.plugins[p_id] = 0
    if conf.args.debug
        conf.debug = conf.args.debug
        elif opt == "-d":
            conf.plugins[argv.pop(0)] = 0
            sys.argv.pop(1)
        sys.argv.pop(1)
    if conf.args.exit:
        return

    # graphical
    if len(sys.argv) < 2 or "--gtk3" in sys.argv:
    if not len(conf.args.action[0]):

        # prepare for threading in Gtk+ callbacks
        gobject.threads_init()

        # prepare main window
        main = StreamTunerTwo()

        # first invocation
        if (conf.get("firstrun")):
            main.configwin.open(None)
            del conf.firstrun

        # run
        gtk.main()
        __print__(dbg.PROC, r" gtk_main_quit ")
        
    # invoke command-line interface
    else:
        import cli
        cli.StreamTunerCLI()
        cli.StreamTunerCLI(conf.args.action[0])

# run
if __name__ == "__main__":
    main()