whyboris / Simplest-File-Renamer

Simplest file renamer - rename your files quickly and easily
https://www.yboris.dev/renamer
MIT License
99 stars 8 forks source link

filename like this [xxxxxx.vtt?language=en] not works #8

Open msongz opened 4 years ago

msongz commented 4 years ago

will rename to xxxxx.vtt.[ext]?language=en

whyboris commented 4 years ago

Sorry, the app expects normal file names and extensions, like xxxxx.vtt.

Just so I understand, your original file name was: xxxxxx.vtt?language=en And it got renamed to xxxxxx.vtt.[ext]?language=en ?

msongz commented 4 years ago

yeah,i want to rename the file from xxxxxx.vtt?language=en to xxxxxx.srt but it fail

whyboris commented 4 years ago

Thank you for clarifying!

The way I detect extensions is path.parse(file);

https://github.com/whyboris/Simplest-File-Renamer/blob/master/src/app/home/home.component.ts#L247

I'm unsure what's going wrong here. I'm currently more-eager to work on Video Hub App: https://github.com/whyboris/Video-Hub-App

Pull requests are welcome for fixing this edge case 🤝