Issue 26: Dont' try to correct Comments space on settings file
Status:  Fixed
Owner:
Closed:  Dec 2011
Project Member Reported by login...@gmail.com, Nov 30, 2011
What steps will reproduce the problem?

1. Add a comment to config file. (# Foo Bar)
2. Run torrentexpander
3. The config looks like (#\ Foo\ Bar)

Dec 1, 2011
Project Member #1 addicted...@gmail.com
I spent some time trying to find a way to use "source" from a variable, but no luck.
Also I've tried to sed -i replace spaces by backslash spaces only on uncommented lines, but couldn't find the right see command.

The only remaining option would be to call each variable from the settings file, unless you find a better way

Maybe I'll be more efficient this week-end
Dec 3, 2011
Project Member #2 addicted...@gmail.com
Solved in latest SVN release
The script will auto add quotes if paths contain spaces
Dec 3, 2011
Project Member #3 login...@gmail.com
There is something wrong! look this config afetr running program.

# Set destination folder for processed files
destination_folder="/share/Download/Expanded
"
# Delete original files?
destructive_mode="no
"
# Put in a subdirectory alone file?
force_single_file_movies_folder="yes
"
Dec 3, 2011
Project Member #4 login...@gmail.com
It breaks all config lines.
Labels: -Priority-Low Priority-Critical
Dec 3, 2011
Project Member #5 addicted...@gmail.com
Tried everything and cannot reproduce it
I tried with these settings on ubuntu and mac os X and it works fine
https://code.google.com/p/torrentexpander/issues/attachmentText?id=23&aid=230018000&name=torrentexpander_settings.ini.2&token=CoMJkrgmVo8rW9R3A2XLmHHdG08%3A1322934638494

I uploaded a new svn build that should be able to prevent what you're experiencing
Please use a fresh settings.ini file and let me know how it works
Dec 3, 2011
Project Member #6 login...@gmail.com
I'm using this. 
torrentexpander_settings (2).ini
2.6 KB   View   Download
Dec 3, 2011
Project Member #7 login...@gmail.com
r106 dont' help me.
Dec 3, 2011
Project Member #8 addicted...@gmail.com
Still no luck reproducing it with your settings file on any of my computers
Please try to replace line 313 with the following :
if [ "$(echo "$check_settings" | egrep -i "([^\"]) ")" ] && [ "$gnu_sed_available" == "yes" ]; then sed -i 's;^\(.*\)=\([^"]\)\(.*\)\([^"]\)$;\1="\2\3\4";g' "$settings_file"; fi

Also you could try disabling lines 310 and 311, but I don't see why this would cause any issue

Other than that I have no idea where the issue comes from in your setup

If you want the script tu run in order to test the update, just temporarily disable lines 310 to 313

Dec 3, 2011
Project Member #9 login...@gmail.com
Strange charcacter on line 308
Dec 3, 2011
Project Member #10 login...@gmail.com
I sent to you an email with remote login credentials. Have a look
Dec 3, 2011
Project Member #11 login...@gmail.com
I have seen that autoupdate don't replace old script correctly. It download new version on $dest_dir and start a new thread from it. 
Dec 3, 2011
Project Member #12 login...@gmail.com
Now problem about config seems solved, i don't know why. 
torrentexpander_settings.ini
2.6 KB   View   Download
Dec 3, 2011
Project Member #13 login...@gmail.com
PLS Have a look to new CSI packages. (daemon.sh, setup.sh, ..)
Based on http://www.networkedmediatank.com/showthread.php?tid=56513
Dec 4, 2011
Project Member #14 login...@gmail.com
(No comment was entered for this change.)
Status: Fixed