예제 #1
0
    def run(self):
        if not (self.config['username'] or self.config['password']):
            print('Error: No user/pass for Locast')
            return

        # get Locast bearer token
        self.get_token()

        # select location, get latitude & longitude
        latitude, longitude = self.select_location()

        # get DMA using latitude & longitude
        dma = self.get_dma(latitude, longitude)

        # get list of stations using DMA
        stations = self.get_station_list(dma)

        # select station, get station ID
        station_id = self.select_channel(stations)

        # get stream link using latitude, longitude, and station ID
        stream_link = self.get_stream(latitude, longitude, station_id)

        # start stream via VLC
        run_command(f'/usr/bin/vlc -f {stream_link}')
예제 #2
0
 def run(self):
     run_command('/usr/bin/spotify')
예제 #3
0
 def run(self):
     run_command('/usr/bin/firefox -new-window https://www.google.com/')
예제 #4
0
파일: snes.py 프로젝트: vesche/chillchamber
 def run(self):
     run_command('/usr/bin/snes9x-gtk')
예제 #5
0
 def run(self):
     run_command('/usr/bin/streamlink-twitch-gui')
예제 #6
0
 def run(self):
     run_command(
         '/usr/bin/firefox -new-window https://www.amazon.com/Amazon-Video/b/?ie=UTF8&node=2858778011'
     )
예제 #7
0
 def run(self):
     run_command('/usr/bin/urxvt')
예제 #8
0
 def run(self):
     run_command('/usr/bin/firefox -new-window https://www.youtube.com')
예제 #9
0
 def run(self):
     run_command(f'/usr/bin/firefox -new-window')
예제 #10
0
파일: emby.py 프로젝트: vesche/chillchamber
 def run(self):
     url = self.config['url']
     run_command(f'/usr/bin/firefox -new-window {url}')
예제 #11
0
 def run(self):
     run_command('/usr/bin/visualboyadvance-m')