Re: [PLUG] Magnet links in linux?
Conor Schaefer on 29 Sep 2012 18:08:20 -0700
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Magnet links in linux?
- From: Conor Schaefer <conor.schaefer@gmail.com>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] Magnet links in linux?
- Date: 2012年9月29日 21:08:11 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=obn5/RtDEZHZXyIQbJGqMMdK5tDlaytb0leGilR+evw=; b=YuiMpnSmS1ngi66PCPrMGjRHme/T66ozii3nH0uyh4+yAovdRBX3yJ5F9el8t9qRXj NOtb7OIiIS7RTMWfkn3b5rjF4bwAvoWcenIYJAzR1H4zfHg+jYC04RoRaX7DVSkgV/NE wATvytMlFMYCWZI+zYQuBmkE9pnDZJfedMBBfeSTeqDKPOl/0dsxgX2Hbze4vxWXceqE 8tbw9vVbsNdlsDKRZln2sIq4PWYrMyCvqhQAp+oXTAYROf98VqwcQFdLUdFS2yFGvFfH GGtRAix0V16+Dt9Z8kSAHfMLZmV5Mq8iOT63cag0hQlLB5fpXGDZ8kxqoezIp40+w2Lr iHJA==
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
Are you sure the problem isn't just that your BT client doesn't support magnet URIs? I think that's more likely than the files just not downloading properly. Try setting this script as the default application to open magnet URIs:
#!/bin/bash
#script to convert magnet URIs to torrents
#from:
http://wiki.rtorrent.org/MagnetUri REMOTE_DIR='' #set location magnet file should be copied to
cd /tmp || exit #save magnet file locally to tmp, because it will be converted
[[ "1ドル" =~ xt=urn:btih:([^&/]+) ]] || exit
hashh=${BASH_REMATCH[1]}
if [[ "1ドル" =~ dn=([^&/]+) ]];then
ÂÂÂ filename=${BASH_REMATCH[1]}
else
ÂÂÂ filename=$hashh
fi
#echo "d10:magnet-uri${#1}:${1}e" > "meta-$filename.torrent" #print conversion for user
scp "meta-$filename.torrent" $REMOTE_DIR #move torrent file to remote watching directory;
Note that you'll have to fill in REMOTE_DIR. Although it doesn't have to be remote at all, just set it to wherever your watch folder is, otherwise just change the last line of the script to open your BT client with the new file that was created.
On Sat, Sep 29, 2012 at 8:58 PM, Adam Zion
<azion1995@gmail.com> wrote:
Odd problem. While normal Torrents have always downloaded correctly
for me on whatever version of linux I use- I have Linux Mint Debian
Edition on my home desktop + Crunchbang! Statler on my notebook-
Magnet links don't. They open in the client, and then don't download.
Meanwhile, when I boot my notebook into- <cough>- Win 7, it downloads
the Magnet links correctly, so I know it's not a firewall setting on
the router.
Does anyone know the secret incantation or correct ports to open to
download Magnet links in linux?
-Z
--
Adam+Zion,MSIS, MCSE+I, Registered Linux User #471910
___________________________________________________________________________
Philadelphia Linux Users Group     --    Âhttp://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion Â-- Â http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug