| View previous topic :: View next topic |
| Author |
Message |
Dellow
Joined: 11 Oct 2007 Posts: 26
|
Posted: Aug 19, 2009 8:55 am Post subject: MP3 player does not work with Arabic file name - any idea? |
|
|
Hello,
Flash MP3 pleyr does not work with Arabic file name.
I don't like to enable Sanitize filename option to replace all letters except a-z0-9-. with underline , because the file link will be like this :
| Code: |
http://site.com/0emst9y/___________________2_.mp3.html
|
Which i don't like.
So any one have idea for this issue ? |
|
| Back to top |
|
 |
ankurs
Joined: 10 Mar 2009 Posts: 515
|
Posted: Aug 19, 2009 11:59 am Post subject: |
|
|
| flash doesn't support some special characters , you will have to sanitize it |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 19, 2009 12:55 pm Post subject: |
|
|
Here goes quick hack: in index.cgi find this part part of code:
| Code: | if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*10 && !$file->{message})
{
my $res = $ses->api($file->{srv_cgi_url},
{
op => 'gen_link',
file_id => $file->{file_real_id}||$file->{file_id},
file_code => $file->{file_real},
file_name => $file->{file_name}, |
and replace
with
|
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 19, 2009 1:09 pm Post subject: |
|
|
Also do same replace in line
| Code: | | $file->{song_url} = "$file->{srv_htdocs_url}/$ddcode/$file->{file_name}"; |
|
|
| Back to top |
|
 |
Dellow
Joined: 11 Oct 2007 Posts: 26
|
Posted: Aug 22, 2009 8:32 am Post subject: |
|
|
WOW good idea.. i hope this resolve my and others problem.
but i made the modification that give , but seems not working for me. and even the file name uploaded as numbers.mp3.
i think still somthing missing... |
|
| Back to top |
|
 |
Dellow
Joined: 11 Oct 2007 Posts: 26
|
Posted: Aug 25, 2009 9:25 am Post subject: |
|
|
No chance to resolve this isseu ?  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 25, 2009 10:23 am Post subject: |
|
|
| PM me FTP access, will do quickly. |
|
| Back to top |
|
 |
Dellow
Joined: 11 Oct 2007 Posts: 26
|
Posted: Aug 26, 2009 12:49 pm Post subject: |
|
|
Great, Works thank you PilgrimX182...
This hack will be lost in next version and we will need it again unless you include it by default in next version. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 26, 2009 3:11 pm Post subject: |
|
|
| Yea, already fixed it in upcoming version. |
|
| Back to top |
|
 |
|