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.

37 lines
643 B

from couchpotato.core.logger import CPLog
14 years ago
from couchpotato.core.plugins.base import Plugin
log = CPLog(__name__)
14 years ago
14 years ago
class Provider(Plugin):
type = None # movie, nzb, torrent, subtitle, trailer
timeout = 10 # Default timeout for url requests
class MovieProvider(Provider):
type = 'movie'
class NZBProvider(Provider):
type = 'nzb'
time_between_searches = 10 # Seconds
def isEnabled(self):
return True # nzb_downloaded is enabled check
class TorrentProvider(Provider):
type = 'torrent'
class SubtitleProvider(Provider):
type = 'subtitle'
class TrailerProvider(Provider):
type = 'trailer'