bazarr/libs/subliminal_patch/video.py

31 lines
1.2 KiB
Python
Raw Normal View History

2018-10-31 16:08:29 +00:00
# coding=utf-8
2019-09-17 02:04:27 +00:00
from __future__ import absolute_import
2018-10-31 16:08:29 +00:00
import os
from subliminal.video import Video as Video_
class Video(Video_):
is_special = False
fps = None
plexapi_metadata = None
hints = None
season_fully_aired = None
audio_languages = None
external_subtitle_languages = None
2018-10-31 16:08:29 +00:00
2020-05-20 15:29:39 +00:00
def __init__(self, name, source=None, release_group=None, resolution=None, video_codec=None, audio_codec=None,
2021-06-10 20:00:42 +00:00
imdb_id=None, hashes=None, size=None, subtitle_languages=None, audio_languages=None,
streaming_service=None, edition=None):
2020-05-20 15:29:39 +00:00
super(Video, self).__init__(name, source=source, release_group=release_group, resolution=resolution,
2018-10-31 16:08:29 +00:00
video_codec=video_codec, audio_codec=audio_codec, imdb_id=imdb_id, hashes=hashes,
size=size, subtitle_languages=subtitle_languages)
self.original_name = os.path.basename(name)
self.plexapi_metadata = {}
self.hints = {}
self.audio_languages = audio_languages or set()
self.external_subtitle_languages = set()
2021-06-10 20:00:42 +00:00
self.streaming_service = streaming_service
self.edition = edition