https://bugs.gpodder.org/show_bug.cgi?id=1638

             Bug #: 1638
           Summary: Rename script can't handle filenames with '/'
    Classification: Unclassified
           Product: gPodder
           Version: 3.2.0
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: low
         Component: Hook Scripts
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


If the new filename contains slashes, the script fails to rename as it is
interpreted as directory specifier. 

Example:

put file "$PATH/A46574.mp3" should be renamed in "$PATH/Episode 2012/08/1.mp3":
then  "Episode 2012/08/1.mp3", the new file name, is interpreted as a
directory, which gives a runtime python error (no such file or directory).

I am not very good at python programming, but I quickly added this at line 41:

new_basename = new_basename.replace(" ", "_").replace("/", "-").replace("`",
"_")

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to