single files out of a multi file torrent

Asked by Patrik Plihal

Hi,
qBittorrent allocates 100 % even if i select only one single file to be loaded,
and it would be nice if I happen to load single files, the "size" would be changed to the actual size which I am loading and not the overall torrent size, of course if it is possible.
Further I'd like to know if the percentage in the loading screen refers to the whole size or if i load single files out of multi torrents (as is still shows the whole torrent GBs) to the sum of the single files.

GER: Hi, es geht generell um das Laden einzelner Dateien aus einem MUlti-Datei-torrent:
1. ist der prozentbalken auf den ganzen torrent oder nur auf die summe der zu ladenden Teile bezogen
2. Es wäre toll wenn neben der GesamtGröße auch die zu Ladende Größe ersichtlich wäre
3. bei mir "allociert"/reserviert qBittorent alle dateien aus dem Torrent vor (was ziemlich bald meine HDD füllt) obwohl ich eigentlich nur die ersten zwei will.

I appreciate your work very much, please proceed in this way.

Patrik

Question information

Language:
English Edit question
Status:
Solved
For:
qBittorrent Edit question
Assignee:
No assignee Edit question
Solved by:
Patrik Plihal
Solved:
Last query:
Last reply:
Revision history for this message
Christophe Dumez (hydr0g3n) said :
#1

Hi,

in fact, qBittorrent usually use compact allocation mode as a default (doesn't allocate 100% since the beginning of the download). However, if you unselect some files in a torrent then the torrent will switch in ful allocation mode because of a libtorrent limitation that will probably be fixed in the future. If it allocates 100% although you didn't filter any files in the torrent then this is a bug and this should be reported.

Concerning the progress in the download list, it refers to the progress of the selected files only. Not to the whole torrent. The size indeed still refers to the whole torrent size, I guess I could fix this.

Revision history for this message
Patrik Plihal (birdspider) said :
#2

Hi,

so far so good, i managed that it wont allocate 100% (i think) (by pressing load first files first, so I can download the single files i mentioned before),
I tested a different torrent file, searched via integrated search -> i couldn't decide which to download qB added the torrent straight away, so i clicked on properties and disabled all but the first four.
I switched to the corresponding folder and .. there (i had to refresh a few times and saw them grow :) ) but i definitely wrote a fifth file. which I did unselect.

I cant reproduce the effect of correct loading when enabling "load first files first",

conclusion: i will report this behaviour as a bug after I testet some more without integrated search, maybe I find some clues

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#3

You said:
"-> i couldn't decide which to download qB added the torrent straight away, so i clicked on properties and disabled all but the first four."

Just activate the torrent addition dialog in program preferences.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#4

Libtorrent doesn't support partial torrent downloading in compact allocation mode yet. This is not a bug because the unselected files won't be really downloaded. However, they will appear on the hard-drive at their final size (filled with zeros). I asked libtorrent author about this but this is not a priority for him.

Revision history for this message
Best Patrik Plihal (birdspider) said :
#5

ah ok .. thats with the partial downloading ...
and about the torrent addition dialog -> is there no possibility to have a prompt every time you add a torrent AND declare a default folder (since they gray each other out in the prefs)

basicly my questions are hereby answered ^_^

Revision history for this message
swi (swi) said :
#6

"However, they will appear on the hard-drive at their final size (filled with zeros). I asked libtorrent author about this but this is not a priority for him."
Well, I'v maintain qbittorent in ALTLinux and some times ago switch to it as primary torrent client for myself. Right before that i'v use ktorrent. And you know - there is no such problem in ktorrent with partial download. May be it will be a good reason for quthor of libtorrent ? ;)

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#7

This is already fixed in libtorrent and qBittorrent v1.0.0. Where did you find this sentence? it is outdated and it should be fixed.

Revision history for this message
swi (swi) said :
#8

http://img455.imageshack.us/my.php?image=qb4cs5.png

samurai@home downloads/qbittorrent/Tengen_Toppa_Gurren_Lagann_1-25-HD $ ls -1
[SS-anon]_Tengen_Toppa_Gurren_Lagan_-_15_[1280x720][h264] AAC.mkv
[SS-BSS]_Tengen_Toppa_Gurren_Lagann_-_16_[1280x720][x264] AAC.mkv
[SS-BSS]_Tengen_Toppa_Gurren_Lagann_-_17_[1280x720][x264] AAC.mkv

I'v asking to download only 16th episode.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#9

Yes I'm aware of this. But you have to admit that all the other episodes do
not appear (which is way better). Your result here is due to the pieces of
the torrent. All the torrents are splitted into pieces (their size is
variable) and libtorrent can filter pieces, not files. The problem is that a
piece may contain parts of two files (for exemple here, you have a piece
that contain the end of 15 and beginning of 16 : we cannot filter this piece
because otherwise, the beginning of 16 would be missing.

I told libtorrent author that it is unperfect but he just told me that
libtorrent just can't filter parts of a piece. I'll ask him again soon,
always good to keep some pressure on developpers :p

On 11/5/07, swi <email address hidden> wrote:
>
> Question #4885 on qBittorrent changed:
> https://answers.launchpad.net/qbittorrent/+question/4885
>
> swi posted a new comment:
> http://img455.imageshack.us/my.php?image=qb4cs5.png
>
> samurai@home downloads/qbittorrent/Tengen_Toppa_Gurren_Lagann_1-25-HD $ ls
> -1
> [SS-anon]_Tengen_Toppa_Gurren_Lagan_-_15_[1280x720][h264] AAC.mkv
> [SS-BSS]_Tengen_Toppa_Gurren_Lagann_-_16_[1280x720][x264] AAC.mkv
> [SS-BSS]_Tengen_Toppa_Gurren_Lagann_-_17_[1280x720][x264] AAC.mkv
>
> I'v asking to download only 16th episode.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
swi (swi) said :
#10

Yeah! Pressure! :) Tell him that in ktorrent this problem handle much better (i.e. there may be ignored files on disk, but they 0 length )

Revision history for this message
swi (swi) said :
#11

oh yeah... and beside ktorrent there is Azureus and mTorrent :) And I hope qbittorent someday will be in the top3 of all archs :)