You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
6 years ago
|
# coding=utf-8
|
||
|
|
||
5 years ago
|
from __future__ import absolute_import
|
||
6 years ago
|
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
|
||
6 years ago
|
external_subtitle_languages = None
|
||
9 months ago
|
info_url = None
|
||
6 years ago
|
|
||
2 years ago
|
def __init__(
|
||
|
self,
|
||
|
name,
|
||
|
source=None,
|
||
|
release_group=None,
|
||
|
resolution=None,
|
||
|
video_codec=None,
|
||
|
audio_codec=None,
|
||
|
imdb_id=None,
|
||
|
hashes=None,
|
||
|
size=None,
|
||
|
subtitle_languages=None,
|
||
|
audio_languages=None,
|
||
|
streaming_service=None,
|
||
|
edition=None,
|
||
|
other=None,
|
||
9 months ago
|
info_url=None,
|
||
2 years ago
|
**kwargs
|
||
|
):
|
||
|
super(Video, self).__init__(
|
||
|
name,
|
||
|
source=source,
|
||
|
release_group=release_group,
|
||
|
resolution=resolution,
|
||
|
video_codec=video_codec,
|
||
|
audio_codec=audio_codec,
|
||
|
imdb_id=imdb_id,
|
||
|
hashes=hashes,
|
||
|
size=size,
|
||
|
subtitle_languages=subtitle_languages,
|
||
|
)
|
||
6 years ago
|
self.original_name = os.path.basename(name)
|
||
|
self.plexapi_metadata = {}
|
||
|
self.hints = {}
|
||
|
self.audio_languages = audio_languages or set()
|
||
6 years ago
|
self.external_subtitle_languages = set()
|
||
4 years ago
|
self.streaming_service = streaming_service
|
||
|
self.edition = edition
|
||
3 years ago
|
self.original_path = name
|
||
2 years ago
|
self.other = other
|
||
9 months ago
|
self.info_url = info_url
|