Subdirectories for providers

This commit is contained in:
Ruud
2011-04-12 10:51:56 +02:00
parent 05f6d57ea3
commit 2b88e08dd5
21 changed files with 134 additions and 3 deletions
+10 -3
View File
@@ -14,11 +14,18 @@ class Loader:
def preload(self, root = ''):
core = os.path.join(root, 'couchpotato', 'core')
providers = os.path.join(root, 'couchpotato', 'core', 'providers')
self.paths = {
'plugin' : ('couchpotato.core.plugins', os.path.join(root, 'couchpotato', 'core', 'plugins')),
'provider' : ('couchpotato.core.providers', os.path.join(root, 'couchpotato', 'core', 'providers')),
'notifications' : ('couchpotato.core.notifications', os.path.join(root, 'couchpotato', 'core', 'notifications')),
'plugin' : ('couchpotato.core.plugins', os.path.join(core, 'plugins')),
'notifications' : ('couchpotato.core.notifications', os.path.join(core, 'notifications')),
'downloaders' : ('couchpotato.core.downloaders', os.path.join(root, 'couchpotato', 'core', 'downloaders')),
'movie_provider' : ('couchpotato.core.providers.movie', os.path.join(providers, 'movie')),
'nzb_provider' : ('couchpotato.core.providers.nzb', os.path.join(providers, 'nzb')),
'torrent_provider' : ('couchpotato.core.providers.torrent', os.path.join(providers, 'torrent')),
'trailer_provider' : ('couchpotato.core.providers.trailer', os.path.join(providers, 'trailer')),
'subtitle_provider' : ('couchpotato.core.providers.subtitle', os.path.join(providers, 'subtitle')),
}
for type, tuple in self.paths.iteritems():