Ton-O / transmisson-remote-gui

Automatically exported from code.google.com/p/transmisson-remote-gui
GNU General Public License v2.0
0 stars 0 forks source link

When unselecting all files from a torrent they get all selected #677

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get a file list from a torrent
2. Make all files unselected ( ['selected']=False )
3. Update andd get the file list, they are all selected.

These is caused by sending the wanted array empty, with transmission 
understands as all files.

Can be fixed by replacing:
args = {
    'timeout': timeout,
    'files_wanted': wanted,
    'files_unwanted': unwanted,
}
with:
args = {'timeout': timeout}
if len(wanted) > 0:
    args['files_wanted'] = wanted
if len(unwanted) > 0:
    args['files_unwanted'] = unwanted
if len(high) > 0:

Original issue reported on code.google.com by camara-p...@hotmail.com on 17 Jul 2013 at 10:39

GoogleCodeExporter commented 9 years ago
Ignore this, wrong project.

Original comment by camara-p...@hotmail.com on 17 Jul 2013 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by j...@cp-lab.com on 28 Aug 2013 at 1:43