Fix updating Trakt collection from Unix.

This commit is contained in:
Prinz23 2016-07-19 02:04:30 +01:00 committed by JackDandy
parent 970f055ac5
commit d47f3738e7
2 changed files with 3 additions and 1 deletions

View file

@ -300,6 +300,7 @@
* Fix provider MTV download URL
* Change give provider OMGWTFNZBS more time to respond
* Change file browser to permit manually entering a path
* Fix updating Trakt collection from Unix
### 0.10.0 (2015-08-06 11:05:00 UTC)

View file

@ -19,6 +19,7 @@
import sickbeard
from sickbeard import logger
from lib.libtrakt import TraktAPI, exceptions
import os
class TraktNotifier:
@ -75,7 +76,7 @@ class TraktNotifier:
if tid not in sickbeard.TRAKT_ACCOUNTS.keys():
continue
for loc in locations:
if not ep_obj.location.startswith('%s\\' % loc.rstrip('\\')):
if not ep_obj.location.startswith('%s%s' % (loc.rstrip(os.path.sep), os.path.sep)):
continue
warn, msg = False, ''