[kde] Re: How KTorrent commanded to download a file sequentially

2011-05-22 Thread Duncan
giovanni_re posted on Sun, 22 May 2011 01:11:28 -0700 as excerpted:

 A)  How can KTorrent be commanded to download a file sequentially
 (without gaps), rather than pieces distributed randomly throughout the
 file?
 
 B)  How can KT be told:
 1) at first, only download on torrent1 until it is completely dl'd.
 2) then, switch to dl'ing 5 torrents simultaneously

 Using KT 3.3.4 on kde 4.4.5 in KUbuntu 10.04.
 
 Maybe these things are fixed in KT 4?  - which I'll have hopefully
 shortly when I upgrade to KU 11.04.
 
 =
 also, when I do Help  KTorrent handbook, it gives the popup error
 message: The file or folder help:/ktorrent/index.html does not exist.
 
 Is there none, or is this maybe a KUbuntu packaging problem?

Caveat:  I have ktorrent 4.1.1 (on kde 4.6.3) installed here, on Gentoo, 
but I torrent rarely enough that I don't know the application particularly 
well.  (FWIW, I'm a reasonably heavy newsgroup/usenet user and probably 
never got into torrenting as the newsgroups kept me busy.  But I've used 
torrents for distribution ISOs and the occasional specific archive I've 
read about somewhere, like the 17-gig archive of myspace private photos 
someone grabbed and torrented at one point, at times.)

There's a handbook that says 4.0 included, but it's not much of one.  
It's basically a single intro page with one-line descriptions of some of 
the features, plus links to the homepage, (online) handbook, forum, wiki, 
and the general kde forums.

According to the homepage, 4.0 was the feature release after 3.3.4, and 
4.1 after that.  4.0 included magnet and uTP protocol (torrenting over UDP 
instead of TCP) support.  4.1 included superseeding support and a kio-
magnet kioslave.  There's also a UI redesign to make better use of kparts, 
and **VIDEO-STREAMING**, watch a movie as it's downloading.

That video-streaming bit should pertains to your sequential download 
question, as watching the movie in random order probably wouldn't be all 
that satisfying an experience.  =:^P

For the second question, download one torrent first, then switch to five-
at-once, I suspect you'd have to use the scripting interface to change the 
setup to fie-at-a-time once the script gets the download-finished event on 
the first torrent.  However, as I said, I'm definitely not an expert, and 
it may actually be possible using torrent priority too, if it's possible 
to set the first one at higher priority then the five others at the same 
priority lower than the first.

FWIW, the links...

homepage:   http://ktorrent.org/

handbook/wiki:  http://ktorrent.org/wiki/index.php/Main_Page

ktorrent forum: http://ktorrent.org/forum/

-- 
Duncan - List replies preferred.   No HTML msgs.
Every nonfree program has a lord, a master --
and if you use the program, he is your master.  Richard Stallman

___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[kde] Re: How KTorrent commanded to download a file sequentially

2011-05-22 Thread gene heskett
On Sunday, May 22, 2011 06:46:50 AM giovanni_re did opine:

 A)  How can KTorrent be commanded to download a file sequentially
 (without gaps), rather than pieces distributed randomly throughout the
 file?

That is how he torrent protocol works.  You are asking for an ftp style 
pull.  Torrents are generally pre-allocated on disk which reduces file 
fragmentation.  One thing I always do is when the gui says 100%, I stop it 
from the menu stop, verify that there are no processes left, and restart 
it, which causes the engine to recheck the download and fix any errors.

 B)  How can KT be told:
 1) at first, only download on torrent1 until it is completely dl'd.
 2) then, switch to dl'ing 5 torrents simultaneously

That I can't answer.  I do know there is some scripting ability, but its 
defaults have always Just Worked(TM) for me.  Some of its earlier gui's 
were a disaster, but the torrent engine worked fine.

[...]

-- 
Cheers, Gene
There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order.
-Ed Howdershelt (Author)
http://tinyurl.com/ddg5bz
http://www.cantrip.org/gatto.html
How can you think and hit at the same time?
-- Yogi Berra
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[kde] Re: How KTorrent commanded to download a file sequentially

2011-05-22 Thread Boyd Stephen Smith Jr.
In 201105220658.33822.ghesk...@wdtv.com, gene heskett wrote:
On Sunday, May 22, 2011 06:46:50 AM giovanni_re did opine:
 A)  How can KTorrent be commanded to download a file sequentially
 (without gaps), rather than pieces distributed randomly throughout the
 file?

That is how he torrent protocol works.  You are asking for an ftp style
pull.  Torrents are generally pre-allocated on disk which reduces file
fragmentation.  One thing I always do is when the gui says 100%, I stop it
from the menu stop, verify that there are no processes left, and restart
it, which causes the engine to recheck the download and fix any errors.

KTorrent for KDE 3 (can't remember the version) had a per-torrent operation to 
prefer early chunks when your client gets a choice.  This doesn't guarantee 
you get things completely in order, but it can (for example) get you enough 
headers for certain file types to get the metadata / preview / etc. earlier.

Yes, the torrent protocol doesn't really allow for in-order downloads exactly, 
but your client can request certain chunks first.

 B)  How can KT be told:
 1) at first, only download on torrent1 until it is completely dl'd.
 2) then, switch to dl'ing 5 torrents simultaneously

That I can't answer.  I do know there is some scripting ability, but its
defaults have always Just Worked(TM) for me.  Some of its earlier gui's
were a disaster, but the torrent engine worked fine.

I don't know a way to catch the notification that a torrent has been 
completed, but all the torrents and be stopped, started, and their status 
queried using the DBus interface in the most recent KTorrent versions.

So, you might be able to write a script to do what you want by regularly 
polling KTorrent.

The scheduler plug-in does time-based bandwidth restrictions (including 
stopping / starting all torrents), but it can't handle this particular use 
case.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


signature.asc
Description: This is a digitally signed message part.
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.