mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix [=-< Q o Q >-=] search
This commit is contained in:
parent
5fc55fb0da
commit
75f8c9970f
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,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)
|
||||
|
@ -91,7 +91,7 @@ def process(dirName, nzbName=None, status=0):
|
|||
delay = 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue