| View previous topic :: View next topic |
| Author |
Message |
amator
Joined: 01 Dec 2010 Posts: 48
|
Posted: Dec 02, 2010 5:21 pm Post subject: mp3 player for large files? |
|
|
Hi,
XFileSharing Pro is set a limit playback of mp3 files? For MP3 files ~ 10 MB player is available, for MP3 files ~ 18 MB player is not available. Why? |
|
| Back to top |
|
 |
blwire
Joined: 28 Aug 2009 Posts: 9
|
Posted: Dec 21, 2010 10:31 pm Post subject: |
|
|
| bump. i've got the same bug. Can we modify something on our own installs to allow the mp3 mod to work for large mp3s? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Dec 22, 2010 9:26 am Post subject: |
|
|
It's not the bug. It's special limit so bad user won't upload 1.3GB AVI renamed to .mp3, cause direct links for mp3 could be parsed from site without waiting or entering captcha.
To raise this limit edit index_dl.pm: find
| Code: | | if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*15 && !$file->{message}) |
and change 15 to higher value. |
|
| Back to top |
|
 |
blwire
Joined: 28 Aug 2009 Posts: 9
|
Posted: Dec 22, 2010 9:32 am Post subject: |
|
|
| gotcha lol. what would we set the limit to to set the limit at 30mb mp3s? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Dec 22, 2010 9:33 am Post subject: |
|
|
Obviously you should chnage line to
| Code: | | if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*30 && !$file->{message}) |
|
|
| Back to top |
|
 |
|