From b5c703c8934913cecd74462ceed02e95a90a7ee8 Mon Sep 17 00:00:00 2001 From: Supremicus Date: Fri, 8 Aug 2014 09:17:31 +1000 Subject: [PATCH] Provider image fixes. newznab.py - changed to use provider image from set gui interface (for gui skin support). rsstorrent.py - as per above, directory was wrong all together. --- sickbeard/providers/newznab.py | 3 +-- sickbeard/providers/rsstorrent.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sickbeard/providers/newznab.py b/sickbeard/providers/newznab.py index 0a0494c1..d2dcccbe 100755 --- a/sickbeard/providers/newznab.py +++ b/sickbeard/providers/newznab.py @@ -74,8 +74,7 @@ class NewznabProvider(generic.NZBProvider): int(self.enabled)) + '|' + self.search_mode + '|' + str(int(self.search_fallback)) def imageName(self): - if ek.ek(os.path.isfile, - ek.ek(os.path.join, sickbeard.PROG_DIR, 'gui', 'slick', 'images', 'providers', self.getID() + '.png')): + if ek.ek(os.path.isfile, ek.ek(os.path.join, sickbeard.PROG_DIR, 'gui', sickbeard.GUI_NAME, 'images', 'providers', self.getID() + '.png')): return self.getID() + '.png' return 'newznab.png' diff --git a/sickbeard/providers/rsstorrent.py b/sickbeard/providers/rsstorrent.py index f46c7b30..905c91b8 100644 --- a/sickbeard/providers/rsstorrent.py +++ b/sickbeard/providers/rsstorrent.py @@ -53,7 +53,7 @@ class TorrentRssProvider(generic.TorrentProvider): return self.name + '|' + self.url + '|' + self.cookies + '|' + str(int(self.enabled)) + '|' + self.search_mode + '|' + str(int(self.search_fallback)) + '|' + str(int(self.backlog_only)) def imageName(self): - if ek.ek(os.path.isfile, ek.ek(os.path.join, sickbeard.PROG_DIR, 'data', 'images', 'providers', self.getID() + '.png')): + if ek.ek(os.path.isfile, ek.ek(os.path.join, sickbeard.PROG_DIR, 'gui', sickbeard.GUI_NAME, 'images', 'providers', self.getID() + '.png')): return self.getID() + '.png' return 'torrentrss.png'