View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#124
Originally Posted by edoiks View Post
After some testing, app cannot download videos which name contain special character for example ". In terminal it outputs info about no write permission. I think it is due to file system (MyDocs partition is vfat, so names of files cannot contain special characters). It can be fixed by changing special chars to _ .

Does someone also noticed it?
The application does already remove special characters from the title, but I may have missed one. Can you give me some examples?

Here's the regex pattern that I'm using:

Code:
video.title.replace(/[@&~=\/:?#|]/g, "_") + ".mp4"
If anyone knows of any characters that I need to add, let me know.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub

Last edited by marxian; 2011-04-06 at 23:54.
 

The Following User Says Thank You to marxian For This Useful Post: