Lets forget just for 1 second about the clean up part of my script, so far, its working or not needed.
What I am intrested in is renaming obfuscated filenames, and since its hard to know whether it is or not, it would be ok to always rename the filename (obfuscated or not) with the collection name.
Right now all my (new) files go into the
same unrar directory, and they stay there until I have seen these TV eps. So 1 objective basically: only rename the
most recent download/unrared file with the collection name just after the unrar process,
without necessarily rename all the existing files in that folder.
Maybe the right way would be to do this in a separate empty "unrar" folder, perform the rename and then move renamed file into the final target destination.
Let me investigate but feel free to add your useful comments, I think I need to find the "move" (or copy delete) command