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.
31 lines
1.1 KiB
31 lines
1.1 KiB
6 years ago
|
# coding=utf-8
|
||
|
|
||
5 years ago
|
from __future__ import absolute_import
|
||
6 years ago
|
import subliminal
|
||
|
|
||
|
# patch subliminal's subtitle and provider base
|
||
|
from .subtitle import Subtitle, guess_matches
|
||
|
from .providers import Provider
|
||
|
subliminal.subtitle.Subtitle = Subtitle
|
||
|
subliminal.subtitle.guess_matches = guess_matches
|
||
|
|
||
|
from .core import scan_video, search_external_subtitles, list_all_subtitles, save_subtitles, refine, \
|
||
|
download_best_subtitles
|
||
|
from .score import compute_score
|
||
|
from .video import Video
|
||
5 years ago
|
from . import extensions
|
||
|
from . import http
|
||
2 years ago
|
from . import core
|
||
6 years ago
|
|
||
|
# patch subliminal's core functions
|
||
|
subliminal.scan_video = subliminal.core.scan_video = scan_video
|
||
|
subliminal.core.search_external_subtitles = search_external_subtitles
|
||
|
subliminal.save_subtitles = subliminal.core.save_subtitles = save_subtitles
|
||
|
subliminal.refine = subliminal.core.refine = refine
|
||
|
subliminal.video.Video = subliminal.Video = Video
|
||
|
subliminal.video.Episode.__bases__ = (Video,)
|
||
|
subliminal.video.Movie.__bases__ = (Video,)
|
||
|
|
||
|
# add our own list_all_subtitles
|
||
|
subliminal.list_all_subtitles = subliminal.core.list_all_subtitles = list_all_subtitles
|