Browse Source

minor fixes

master
Kevin Keijzer 2 years ago
parent
commit
8db8892c0b
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      striemtrien.py

+ 4
- 3
striemtrien.py View File

@@ -25,13 +25,14 @@ class StriemTrien(object):
def start_mpv(self):
mpv_command = [
'mpv',
'--force-window',
'--msg-level=all=error',
'--title=Striemtrien',
self.page_url,
]
if self.video == False:
mpv_command.insert(1, '--no-video')
mpv_command.insert(2, '--force-window')
mpv_command.insert(3, '--window-scale=0.5')
self.process = subprocess.Popen(mpv_command, start_new_session=True)
def check(self):
@@ -59,7 +60,7 @@ class StriemTrienWindow(Gtk.Window):
self.add(vbox)

self.entry = Gtk.Entry()
self.entry.set_text("https://www.youtube.com/watch?v=Y8ygKnBtKAk")
self.entry.set_text("")
self.entry.connect("activate", self.on_button_clicked)
vbox.pack_start(self.entry, True, True, 0)
@@ -69,7 +70,7 @@ class StriemTrienWindow(Gtk.Window):
hbox = Gtk.Box(spacing=0)
vbox.pack_start(hbox, True, True, 0)
audio_button = Gtk.Button(label="Play audio")
audio_button = Gtk.Button(label="Play audio only")
hbox.pack_start(audio_button, False, False, 1)
audio_button.connect("clicked", self.on_button_clicked, False)

Loading…
Cancel
Save