#4512 Groups-based custom locations over RPC

This commit is contained in:
Mitchell Livingston 2011-09-27 01:37:41 +00:00
parent fa4b43bb7d
commit d28941222d
1 changed files with 7 additions and 0 deletions

View File

@ -4190,6 +4190,13 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
Torrent * torrent = [[Torrent alloc] initWithTorrentStruct: torrentStruct location: location lib: fLib];
//change the location if the group calls for it (this has to wait until after the torrent is created)
if ([[GroupsController groups] usesCustomDownloadLocationForIndex: [torrent groupValue]])
{
location = [[GroupsController groups] customDownloadLocationForIndex: [torrent groupValue]];
[torrent changeDownloadFolderBeforeUsing: location];
}
[torrent update];
[fTorrents addObject: torrent];
[torrent release];