mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fixes issue #350, unicode errors
This commit is contained in:
parent
0d725a78d6
commit
d0b55d3d53
3 changed files with 11 additions and 10 deletions
|
@ -31,11 +31,11 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
|
||||
myDB = nzbToMediaDB.DBConnection()
|
||||
|
||||
controlValueDict = {"input_directory": inputDirectory}
|
||||
newValueDict = {"input_name": inputName,
|
||||
"input_hash": inputHash,
|
||||
"input_id": inputID,
|
||||
"client_agent": clientAgent,
|
||||
controlValueDict = {"input_directory": unicode(inputDirectory)}
|
||||
newValueDict = {"input_name": unicode(inputName),
|
||||
"input_hash": unicode(inputHash),
|
||||
"input_id": unicode(inputID),
|
||||
"client_agent": unicode(clientAgent),
|
||||
"status": 0,
|
||||
"last_update": datetime.date.today().toordinal()
|
||||
}
|
||||
|
|
|
@ -244,6 +244,7 @@
|
|||
#Set the categories to use external script.
|
||||
#Use "UNCAT" to process non-category downloads, and "ALL" for all. Set to "NONE" to disable external script.
|
||||
[[UNCAT]]
|
||||
#Enable/Disable this subsection category
|
||||
enabled = 0
|
||||
#What extension do you want to process? Specify all the extension, or use "ALL" to process all files.
|
||||
user_script_mediaExtensions = .mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg
|
||||
|
|
|
@ -292,11 +292,11 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
|
||||
myDB = nzbToMediaDB.DBConnection()
|
||||
|
||||
controlValueDict = {"input_directory": inputDirectory}
|
||||
newValueDict = {"input_name": inputName,
|
||||
"input_hash": download_id,
|
||||
"input_id": download_id,
|
||||
"client_agent": clientAgent,
|
||||
controlValueDict = {"input_directory": unicode(inputDirectory)}
|
||||
newValueDict = {"input_name": unicode(inputName),
|
||||
"input_hash": unicode(download_id),
|
||||
"input_id": unicode(download_id),
|
||||
"client_agent": unicode(clientAgent),
|
||||
"status": 0,
|
||||
"last_update": datetime.date.today().toordinal()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue