podgrab icon indicating copy to clipboard operation
podgrab copied to clipboard

UTF-8 normalization

Open jtagcat opened this issue 2 years ago • 2 comments

Please complete the following information

  • Installation Type: Docker
  • Have you tried using the latest docker image / code base yes

To Reproduce Steps to reproduce the behavior:

  1. Add feed https://feeds.soundcloud.com/users/soundcloud:users:317878409/sounds.rss
  2. Filename of downloaded: Miljardi-dollari-küsimus-Timo-Rein.mp3
  3. Wanted: Miljardi-dollari-küsimus-Timo-Rein.mp3

(They are different to computers!)

Additional context Syncthing only syncs UTF-8 items. It's annoying elsewhere as well.

jtagcat avatar Apr 24 '22 09:04 jtagcat

Is there any specific reason you want to retain the exact file name? There is a rather strict name sanitization logic built so that downloading and saving doesnt break. The name is retained as is in the database as well as the feed that the system generates.

Can you share the use case with me?

akhilrex avatar Apr 25 '22 10:04 akhilrex

I don't want to retain the exact filename. I want the result to be UTF-8.

Right now:

  1. podgrab downloads file
  2. Syncthing renames it to UTF-8 (2. -> 3.)
  3. podgrab re-downloads the file
  4. conflict (2 files: Miljardi-dollari-küsimus-Timo-Rein.mp3 and Miljardi-dollari-küsimus-Timo-Rein.mp3 exist (they are different!))

jtagcat avatar Apr 25 '22 14:04 jtagcat