From d47f3738e7029c77b598661388b7918ff4e7987b Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Tue, 19 Jul 2016 02:04:30 +0100 Subject: [PATCH] Fix updating Trakt collection from Unix. --- CHANGES.md | 1 + sickbeard/notifiers/trakt.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index dad90b77..0b04b6b8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) diff --git a/sickbeard/notifiers/trakt.py b/sickbeard/notifiers/trakt.py index b6fa373e..fad23b47 100644 --- a/sickbeard/notifiers/trakt.py +++ b/sickbeard/notifiers/trakt.py @@ -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, ''