all repos — auto-movie-tagger @ b790e5fa57c1c520355668cf2876e08ea5e7d041

A Python script that auto tags and adds poster to mkv or mp4 movie files.

adds another image-based subtitle to discard
Prithu Goswami prithugoswami524@gmail.com
Wed, 07 Mar 2018 23:12:24 +0530
commit

b790e5fa57c1c520355668cf2876e08ea5e7d041

parent

a06fab8d899fa774af7ec09ca41a91e9ad887e49

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M amt.pyamt.py

@@ -27,7 +27,7 @@

def collect_stream_metadata(filename): """ Returns a list of streams' metadata present in the media file passed as - the argument (filename) + the argument (filename) """ command = 'ffprobe -i "{}" -show_streams -of json'.format(filename) args = shlex.split(command)

@@ -125,7 +125,7 @@ stream_md = collect_stream_metadata(filename)

streams_to_process = [] dvdsub_exists=False for stream in stream_md['streams']: - if not stream['codec_name'] == "dvdsub": + if not stream['codec_name'] in ("dvdsub", "pgssub"): streams_to_process.append(stream['index']) else: dvdsub_exists=True