Private GIT

Skip to content
Snippets Groups Projects
Commit 1babae45 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Better path control for scene_exceptions

parent d74e45d0
No related branches found
No related tags found
No related merge requests found
from os.path import dirname, abspath
TVDB_EXCEPTIONS = dirname(abspath(__file__)) + '/tvdb/exceptions.txt'
TVRAGE_EXCEPTIONS = dirname(abspath(__file__)) + '/tvrage/exceptions.txt'
from lib.tvdb_api.tvdb_api import Tvdb
from lib.tvrage_api.tvrage_api import TVRage
from scene_exceptions import TVDB_EXCEPTIONS, TVRAGE_EXCEPTIONS
import requests
INDEXER_TVDB = 1
......@@ -43,7 +44,7 @@ indexerConfig[INDEXER_TVRAGE] = {
indexerConfig[INDEXER_TVDB]['trakt_id'] = 'tvdb_id'
indexerConfig[INDEXER_TVDB]['xem_origin'] = 'tvdb'
indexerConfig[INDEXER_TVDB]['icon'] = 'thetvdb16.png'
indexerConfig[INDEXER_TVDB]['scene_loc'] = '../lib/scene_exceptions/tvdb/exceptions.txt'
indexerConfig[INDEXER_TVDB]['scene_loc'] = TVDB_EXCEPTIONS
indexerConfig[INDEXER_TVDB]['show_url'] = 'http://thetvdb.com/?tab=series&id='
indexerConfig[INDEXER_TVDB]['base_url'] = 'http://thetvdb.com/api/%(apikey)s/series/' % indexerConfig[INDEXER_TVDB]['api_params']
......@@ -51,6 +52,6 @@ indexerConfig[INDEXER_TVDB]['base_url'] = 'http://thetvdb.com/api/%(apikey)s/ser
indexerConfig[INDEXER_TVRAGE]['trakt_id'] = 'tvrage_id'
indexerConfig[INDEXER_TVRAGE]['xem_origin'] = 'rage'
indexerConfig[INDEXER_TVRAGE]['icon'] = 'tvrage16.png'
indexerConfig[INDEXER_TVRAGE]['scene_loc'] = '../lib/scene_exceptions/tvrage/exceptions.txt'
indexerConfig[INDEXER_TVRAGE]['scene_loc'] = TVRAGE_EXCEPTIONS
indexerConfig[INDEXER_TVRAGE]['show_url'] = 'http://tvrage.com/shows/id-'
indexerConfig[INDEXER_TVRAGE]['base_url'] = 'http://tvrage.com/showinfo.php?key=%(apikey)s&sid=' % indexerConfig[INDEXER_TVRAGE]['api_params']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment