From 7fce06aa0d19ef2c8bbf85e6c2532dea1eb118d8 Mon Sep 17 00:00:00 2001 From: Jacob Carrigan Date: Fri, 30 Oct 2015 20:24:01 -0500 Subject: [PATCH] Adding filter for multi-title movies --- classes/makemkv.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/makemkv.py b/classes/makemkv.py index a8cdbd1..6276401 100755 --- a/classes/makemkv.py +++ b/classes/makemkv.py @@ -300,6 +300,12 @@ def get_disc_info(self): self._read_mkv_messages("TINFO", titleNo, 27) )) continue + if self.vidType == "movie" and not re.search('00',self._read_mkv_messages("TINFO", titleNo, 27)[0]): + self.log.debug( "Excluding Title No.: {}, Title: {}. Only want first title".format( + titleNo, + self._read_mkv_messages("TINFO", titleNo, 27) + )) + continue self.log.debug( "MakeMKV title info: Disc Title: {}, Title No.: {}, Title: {}, ".format( self._read_mkv_messages("CINFO", 2), titleNo,