add url quote to dirName. fixes #270

This commit is contained in:
clinton-hall 2014-02-28 12:04:08 +10:30
parent db9b653361
commit 1522d61492
2 changed files with 2 additions and 1 deletions

View file

@ -280,7 +280,7 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
if remoteCPS == 1: if remoteCPS == 1:
command = command + "/?downloader=" + clientAgent + "&download_id=" + download_id command = command + "/?downloader=" + clientAgent + "&download_id=" + download_id
else: else:
command = command + "/?media_folder=" + dirName + "&downloader=" + clientAgent + "&download_id=" + download_id command = command + "/?media_folder=" + urllib.quote(dirName) + "&downloader=" + clientAgent + "&download_id=" + download_id
url = baseURL + command url = baseURL + command

View file

@ -7,6 +7,7 @@ Change default "wait_for" to 5 mins. CouchPotato can take more than 2 minutes to
Added SickBeard "wait_for" to bw customizable to prevent unwanted timeouts. Added SickBeard "wait_for" to bw customizable to prevent unwanted timeouts.
Fixed ascii conversion of directory name. Fixed ascii conversion of directory name.
Added list of common sample ids and a way to set deletion of All media files less than the sample file size limit. Added list of common sample ids and a way to set deletion of All media files less than the sample file size limit.
Added urlquote to dirName for CouchPotato (allows special characters in directory name)
Impacts NZBs Impacts NZBs
Fix Error with manual run of nzbToMedia Fix Error with manual run of nzbToMedia