mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-31 12:00:04 -07:00
fix group replacements. #485
This commit is contained in:
parent
eb01ae7ef8
commit
29a939ffae
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ def process_all_exceptions(name, dirname):
|
|||
def strip_groups(filename):
|
||||
if not nzbtomedia.GROUPS:
|
||||
return filename
|
||||
head, fileExtension = os.path.splitext(os.path.basename(filename))
|
||||
dirname, file = os.path.split(filename)
|
||||
head, fileExtension = os.path.splitext(file)
|
||||
newname = head.replace(' ', '.')
|
||||
for group in nzbtomedia.GROUPS:
|
||||
newname = newname.replace(group, '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue