Skip to content

Loading…

Fix exclusion check #93

Merged
merged 1 commit into from

2 participants

@nate1280

Fix exclusion check, was doing a wrong comparison on folder path, so the check never actually happened.

@nate1280 nate1280 Fix exclusion check
Fix exclusion check, was doing a wrong comparison on folder path, so the check never actually happened.
425763c
@rectifyer rectifyer merged commit fbf57ae into trakt:master
@nate1280 nate1280 deleted the nate1280:exclusion_fix branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. @nate1280

    Fix exclusion check

    nate1280 committed
    Fix exclusion check, was doing a wrong comparison on folder path, so the check never actually happened.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 utilities.py
View
6 utilities.py
@@ -106,19 +106,19 @@ def checkScrobblingExclusion(fullpath):
return True
ExcludePath = getSetting('ExcludePath')
- if not ExcludePath and getSettingAsBool('ExcludePathOption'):
+ if ExcludePath != "" and getSettingAsBool('ExcludePathOption'):
if (fullpath.find(ExcludePath) > -1):
Debug("checkScrobblingExclusion(): Video is playing from location, which is currently set as excluded path 1.")
return True
ExcludePath2 = getSetting('ExcludePath2')
- if not ExcludePath2 and getSettingAsBool('ExcludePathOption2'):
+ if ExcludePath2 != "" and getSettingAsBool('ExcludePathOption2'):
if (fullpath.find(ExcludePath2) > -1):
Debug("checkScrobblingExclusion(): Video is playing from location, which is currently set as excluded path 2.")
return True
ExcludePath3 = getSetting('ExcludePath3')
- if not ExcludePath3 and getSettingAsBool('ExcludePathOption3'):
+ if ExcludePath3 != "" and getSettingAsBool('ExcludePathOption3'):
if (fullpath.find(ExcludePath3) > -1):
Debug("checkScrobblingExclusion(): Video is playing from location, which is currently set as excluded path 3.")
return True
Something went wrong with that request. Please try again.