bennysce Posted May 12, 2013 Report Share Posted May 12, 2013 I have a script that unpacks torrents onto a network drive when they're done. The problem is: when torrents don't have a folder the script on Run Program tries to unpack EVERYTHING in the download destination. Is there a way to force a folder around the downloaded file or is there a better solution I haven't thought of?I noticed the option "create folder" if I made utorrent ask me for location every time but I'd like this to be automatic so utorrent makes sure no files are downloaded to the download root but are put into folders without me confirming it for every download. Link to comment Share on other sites More sharing options...
ciaobaby Posted May 12, 2013 Report Share Posted May 12, 2013 Code your script to add a parent folder if one is not passed in the parameters. Link to comment Share on other sites More sharing options...
bennysce Posted May 12, 2013 Author Report Share Posted May 12, 2013 Well it's not really a script, sorry for the confusion. I'm passing it to 7-zip.D:\Program\7-Zip\7z.exe x -y %D -oZ:This extracts a download to Z:This runs on everything since it's in the Run Program section of uTorrent. The problem occurs when the torrent isn't packed but say just a mkv-file. It will try to unpack it but since its not packed it tries to extract the entire download folder. Link to comment Share on other sites More sharing options...
rafi Posted May 12, 2013 Report Share Posted May 12, 2013 see my sample script in my tips,in 3.4 you'll be able to use labels as well, maybe as destination folder too. ask the devs...Code your script to add a parent folder if one is not passed in the parameters.And never be able to seed it ? No sir Link to comment Share on other sites More sharing options...
ciaobaby Posted May 12, 2013 Report Share Posted May 12, 2013 What does creating a folder for THE EXTRACTED FILES have to do with not being able to continue to seed the .rar archive????? Link to comment Share on other sites More sharing options...
bennysce Posted May 13, 2013 Author Report Share Posted May 13, 2013 I will have a look at your script rafi. thanks.ciaobaby, like I said, the problem is when the torrent downloaded is NOT a rar-archive but a plain file and the "Run Program" line runs anyway. Link to comment Share on other sites More sharing options...
ciaobaby Posted May 13, 2013 Report Share Posted May 13, 2013 ciaobaby, like I said, the problem is when the torrent downloaded is NOT a rar-archive but a plain file and the "Run Program" line runs anyway.So NOT quite what it says in your first post then!Which IS of course is the one I was replying to originally. Link to comment Share on other sites More sharing options...
bennysce Posted May 13, 2013 Author Report Share Posted May 13, 2013 Actually it is what I meant with what I wrote but reading the first post again I admit it wasn't clear enough. rafi: I checked your script and from what I understand it does the same thing as mine only with winrar instead of 7-zip?The question remains though! Can you force utorrent to create a new folder for each download IF it doesn't contain one itself so single unpacked files isn't downloaded directoly to the download folder. Hope my intention was a bit clearer now. Link to comment Share on other sites More sharing options...
ciaobaby Posted May 13, 2013 Report Share Posted May 13, 2013 Can you force utorrent to create a new folder for each download IF it doesn't contain oneYep Link to comment Share on other sites More sharing options...
rafi Posted May 13, 2013 Report Share Posted May 13, 2013 rafi: I checked your script and from what I understand it does the same thing as mine only with winrar instead of 7-zip?No, It also checks and runs mostly on archives "types" files. Yep The question related to unattended downloads... Link to comment Share on other sites More sharing options...
bennysce Posted May 14, 2013 Author Report Share Posted May 14, 2013 Hmm ok that should work. I wonder if 7-zip has a switch like that. I don't want winrar on my computer. I'm annoyed by it's trial message I'll have to check. Link to comment Share on other sites More sharing options...
rafi Posted May 14, 2013 Report Share Posted May 14, 2013 It has nothing to do with 7zip or winrar. It's the IF cmd file filter/command ... Link to comment Share on other sites More sharing options...
bennysce Posted May 15, 2013 Author Report Share Posted May 15, 2013 ok sorry I checked your script again.solved it! added \*.r* to %D like you did. now it only unpacks when you actually download a folder with rar files! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.