Compare commits

..

3 commits

Author SHA1 Message Date
j
e221626191 sync group 2024-09-10 12:42:16 +01:00
j
9021131e8d newline 2024-08-29 17:36:30 +02:00
j
44bd62897c avoid double 2024-08-29 17:36:18 +02:00
3 changed files with 10 additions and 3 deletions

View file

@ -28,7 +28,8 @@ CONFIG = {
"sub_border_color": "0.0/0.0/0.0/0.75",
"sub_margin": 2 * 36 + 6,
"sub_spacing": 0,
"vf": None
"vf": None,
"sync_group": None,
}
@ -277,6 +278,8 @@ class Sync(Thread):
"%0.4f %s"
% (self.mpv.time_pos, self.mpv.playlist_current_pos)
).encode()
if CONFIG.get("sync_group"):
msg = (b"%s " % CONFIG["sync_group"]) + msg
except:
return
try:
@ -307,6 +310,11 @@ class Sync(Thread):
except OSError:
logger.error("socket closed")
else:
if CONFIG.get("sync_group"):
if data[0] != str(CONFIG["sync_group"]):
return self.read_position_main()
else:
data = data[1:]
self._last_ping = data[0]
if data[0] == "pause":
self.is_paused = True

View file

@ -552,7 +552,7 @@ def render_all(options):
shutil.move(fragment_prefix / "front-5.1.mp4", fragment_prefix / "front.mp4")
for fn in (
"audio-5.1.mp4",
"audio-center.wav", "audio-rear.wav", "audio-center.wav",
"audio-center.wav", "audio-rear.wav",
"audio-front.wav", "audio-back.wav", "back-audio.mp4",
"fl.wav", "fr.wav", "fc.wav", "lfe.wav", "bl.wav", "br.wav",
):

View file

@ -554,7 +554,6 @@ class KDEnliveProject:
] + value)
]
def properties(self, *props):
return [
self.get_element("property", attrib={"name": name}, text=str(value) if value is not None else value)