Fix [=-< Q o Q >-=] search

This commit is contained in:
Clinton Hall 2013-02-28 13:09:54 -08:00
commit 0a3a2491d8

View file

@ -47,7 +47,7 @@ class AuthURLOpener(urllib.FancyURLopener):
def custom_groups(group, dirName):
mediaContainer = ['.mkv', '.avi', '.divx', '.xvid', '.mov', '.wmv', '.mp4', '.mpg', '.mpeg', '.iso']
if group == "QoQ": # for my NL friends :) we want to reverse the file names for the video files.
if group == "[=-< Q o Q >-=]": # for my NL friends :) we want to reverse the file names for the video files.
for dirpath, dirnames, filenames in os.walk(dirName):
for file in filenames:
filePath = os.path.join(dirpath, file)
@ -107,7 +107,7 @@ def processEpisode(dirName, nzbName=None, failed=False):
failed_fork = 0
# check for custom groups
customgroups = ['QoQ'] # we can add more to this list
customgroups = ['[=-< Q o Q >-=]'] # we can add more to this list
for index in range(len(customgroups)):
if customgroups[index].lower() in nzbName.lower(): # match the group in the nzbname
custom_groups(customgroups[index], dirName) # files have been renamned