In the event that more then one NFO or SFV is uploaded, what would you like the script to do then? This would be a problem with "spam/tag" NFOs that are uploaded.
What about only renaming the NFO to the directory name if the group suffix matches the filename. For example:
1. The directory /Blah/Something.Cool-ABC is created.
2. 123.nfo and ABC.nfo and are uploaded to that directory.
3. ABC.nfo is renamed to Something.Cool-ABC.nfo since it matches the group suffix (ie. /Blah/Something.Cool-ABC).
|