Path encoding during custom wget launcher

Ask for help about FlashGot, no registration needed to post
Post Reply
denis

Path encoding during custom wget launcher

Post by denis »

Hello,

I've just found flashgot and tried to use it with wget program (I use FF under ubuntu linux).

However, it was found that there is no convenient way to stop the downloading (I was able to stop only via finding target wget process pid and manually killing it).

Googling showed that it's possible to configure wget to use standard terminal in order to resolve the problem. So, I created custom launcher for the 'gnome-terminal' executable and configured the following command line for it:
-t Downloading -x wget -c [--directory-prefix=FOLDER] [--referer=REFERER] [--post-data=POST] [--load-cookies=CFILE] [--header=Cookie:COOKIE] [--input-file=UFILE]
Such a setup allows to interrupt downloading, however, I encountered another problem - it seems that target destination folder path is incorrectly processed if it contains symbols over than from standard ASCII set. I.e. if target directory path contains, say, russian symbols, they are not preserved during 'wget' calling by flashgot.

Example: I define the following destination directory path

Code: Select all

/storage/movie/сериалы/how.i.met.ur.mother/5
Wget terminal window shows the following command line snippet for that:

Code: Select all

Saving to: `/storage/movie/A5@80;K/how.i.met.ur.mother/5/How.I.Met.Your.Mother.s5.e01.Rus.[Kuraj-Bambey.Ru].avi'
You can see that there is a mismatch at the non-ASCII path segment and that number of symbols is the same in each case.

One more note - I checked that built-in 'wget' integration provided with flashgot correctly handles the same destination path (containing non-ASCII characters).

I assume that all I need to do is revise custom wget launcher in order to make it encode path at the correct way. Am I right? Can you provide me a hint on how to do that?

Regards, Denis
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6
Sergey

Re: Path encoding during custom wget launcher

Post by Sergey »

i have the same problem with flashgot and name or directory in russian language. My locale is

Code: Select all

qwe@localhost ~ $ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100410 Gentoo Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9528
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Path encoding during custom wget launcher

Post by Giorgio Maone »

Sergey wrote:i have the same problem with flashgot and name or directory in russian language
It cannot be the original problem (which, BTW, has been elegantly solved in the built-in wGet definition by executing the batch download in a terminal by default).
Could you give a few more details?
Which download manager are you using?
Steps to reproduce?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply