Comment #38 on issue 160 by mordraug: ed2k: protocol should not encode |  
and =
http://code.google.com/p/chromium/issues/detail?id=160

I have developed a workaround for windows using batch files and a little  
replace
utility. Hopefully, better gifted scripters will simplify it, generalise  
it, and
develope linux versions.

For me, It's meant to launch amulecmd to send the ed2k link from my windows  
laptop to
my linux server.

I suppose that you have amule installed to listen to external connections  
on the
linux machine, and the client on windows to connect to the linux one (look  
for amule
howtos).

It also should not interfere with ed2k links launched from Firefox or  
Explorer.

So first, register the ed2k to launch the file:
C:\Program Files\aMule\ed2k_remote.bat
(For instructions, see http://wiki.amule.org/index.php/Ed2k_links_handling )

Second, download ReplaceStr:
* http://www.cylog.org/files/cmdline/rstr112.zip
* Instructions: http://www.cylog.org/tools/cmdline.jsp
And place replacestr.exe in C:\Program Files\aMule\

Third, create ed2k_remote.bat, with the following text (the text  
between "REM One
line" and "REM End one line", should be continously in one line):

rem -- START OF SCRIPT
@echo off
cd "c:\Program Files\aMule\"
set link=%1
for /f "useback tokens=*" %%a in ('%link%') do set link=%%~a
REM One line
echo "c:\Program Files\aMule\amulecmd.exe" /h ubuntuhost /P mypassword  
/c "add
%link%" >temp.bat
REM End one line
replacestr "%7C" "|" <temp.bat >temp2.bat
call temp2.bat
REM pause used to see error messages, remove if unneeded
@pause
REM --END OF SCRIPT--

Final sidenote: My honest opinion is that the program launched to treat  
ed2k links
(Emule, Amule, etc) should do this work represented here, since "|" is not  
a valid
URL character, and the correct behaviour is to encode it. It's not so  
difficult, and
%7C should have no other meaning for them.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to