2018-10-31 17:08:29 +01:00
|
|
|
# coding=utf-8
|
|
|
|
|
2019-09-16 22:04:27 -04:00
|
|
|
from __future__ import absolute_import
|
2018-10-31 17:08:29 +01:00
|
|
|
from subliminal.providers.shooter import ShooterProvider as _ShooterProvider, ShooterSubtitle as _ShooterSubtitle
|
2021-11-09 22:55:47 -05:00
|
|
|
from subliminal.video import Episode, Movie
|
2018-10-31 17:08:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ShooterSubtitle(_ShooterSubtitle):
|
|
|
|
def __init__(self, language, hash, download_link):
|
|
|
|
super(ShooterSubtitle, self).__init__(language, hash, download_link)
|
|
|
|
self.release_info = hash
|
|
|
|
self.page_link = download_link
|
|
|
|
|
|
|
|
|
|
|
|
class ShooterProvider(_ShooterProvider):
|
|
|
|
subtitle_class = ShooterSubtitle
|
2021-11-09 22:55:47 -05:00
|
|
|
video_types = (Episode, Movie)
|