View Single Post

   
  #6 (permalink)  
Old 02-19-2008, 11:58 AM
Jesse F. Hughes
 
Posts: n/a
Default Re: Stupid question regarding btdownloadxterm.sh

Georg Neis <georg@fli4l.de> writes:

> * Georg Neis <georg@fli4l.de> wrote:
>> Okay, I understand the problem. I tested with Mozilla Firefox and
>> it took the proper filename. You could use btshowmetainfo.py to
>> extract a (hopefully) useful name from the torrent file:
>>
>> $ btshowmetainfo.py ~/BitTorrent/slackware-9.1-source-d3.torrent
>> btshowmetainfo 20021207 - decode BitTorrent metainfo files
>>
>> metainfo file.: slackware-9.1-source-d3.torrent

>
> Damn! That's always the name of the file we are looking at...
>
>> info hash.....: f67fdc4888fbdfff80c76d3ffd5d212f512efd74
>> directory name: slackware-9.1-iso
>> files.........:
>> slackware-9.1-source-d3.iso (689995776)
>> slackware-9.1-source-d3.iso.asc (189)
>> slackware-9.1-source-d3.iso.md5 (62)
>> archive size..: 689996027 (2632 * 262144 + 33019)
>> announce url..: http://transamrit.net:8082/announce

>
> Hmm, you could extract the name from the "directory name" line but
> not every torrent file has such a line, e.g.:
>
> metainfo file.: sdfsdf.torrent
> info hash.....: 323423842034982304234239487234247923293487
> file name.....: dfjasdfjasdl.mpg
> file size.....: 426475212 (406 * 1048576 + 753356)
> announce url..: http://foo.bar
>
> Maybe you give Firefox a try? ;-)


Well, thanks for the pointer to btshowmetainfo.py. I had overlooked
that tool. The files in which I'm interested probably have just one
file in them, so it would be reasonable to take the "file name" data
in that case.

I wonder if it's true that every torrent has either a directory name
or a file name. Hey! Yep. It looks like that's the case according
to <http://wiki.theory.org/index.php/BitTorrentSpecification>.

Thanks much. This will work just peachy.

--
"Come on people!!! The US just blew up a lot of people in Iraq, don't
you realize that a person with my exposure might just end up dead, by
mysterious circumstances?"
--James Harris, on the dangers of "proving" Fermat's last theorem
Reply With Quote