From 7ea885da0834e3a12af4d3b17ac4431e5b9cabc6 Mon Sep 17 00:00:00 2001 From: shagi Date: Tue, 22 Sep 2020 19:11:53 +0200 Subject: [PATCH] =?UTF-8?q?mejorar=20la=20gui=20de=20negromate=20para=20qu?= =?UTF-8?q?e=20detecte=20subt=C3=ADtulos=20con=20karaoke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/negromate/karaoke/karaoke.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/negromate/karaoke/karaoke.py b/gui/negromate/karaoke/karaoke.py index c92a58c..2eaa0cf 100755 --- a/gui/negromate/karaoke/karaoke.py +++ b/gui/negromate/karaoke/karaoke.py @@ -33,6 +33,7 @@ class Song(BoxLayout): self.video_type = None self.vtt = None self.srt = None + self.karaoke = None self.ass = None self.cover = None self.thumbnail = None @@ -60,6 +61,8 @@ class Song(BoxLayout): self.vtt = str(entry) elif entry.name == "{}.srt".format(self.path.name): self.srt = str(entry) + elif entry.name.endswith('karaoke.ass'): + self.karaoke = str(entry) elif entry.name.endswith('ass'): self.ass = str(entry) elif entry.name == 'thumb.jpg': @@ -75,7 +78,7 @@ class Song(BoxLayout): @property def subtitle(self): - return self.ass or self.srt or self.vtt + return self.karaoke or self.ass or self.srt or self.vtt class KaraokeGUI(BoxLayout): @@ -149,6 +152,7 @@ class KaraokeGUI(BoxLayout): subprocess.call([ 'vlc', '--fullscreen', + '--no-sub-autodetect-file', '--sub-file', self.active_song.subtitle, self.active_song.video,