예제 #1
0
    elif sel == "3":
        URL = "http://www.twitch.tv/missmiarose"
        livestreamer()
        break
    elif sel == "4":
        URL = "http://www.twitch.tv/gemieee"
        livestreamer()
        break
    elif sel == "5":
        URL = "http://www.twitch.tv/djclichedarkness"
        livestreamer()
        break
    elif sel == "6":
        URL = "http://www.twitch.tv/rhyaree"
        livestreamer()
        break
    elif sel == "0":
        OURL = Tk().clipboard_get()
        if "twitch.tv/" in OURL:
            SURL = OURL.rsplit('/', 1)
            URL = "http://www.twitch.tv/" + SURL[1]
            livestreamer()
        else:
            print ("Invalid clipboard contents.")
        break
    elif sel.lower() == "q":
        exit()
    elif sel != "":
        print ("\nInvalid option please try again.")
time.sleep(1)