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
|
2018-11-28 10:44:59 +00:00
|
|
|
external_subtitle_languages = None
|
2024-02-20 00:46:14 +00:00
|
|
|
info_url = None
|
2018-10-31 16:08:29 +00:00
|
|
|
|
2022-11-19 20:38:37 +00:00
|
|
|
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,
|
2024-02-20 00:46:14 +00:00
|
|
|
info_url=None,
|
2024-04-14 12:19:13 +00:00
|
|
|
series_anidb_id=None,
|
|
|
|
series_anidb_episode_id=None,
|
2024-08-06 00:24:15 +00:00
|
|
|
series_anidb_season_episode_offset=None,
|
|
|
|
anilist_id=None,
|
2022-11-19 20:38:37 +00:00
|
|
|
**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,
|
|
|
|
)
|
2018-10-31 16:08:29 +00:00
|
|
|
self.original_name = os.path.basename(name)
|
|
|
|
self.plexapi_metadata = {}
|
|
|
|
self.hints = {}
|
|
|
|
self.audio_languages = audio_languages or set()
|
2018-11-28 10:44:59 +00:00
|
|
|
self.external_subtitle_languages = set()
|
2021-06-10 20:00:42 +00:00
|
|
|
self.streaming_service = streaming_service
|
|
|
|
self.edition = edition
|
2021-12-23 23:45:26 +00:00
|
|
|
self.original_path = name
|
2022-11-19 20:38:37 +00:00
|
|
|
self.other = other
|
2024-02-20 00:46:14 +00:00
|
|
|
self.info_url = info_url
|
2024-04-14 12:19:13 +00:00
|
|
|
self.series_anidb_series_id = series_anidb_id,
|
|
|
|
self.series_anidb_episode_id = series_anidb_episode_id,
|
2024-08-06 00:24:15 +00:00
|
|
|
self.series_anidb_season_episode_offset = series_anidb_season_episode_offset,
|
|
|
|
self.anilist_id = anilist_id,
|