xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

Dont' try to correct Comments space on settings file #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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)

Original issue reported on code.google.com by login...@gmail.com on 30 Nov 2011 at 6:21

GoogleCodeExporter commented 8 years ago
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

Original comment by addicted...@gmail.com on 1 Dec 2011 at 10:41

GoogleCodeExporter commented 8 years ago
Solved in latest SVN release
The script will auto add quotes if paths contain spaces

Original comment by addicted...@gmail.com on 3 Dec 2011 at 5:27

GoogleCodeExporter commented 8 years ago
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
"

Original comment by login...@gmail.com on 3 Dec 2011 at 5:35

GoogleCodeExporter commented 8 years ago
It breaks all config lines.

Original comment by login...@gmail.com on 3 Dec 2011 at 5:44

GoogleCodeExporter commented 8 years ago
Tried everything and cannot reproduce it
I tried with these settings on ubuntu and mac os X and it works fine
http://code.google.com/p/torrentexpander/issues/attachmentText?id=23&aid=2300180
00&name=torrentexpander_settings.ini.2&token=CoMJkrgmVo8rW9R3A2XLmHHdG08%3A13229
34638494

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

Original comment by addicted...@gmail.com on 3 Dec 2011 at 5:57

GoogleCodeExporter commented 8 years ago
I'm using this. 

Original comment by login...@gmail.com on 3 Dec 2011 at 6:13

Attachments:

GoogleCodeExporter commented 8 years ago
r106 dont' help me.

Original comment by login...@gmail.com on 3 Dec 2011 at 6:16

GoogleCodeExporter commented 8 years ago
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

Original comment by addicted...@gmail.com on 3 Dec 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Strange charcacter on line 308

Original comment by login...@gmail.com on 3 Dec 2011 at 7:26

GoogleCodeExporter commented 8 years ago
I sent to you an email with remote login credentials. Have a look

Original comment by login...@gmail.com on 3 Dec 2011 at 7:58

GoogleCodeExporter commented 8 years ago
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. 

Original comment by login...@gmail.com on 3 Dec 2011 at 8:06

GoogleCodeExporter commented 8 years ago
Now problem about config seems solved, i don't know why. 

Original comment by login...@gmail.com on 3 Dec 2011 at 8:08

Attachments:

GoogleCodeExporter commented 8 years ago
PLS Have a look to new CSI packages. (daemon.sh, setup.sh, ..)
Based on http://www.networkedmediatank.com/showthread.php?tid=56513

Original comment by login...@gmail.com on 3 Dec 2011 at 8:36

GoogleCodeExporter commented 8 years ago

Original comment by login...@gmail.com on 4 Dec 2011 at 10:45