xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

Dont'move, rename only #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I really would an option to rename files locally, i do not want make a copy of 
them.

Original issue reported on code.google.com by login...@gmail.com on 8 Nov 2011 at 11:42

GoogleCodeExporter commented 8 years ago
I'll need more information on this
This already is supposed to be the default comportment in destructive mode 
(which can be activated in the settings file)
In this mode compressed files are expanded to the destination folder but other 
files are directly moved to the destination folder.
Please let me know if this is not what happens with your setup or if this is 
not what you meant by renaming files locally.
Thanks for your interest in torrentexpander

Original comment by addicted...@gmail.com on 8 Nov 2011 at 11:03

GoogleCodeExporter commented 8 years ago
Ok, i try to exaplain better.
I do not want to use a 'destination folder'. I want to let renemed files (and 
expanded files) in their own directory. 

Original comment by login...@gmail.com on 9 Nov 2011 at 5:36

GoogleCodeExporter commented 8 years ago
It should be pretty straightforward now that the whole script runs in a temp 
folder.
I'll need to make sure nothing can be wrong when switching to this optional 
mode and then I'll edit the check routine to allow that.

Original comment by addicted...@gmail.com on 12 Nov 2011 at 10:18

GoogleCodeExporter commented 8 years ago
I think I checked everything
Everything seems to work fine
You just need to define your destination folder to be the same as where your 
torrents are located and turn destructive_mode to yes
This functionality is already included in the script you currently have

Please let me know if it world  for you

Original comment by addicted...@gmail.com on 13 Nov 2011 at 1:15

GoogleCodeExporter commented 8 years ago
Yes, it works. Good.
I have only a question.
Consider two files:
One.Day.2011.iTALiAN.MD.BDRip.XviD-TNZ.avi
One.Day.2011.iTALiAN.MD.R5.XviD-TNZ.avi
When the script acts on these, they will have the same output name.
What script does to avoid name conflict?

Original comment by login...@gmail.com on 14 Nov 2011 at 12:35

GoogleCodeExporter commented 8 years ago
The comportment I intended for torrentexpander was to be cp -f and mv -f
This means the original file is replaced without asking any confirmation
This script is supposed to be run without user interaction, so I think that's 
the best way.

This issue report pointed me in the direction of a bunch of cp and mv that 
weren't followed by -f. I think I solved it in SVN r84 and I hope I didn't 
forget any.

Thanks

Original comment by addicted...@gmail.com on 22 Nov 2011 at 10:57

GoogleCodeExporter commented 8 years ago
Added collision handling in destination_folder. First item will be named 
"item", second one will be named "item [2]", and so on
This works for single file torrents and also multi files torrents
Give the last SVN a try and let me know how that works for you

Original comment by addicted...@gmail.com on 26 Nov 2011 at 11:04

GoogleCodeExporter commented 8 years ago

Original comment by addicted...@gmail.com on 27 Nov 2011 at 6:23