#2211: Cannot disable downloading of individual files
----------------------+-----------------------------------------------------
 Reporter:  atrigent  |       Owner:  gazpachoking
     Type:  bug       |      Status:  accepted    
 Priority:  minor     |   Milestone:  1.4.0       
Component:  other     |     Version:  git master  
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by atrigent):

 Let's try that again.

 {{{
 --- a/deluge/core/torrent.py     2012-11-13 03:43:17.050561338 -0500
 +++ b/deluge/core/torrent.py     2012-11-13 03:36:18.000000000 -0500
 @@ -315,7 +315,7 @@
              for n in range(ti.num_pieces()):
                  slices = ti.map_block(n, 0, ti.piece_size(n))
                  for slice in slices:
 -                    if self.handle.file_priority(slice.file_index):
 +                    if self.handle.file_priorities()[slice.file_index]:
                          paths.setdefault(slice.file_index, []).append(n)

              priorities = self.handle.piece_priorities()

 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2211#comment:6>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to