MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
how to set mldonkey as the default downloader in opera

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Windows
View previous topic :: View next topic  
Author Message
jsntyyl
neophyte


Joined: 24 May 2010
Posts: 11

PostPosted: Tue May 25, 2010 11:51 am    Post subject: how to set mldonkey as the default downloader in opera Reply with quote

Question i seach it, and i found the link:http://mldonkey.sourceforge.net/Browser_Integration#Opera
Quote:
Windows

In the root folder of the Opera installation (most probably C:\Program Files\Opera7) find the file 'opera6.ini'.

+Add in this file under ~~User Prefs
TrustedExternalURLProtocols=ed2k

Find the same file in the subfolder 'profile' (most probably C:\Program Files\Opera7\profile).

+Add in this file under ~~Trusted Protocols
ed2k<code>0,0,opera.EXE ~http://admin:@127.0.0.1:4080/submit?q</code>dllink+%1

And you are ready to click your favourite Ed2k links.

_(by White FrosT, only tested on Opera 7+)_


As a Side note with the particular version of opera I have (7.21) I had to use the following:
~[[~User Prefs]]
TrustedExternalURLProtocols=ed2k
...
~[[~Trusted Protocols]]
ed2k=0,0, /usr/bin/ed2kopera %u

and nc -q wasn't valid so i changed that in the script above to nc -i

_/cotyer_

but, the question is that the version of opera now is 10.53, so how to set mldonkey as the default downloader in opera 10.53? i tried many ways, but failed.

forgive my poor english, hope u can understand what i am saying.


Last edited by jsntyyl on Thu May 27, 2010 1:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Tue May 25, 2010 4:10 pm    Post subject: Reply with quote

Go to Tools -- Preferences -- Advanced -- Programs. Click Add and input protocol ed2k, choose action open with other application and input /home/user/test.cmd. Close all dialogs with Ok.

On Unix :
Create /home/user/test.cmd
Code:

#! /bin/bash
opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+$1)"

Make it executbale with chmod a+x /home/user/test.sh.

On windows :
Choose the appropriate path for the script e.g. C:\test.cmd .
Code:

opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+%1)"


First try it from command line /home/user/test.cmd qqqq. Opera should open mldonkey page.

PS wiki definitely should be updated
Back to top
View user's profile Send private message Visit poster's website
jsntyyl
neophyte


Joined: 24 May 2010
Posts: 11

PostPosted: Thu May 27, 2010 1:15 pm    Post subject: Reply with quote

ygrek wrote:
Go to Tools -- Preferences -- Advanced -- Programs. Click Add and input protocol ed2k, choose action open with other application and input /home/user/test.cmd. Close all dialogs with Ok.

On Unix :
Create /home/user/test.cmd
Code:

#! /bin/bash
opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+$1)"

Make it executbale with chmod a+x /home/user/test.sh.

On windows :
Choose the appropriate path for the script e.g. C:\test.cmd .
Code:

opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+%1)"


First try it from command line /home/user/test.cmd qqqq. Opera should open mldonkey page.

PS wiki definitely should be updated


i tried the way u told me, but i failed again.
i copy the code into a .cmd file and run it, the opera can run successfully, but the page showed is speed dial, not the mldonkey web interface.
anyway, thank u for the answer. Very Happy

today, i found a new problem, maybe it's a bug? please click this link:http://mldonkey.sourceforge.net/forums/viewtopic.php?p=30358#30358
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Thu May 27, 2010 2:47 pm    Post subject: Reply with quote

Quote:
i copy the code into a .cmd file and run it, the opera can run successfully, but the page showed is speed dial, not the mldonkey web interface.

What happens if you launch cmd.exe and manually run
opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+qqqq)"
Where is mldonkey installed - i.e. is http://127.0.0.1:4080/ a correct web interface url ?
Back to top
View user's profile Send private message Visit poster's website
jsntyyl
neophyte


Joined: 24 May 2010
Posts: 11

PostPosted: Fri May 28, 2010 3:20 pm    Post subject: Reply with quote

ygrek wrote:
Quote:
i copy the code into a .cmd file and run it, the opera can run successfully, but the page showed is speed dial, not the mldonkey web interface.

What happens if you launch cmd.exe and manually run
opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+qqqq)"
Where is mldonkey installed - i.e. is http://127.0.0.1:4080/ a correct web interface url ?


launch cmd.exe and manually run
opera --remote "openURL(http://admin:@127.0.0.1:4080/submit?q=dllink+qqqq)", the result is speed dial.
after this, i try to use firefox.exe instead of opera.exe, and have a same reasult(blank page).
i have not change the port, http://127.0.0.1:4080/ is a correct url, i can enter the mldonkey web interface.
Back to top
View user's profile Send private message
White_FrosT
skilled


Joined: 02 Sep 2003
Posts: 422

PostPosted: Sun May 30, 2010 8:26 pm    Post subject: Reply with quote

OMG, so long ago since I visited these forums and I even see some of my work....

Since I made the original contribution, let me see if I can adapt it for the version 10 series of Opera. Or to steal someones words: I'll be back!

Edit:
First try,
- ctrl-F12 (preferences)
- Programs
- Add
- protocol: ed2k, open with other application: opera.exe
- parameters: http://admin:@127.0.0.1:4080/submit?q=dllink+%1

But the 'ed2k://' slashes (no, not the guitar player) mess up the URL. So it doesn't work. It would if somehow we could encode them?
Back to top
View user's profile Send private message
jsntyyl
neophyte


Joined: 24 May 2010
Posts: 11

PostPosted: Mon May 31, 2010 3:08 pm    Post subject: Reply with quote

White_FrosT wrote:
OMG, so long ago since I visited these forums and I even see some of my work....

Since I made the original contribution, let me see if I can adapt it for the version 10 series of Opera. Or to steal someones words: I'll be back!

Edit:
First try,
- ctrl-F12 (preferences)
- Programs
- Add
- protocol: ed2k, open with other application: opera.exe
- parameters: http://admin:@127.0.0.1:4080/submit?q=dllink+%1

But the 'ed2k://' slashes (no, not the guitar player) mess up the URL. So it doesn't work. It would if somehow we could encode them?


sorry again, it doesn't work too.

when i click a ed2k link, opera will open a new tab with the link "http://admin:*****@127.0.0.1:4080/submit?q=dllink+ed2k://|file|%5B'%8B%F6%5D.Newsmakers.2009.BDRip.480p.x264.AC3-CHD.nfo|7105|d3e04773a8ce065d2cb45756eb5896a3|h=ver53cttfcox3ry3uzppgl65qkfamb7f|/", and page says:

404 Not found
The requested URL / was not found on this server.
MLDonkey/3.0.2 at 127.0.0.1 Port 4080

maybe it's a bug of opera? because there is some bug(s) in their final release. such as "Use automatic proxy configuration". it doesn't work well in opera v.10.53
Back to top
View user's profile Send private message
White_FrosT
skilled


Joined: 02 Sep 2003
Posts: 422

PostPosted: Mon May 31, 2010 5:53 pm    Post subject: Reply with quote

Hi jsntyyl,

The problem is that you cannot encode the slashes ed2k://, because now Opera will mistake these double slashes for a protocol definition like http://

This is correct actually, does anyone know a way to convert the slashes to %2F%2F ?
Back to top
View user's profile Send private message
jsntyyl
neophyte


Joined: 24 May 2010
Posts: 11

PostPosted: Tue Jun 01, 2010 2:04 pm    Post subject: Reply with quote

White_FrosT wrote:
Hi jsntyyl,

The problem is that you cannot encode the slashes ed2k://, because now Opera will mistake these double slashes for a protocol definition like http://

This is correct actually, does anyone know a way to convert the slashes to %2F%2F ?


now, i see. and thanks everyboby. ctrl c, ctrl v is good too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Windows All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo