How to make sequential download in new versions?

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Shara
Posts: 1
Joined: Sun Jun 08, 2014 3:49 pm

How to make sequential download in new versions?

Post by Shara »

I need piece-ordered download for small (1-10mb) files via transmission-daemon, how can i make this feature? Yes, i know about p2p health dilemma.

Found this patch for older versions:

Code: Select all

10c10
<  * $Id: torrent.c 13080 2011-11-10 03:31:43Z jordan $
---
>  * $Id: torrent.c 12931 2011-09-28 16:06:19Z jordan $
624,638d623
< void correctPriority(tr_piece_index_t p, tr_info *inf)
< {
<     tr_priority_t priority;
<     if(p>=(inf->pieceCount/3)*2){
<         priority = TR_PRI_LOW;
<         inf->pieces[p].priority = priority;
<     }else if(p>=inf->pieceCount/3&&p<=(inf->pieceCount/3)*2){
<         priority = TR_PRI_NORMAL;
<         inf->pieces[p].priority = priority;
<     }else if(p<=inf->pieceCount/3||p==inf->pieceCount){
<         priority = TR_PRI_HIGH;
<         inf->pieces[p].priority = priority;
<     }
< }
< 
677,678c662,663
<     tr_priority_t priority;
<     for( p=0; p<inf->pieceCount; ++p ){
---
> 
>     for( p=0; p<inf->pieceCount; ++p )
680,683d664
<         
<         correctPriority(p, inf);     
<         
<     }
2778c2759
<     tr_mkdtemp( tmpdir );
---
>     mkdtemp( tmpdir );
Post Reply