Video gets a new parameter embeded_subtitles to represent the subtitle files found in the mkv container.

This commit is contained in:
2018-09-16 23:26:06 +02:00
parent 1ff34630ac
commit 3e2faadc2f
2 changed files with 13 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ class Video(object):
:param set subtitles: existing subtitle languages.
"""
def __init__(self, name, hash=None, size=None, format=None, release_group=None, resolution=None, video_codec=None, audio_codec=None,
imdb_id=None, subtitles=None):
imdb_id=None, subtitles=None, embeded_subtitles=None):
#: Name or path of the video
self.name = name
@@ -64,6 +64,9 @@ class Video(object):
#: Existing subtitle languages
self.subtitles = subtitles or set()
#: Embeded subtitle languages
self.embeded_subtitles = embeded_subtitles or set()
@property
def exists(self):
"""Test whether the video exists"""