persepolisdm / persepolis

Persepolis Download Manager is a GUI for aria2.
https://persepolisdm.github.io
GNU General Public License v3.0
6.13k stars 649 forks source link

Wrong Cuts in Filename #881

Closed plutocholia closed 2 years ago

plutocholia commented 2 years ago

System Details:

Issue Description and steps to reproduce: Hello, It's been a while since I felt something was wrong with file names which Persepolis attaches to links; Persepolis automatically removes the first and last character of file name in some cases, for instance:

ubuntu: image_2021-09-12_17-56-07

arco: persepolis-filename-bug

file names must be something like TheTatami###.mkv but as you can see it removes "T" from the first character and "v" from the last

one of the links is:

https://eu.cdn.cloudam.xyz/dl/1/139387/587240/368169/168.119.100.10/3066c9438e20fb44b2ad419be9d756f120/series/the_tatami_galaxy/The_Tatami_Galaxy_S01E02_1080p_WEB-DL_30nama_30NAMA.mkv

or

https://eu.cdn.cloudam.xyz/dl/1/139387/621418/378980/168.119.100.10/30f8012df2f79bcbc68917df297f17be72/movies/n/No_Man_of_God_2021_720p_WEB-DL_YIFY_30NAMA.mp4

but in some cases it works well ("change File Name" checkbox is unchecked automatically) like: https://dl18.ftk.pw/user/shahab4/film/No.Man.of.God.2021.1080p.BluRay.Film2Movie_Asia.mkv

I also checked those links using Free Download Manager, and there were no issues. I don't know what exactly is happening since Persepolis offers (checks the "change File Name" checkbox automatically) changing file names for those long links.

Thanks