def _configure_subliminal(): """Load subliminal with our custom configuration.""" from subliminal import provider_manager, refiner_manager basename = __name__.split('.')[0] # Unregister for name in ( 'addic7ed = subliminal.providers.addic7ed:Addic7edProvider', ): provider_manager.internal_extensions.remove(name) provider_manager.registered_extensions.append(name) provider_manager.unregister(name) # Register for name in ( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider', 'subtitulamos = {basename}.subtitle_providers.subtitulamos:SubtitulamosProvider' .format(basename=basename), 'wizdom = {basename}.subtitle_providers.wizdom:WizdomProvider'. format(basename=basename), 'addic7ed = {basename}.subtitle_providers.addic7ed:Addic7edProvider' .format(basename=basename)): provider_manager.register(name) refiner_manager.register( 'release = {basename}.refiners.release:refine'.format( basename=basename)) refiner_manager.register( 'tvepisode = {basename}.refiners.tv_episode:refine'.format( basename=basename))
def _configure_subliminal(): """Load subliminal with our custom configuration.""" from subliminal import provider_manager, refiner_manager basename = __name__.split('.')[0] # Unregister # for name in ('legendastv = subliminal.providers.legendastv:LegendasTVProvider',): # provider_manager.internal_extensions.remove(name) # provider_manager.registered_extensions.append(name) # provider_manager.unregister(name) # Register for name in ( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider', 'itasa = {basename}.subtitle_providers.itasa:ItaSAProvider'.format( basename=basename), 'wizdom = {basename}.subtitle_providers.wizdom:WizdomProvider'. format(basename=basename)): provider_manager.register(name) refiner_manager.register( 'release = {basename}.refiners.release:refine'.format( basename=basename)) refiner_manager.register( 'tvepisode = {basename}.refiners.tv_episode:refine'.format( basename=basename))
def _configure_subliminal(): """Load subliminal with our custom configuration.""" from subliminal import provider_manager, refiner_manager basename = __name__.split('.')[0] # Unregister # for name in ('legendastv = subliminal.providers.legendastv:LegendasTVProvider',): # provider_manager.internal_extensions.remove(name) # provider_manager.registered_extensions.append(name) # provider_manager.unregister(name) # Register for name in ('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider', 'itasa = {basename}.subtitle_providers.itasa:ItaSAProvider'.format(basename=basename), 'wizdom = {basename}.subtitle_providers.wizdom:WizdomProvider'.format(basename=basename)): provider_manager.register(name) refiner_manager.register('release = {basename}.refiners.release:refine'.format(basename=basename)) refiner_manager.register('tvepisode = {basename}.refiners.tv_episode:refine'.format(basename=basename))
def _configure_subliminal(): """Load subliminal with our custom configuration.""" from subliminal import provider_manager, refiner_manager from subliminal.providers.podnapisi import PodnapisiProvider basename = __name__.split('.')[0] # Unregister for name in ( 'legendastv = subliminal.providers.legendastv:LegendasTVProvider', 'subscenter = subliminal.providers.subscenter:SubsCenterProvider', ): provider_manager.internal_extensions.remove(name) provider_manager.registered_extensions.append(name) provider_manager.unregister(name) # Register for name in ( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider', 'itasa = {basename}.subtitle_providers.itasa:ItaSAProvider'.format( basename=basename), 'legendastv = {basename}.subtitle_providers.legendastv:LegendasTVProvider' .format(basename=basename), 'subscenter = {basename}.subtitle_providers.subscenter:SubsCenterProvider' .format(basename=basename), 'wizdom = {basename}.subtitle_providers.wizdom:WizdomProvider'. format(basename=basename)): provider_manager.register(name) refiner_manager.register( 'release = {basename}.refiners.release:refine'.format( basename=basename)) refiner_manager.register( 'tvepisode = {basename}.refiners.tv_episode:refine'.format( basename=basename)) # Configure podnapisi https url PodnapisiProvider.server_url = 'https://podnapisi.net/subtitles/'
import subliminal from babelfish import Language, language_converters from guessit import guessit from subliminal import Episode, provider_manager, ProviderPool import sickbeard from sickbeard import db, history, logger from sickbeard.common import Quality from sickbeard.helpers import is_media_file from sickchill.helper.common import dateTimeFormat, episode_num from sickchill.helper.exceptions import ex from sickchill.show.Show import Show # https://github.com/Diaoul/subliminal/issues/536 if 'napiprojekt' not in provider_manager.names(): provider_manager.register( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register( 'legendastv = subliminal.providers.legendastv:LegendasTVProvider') if 'itasa' not in provider_manager.names(): provider_manager.register( 'itasa = sickchill.providers.subtitle.itasa:ItaSAProvider') if 'wizdom' not in provider_manager.names(): provider_manager.register( 'wizdom = sickchill.providers.subtitle.wizdom:WizdomProvider') # We disabled the original subscenter in lib/subliminal/extensions.py since it's outdated. # Until it gets an update in subliminal, we'll use a fixed provider. if 'subscenter' not in provider_manager.names(): provider_manager.register( 'subscenter = sickchill.providers.subtitle.subscenter:SubsCenterProvider' )
import subprocess import threading import sickbeard from babelfish import Language, language_converters from subliminal import ProviderPool, provider_manager from sickbeard import logger from sickbeard import history from sickbeard import db from sickbeard import processTV from sickbeard.common import Quality from sickbeard.helpers import remove_non_release_groups, isMediaFile, isRarFile from sickrage.helper.common import episode_num, dateTimeFormat, subtitle_extensions from sickrage.helper.exceptions import ex from sickrage.show.Show import Show provider_manager.register('itasa = subliminal.providers.itasa:ItaSAProvider') provider_manager.register( 'legendastv = subliminal.providers.legendastv:LegendasTvProvider') provider_manager.register( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net/', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org', 'podnapisi': 'http://www.podnapisi.net', 'subscenter': 'http://www.subscenter.org',
import subliminal import subprocess import sickbeard from babelfish import Language, language_converters from subliminal import ProviderPool, provider_manager from sickbeard import logger from sickbeard import history from sickbeard import db from sickbeard import processTV from sickbeard.common import Quality from sickbeard.helpers import remove_non_release_groups, isMediaFile, isRarFile from sickrage.helper.common import episode_num, dateTimeFormat from sickrage.helper.exceptions import ex from sickrage.show.Show import Show provider_manager.register('legendastv = subliminal.providers.legendastv:LegendasTvProvider') provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org', 'podnapisi': 'http://www.podnapisi.net', 'subscenter': 'http://www.subscenter.org', 'thesubdb': 'http://www.thesubdb.com', 'tvsubtitles': 'http://www.tvsubtitles.net' }
from subliminal.core import search_external_subtitles from subliminal.score import episode_scores from subliminal.subtitle import get_subtitle_path from . import db, history, processTV from .common import cpu_presets from .helper.common import dateTimeFormat, episode_num, remove_extension, subtitle_extensions from .helper.exceptions import ex from .helpers import isMediaFile, isRarFile from .show.Show import Show logger = logging.getLogger(__name__) PROVIDER_POOL_EXPIRATION_TIME = datetime.timedelta(minutes=15).total_seconds() VIDEO_EXPIRATION_TIME = datetime.timedelta(days=1).total_seconds() provider_manager.register('itasa = subliminal.providers.itasa:ItaSAProvider') provider_manager.register( 'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') basename = __name__.split('.')[0] refiner_manager.register( 'release = {basename}.refiners.release:refine'.format(basename=basename)) refiner_manager.register( 'tvepisode = {basename}.refiners.tvepisode:refine'.format( basename=basename)) region.configure('dogpile.cache.memory') video_key = u'{name}:video|{{video_path}}'.format(name=__name__) episode_refiners = ('metadata', 'release', 'tvepisode', 'tvdb', 'omdb')
import six import subliminal from babelfish import Language, language_converters from guessit import guessit from sickbeard import db, history, logger from sickbeard.common import Quality from sickbeard.helpers import is_media_file from sickrage.helper.common import dateTimeFormat, episode_num from sickrage.helper.exceptions import ex from sickrage.show.Show import Show from subliminal import Episode, provider_manager, ProviderPool # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register( 'legendastv = subliminal.providers.legendastv:LegendasTVProvider') if 'itasa' not in provider_manager.names(): provider_manager.register( 'itasa = sickrage.providers.subtitle.itasa:ItaSAProvider') # We disabled the original subscenter in lib/subliminal/extensions.py since it's outdated. # Until it gets an update in subliminal, we'll use a fixed provider. if 'subscenter' not in provider_manager.names(): provider_manager.register( 'subscenter = sickrage.providers.subtitle.subscenter:SubsCenterProvider' ) subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net/',
import six import subliminal from babelfish import Language, language_converters from guessit import guessit from sickbeard import db, history, logger from sickbeard.common import Quality from sickbeard.helpers import is_media_file from sickrage.helper.common import dateTimeFormat, episode_num from sickrage.helper.exceptions import ex from sickrage.show.Show import Show from subliminal import Episode, provider_manager, ProviderPool # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register('legendastv = subliminal.providers.legendastv:LegendasTVProvider') if 'itasa' not in provider_manager.names(): provider_manager.register('itasa = sickrage.providers.subtitle.itasa:ItaSAProvider') # We disabled the original subscenter in lib/subliminal/extensions.py since it's outdated. # Until it gets an update in subliminal, we'll use a fixed provider. if 'subscenter' not in provider_manager.names(): provider_manager.register('subscenter = sickrage.providers.subtitle.subscenter:SubsCenterProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net/', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org',
import sickbeard from sickbeard import logger from sickbeard import history from sickbeard import db from sickbeard.common import Quality from sickbeard.helpers import isMediaFile from sickrage.helper.common import episode_num, dateTimeFormat from sickrage.show.Show import Show from sickrage.helper.exceptions import ex # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register('legendastv = subliminal.providers.legendastv:LegendasTVProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net/', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org', 'podnapisi': 'http://www.podnapisi.net', 'subscenter': 'http://www.subscenter.org', 'thesubdb': 'http://www.thesubdb.com', 'tvsubtitles': 'http://www.tvsubtitles.net' }
import sickbeard from sickbeard import logger from sickbeard import history from sickbeard import db from sickbeard.common import Quality from sickbeard.helpers import isMediaFile from sickrage.helper.common import episode_num, dateTimeFormat from sickrage.show.Show import Show from sickrage.helper.exceptions import ex # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if "legendastv" not in provider_manager.names(): provider_manager.register("legendastv = subliminal.providers.legendastv:LegendasTVProvider") if "itasa" not in provider_manager.names(): provider_manager.register("itasa = sickrage.providers.subtitle.itasa:ItaSAProvider") subliminal.region.configure("dogpile.cache.memory") PROVIDER_URLS = { "addic7ed": "http://www.addic7ed.com", "itasa": "http://www.italiansubs.net/", "legendastv": "http://www.legendas.tv", "napiprojekt": "http://www.napiprojekt.pl", "opensubtitles": "http://www.opensubtitles.org", "podnapisi": "http://www.podnapisi.net", "subscenter": "http://www.subscenter.org", "thesubdb": "http://www.thesubdb.com", "tvsubtitles": "http://www.tvsubtitles.net",
from sickbeard import history from sickbeard import db from sickbeard import processTV from sickbeard.common import Quality from sickbeard.helpers import remove_non_release_groups, isMediaFile, isRarFile from sickrage.helper.common import episode_num, dateTimeFormat, SUBTITLE_EXTENSIONS from sickrage.helper.exceptions import ex from sickrage.show.Show import Show from pkg_resources import require require('pytz') # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register( 'legendastv = subliminal.providers.legendastv:LegendasTVProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net/', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org', 'podnapisi': 'http://www.podnapisi.net', 'subscenter': 'http://www.subscenter.org', 'thesubdb': 'http://www.thesubdb.com', 'tvsubtitles': 'http://www.tvsubtitles.net' }
import sickbeard from sickbeard.common import cpu_presets from sickrage.helper.common import dateTimeFormat, episode_num, subtitle_extensions from sickrage.helper.exceptions import ex from sickrage.show.Show import Show from . import db, history, processTV from .helpers import isMediaFile, isRarFile, remove_non_release_groups logger = logging.getLogger(__name__) PROVIDER_POOL_EXPIRATION_TIME = datetime.timedelta(minutes=15).total_seconds() VIDEO_EXPIRATION_TIME = datetime.timedelta(days=1).total_seconds() provider_manager.register('itasa = subliminal.providers.itasa:ItaSAProvider') provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') refiner_manager.register('release = sickbeard.refiners.release:refine') region.configure('dogpile.cache.memory') video_key = u'{name}:video|{{video_path}}'.format(name=__name__) episode_refiners = ('metadata', 'release', 'tvdb', 'omdb') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com', 'itasa': 'http://www.italiansubs.net', 'legendastv': 'http://www.legendas.tv', 'napiprojekt': 'http://www.napiprojekt.pl', 'opensubtitles': 'http://www.opensubtitles.org',
# First Party Imports import sickbeard from sickchill.helper.common import dateTimeFormat, episode_num from sickchill.helper.exceptions import ex from sickchill.show.Show import Show # Local Folder Imports from . import db, history, logger from .common import Quality from .helpers import is_media_file # https://github.com/Diaoul/subliminal/issues/536 # provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register( 'legendastv = subliminal.providers.legendastv:LegendasTVProvider') if 'itasa' not in provider_manager.names(): provider_manager.register( 'itasa = sickchill.providers.subtitle.itasa:ItaSAProvider') if 'wizdom' not in provider_manager.names(): provider_manager.register( 'wizdom = sickchill.providers.subtitle.wizdom:WizdomProvider') # We disabled the original subscenter in lib/subliminal/extensions.py since it's outdated. # Until it gets an update in subliminal, we'll use a fixed provider. if 'subscenter' not in provider_manager.names(): provider_manager.register( 'subscenter = sickchill.providers.subtitle.subscenter:SubsCenterProvider' ) if 'subtitulamos' not in provider_manager.names(): provider_manager.register( 'subtitulamos = sickchill.providers.subtitle.subtitulamos:SubtitulamosProvider'
import subliminal from babelfish import Language, language_converters from guessit import guessit from subliminal import Episode, provider_manager, ProviderPool import sickbeard from sickbeard import db, history, logger from sickbeard.common import Quality from sickbeard.helpers import is_media_file from sickchill.helper.common import dateTimeFormat, episode_num from sickchill.helper.exceptions import ex from sickchill.show.Show import Show # https://github.com/Diaoul/subliminal/issues/536 if 'napiprojekt' not in provider_manager.names(): provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider') if 'legendastv' not in provider_manager.names(): provider_manager.register('legendastv = subliminal.providers.legendastv:LegendasTVProvider') if 'itasa' not in provider_manager.names(): provider_manager.register('itasa = sickchill.providers.subtitle.itasa:ItaSAProvider') if 'wizdom' not in provider_manager.names(): provider_manager.register('wizdom = sickchill.providers.subtitle.wizdom:WizdomProvider') # We disabled the original subscenter in lib/subliminal/extensions.py since it's outdated. # Until it gets an update in subliminal, we'll use a fixed provider. if 'subscenter' not in provider_manager.names(): provider_manager.register('subscenter = sickchill.providers.subtitle.subscenter:SubsCenterProvider') subliminal.region.configure('dogpile.cache.memory') PROVIDER_URLS = { 'addic7ed': 'http://www.addic7ed.com',
import subprocess import threading import sickbeard from babelfish import Language, language_converters from subliminal import ProviderPool, provider_manager from sickbeard import logger from sickbeard import history from sickbeard import db from sickbeard import processTV from sickbeard.common import Quality from sickbeard.helpers import remove_non_release_groups, isMediaFile, isRarFile from sickrage.helper.common import episode_num, dateTimeFormat, subtitle_extensions from sickrage.helper.exceptions import ex from sickrage.show.Show import Show provider_manager.register("itasa = subliminal.providers.itasa:ItaSAProvider") provider_manager.register("legendastv = subliminal.providers.legendastv:LegendasTvProvider") provider_manager.register("napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider") subliminal.region.configure("dogpile.cache.memory") PROVIDER_URLS = { "addic7ed": "http://www.addic7ed.com", "itasa": "http://www.italiansubs.net/", "legendastv": "http://www.legendas.tv", "napiprojekt": "http://www.napiprojekt.pl", "opensubtitles": "http://www.opensubtitles.org", "podnapisi": "http://www.podnapisi.net", "subscenter": "http://www.subscenter.org", "thesubdb": "http://www.thesubdb.com", "tvsubtitles": "http://www.tvsubtitles.net",