mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fixed startup issue due to import module issues.
This commit is contained in:
parent
9761c6c6a3
commit
efe115f909
1 changed files with 5 additions and 6 deletions
|
@ -24,15 +24,14 @@ import sickbeard
|
|||
|
||||
from sickbeard import db
|
||||
from sickbeard import logger
|
||||
from sickbeard import clients
|
||||
from sickbeard import helpers, show_name_helpers
|
||||
from sickbeard.providers.generic import GenericProvider
|
||||
from sickbeard.common import Quality
|
||||
|
||||
from sickbeard import helpers, show_name_helpers
|
||||
from sickbeard.exceptions import MultipleShowObjectsException
|
||||
from sickbeard.exceptions import AuthException
|
||||
from sickbeard.rssfeeds import RSSFeeds
|
||||
|
||||
from name_parser.parser import NameParser, InvalidNameException, InvalidShowException
|
||||
from sickbeard.rssfeeds import RSSFeeds
|
||||
from sickbeard import clients
|
||||
|
||||
class CacheDBConnection(db.DBConnection):
|
||||
def __init__(self, providerName):
|
||||
|
@ -361,7 +360,7 @@ class TVCache():
|
|||
result.content = None
|
||||
|
||||
# validate torrent file if not magnet link to avoid invalid torrent links
|
||||
if self.provider.providerType == GenericProvider.TORRENT:
|
||||
if self.provider.providerType == sickbeard.providers.generic.GenericProvider.TORRENT:
|
||||
if sickbeard.TORRENT_METHOD != "blackhole":
|
||||
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
|
||||
result = client._get_torrent_hash(result)
|
||||
|
|
Loading…
Reference in a new issue