Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TV Episodes with "?" in title fail to rename #5

Closed
urbster1 opened this issue Jan 20, 2021 · 6 comments
Closed

TV Episodes with "?" in title fail to rename #5

urbster1 opened this issue Jan 20, 2021 · 6 comments

Comments

@urbster1
Copy link

urbster1 commented Jan 20, 2021

Using Linux Mint 20.1 with zsh, TV episodes with ? in the title error when renaming as follows:

    Error: Failed to rename file - Invalid argument
@urbster1
Copy link
Author

I should also note that ? is not valid for filenames in Linux Mint. I'm not sure whether that's an EXT4 restriction or not, but that character is not allowed.

@jamerst
Copy link
Owner

jamerst commented Jan 20, 2021

I haven't been able to reproduce this so far. The Lost S02E21 episode is titled "?" and that is able to rename just fine.

Please could you provide the following so I can try to reproduce it:

  • the details of the episode(s) you're not able to rename
  • the command you're running to invoke AutoTag

I'm able to name files with a question mark just fine on an ext4 filesystem, that's definitely not a restriction. I'm not using Mint, so I'll try running it in a live USB later, but I don't see any reason why Mint would change that. You're definitely writing to an ext4 filesystem and not NTFS?

@urbster1
Copy link
Author

urbster1 commented Jan 20, 2021 via email

@jamerst
Copy link
Owner

jamerst commented Jan 20, 2021

That's okay, it's an annoying issue, I encountered it myself before I moved my content over to a proper filesystem.

It's also a bit tricky to fix unfortunately. You can check the filesystem that a file is under, but under Linux it can only report it as a FUSE filesystem for an NTFS partition. There doesn't seem to be a way to easily check the actual underlying filesystem.

An NTFS partition is probably the only thing that will commonly be mounted in FUSE, so it's probably fairly safe to assume that any drive reported as FUSE is actually an NTFS partition and characters such as "?" and ":" should be removed.

@jamerst
Copy link
Owner

jamerst commented Jan 20, 2021

I've added a new option in v3.0.4, --windows-safe. That should remove any characters from file names that are invalid on Windows or NTFS when AutoTag is run under Linux.

@jamerst jamerst closed this as completed Jan 20, 2021
@urbster1
Copy link
Author

urbster1 commented Jan 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants