| View previous topic :: View next topic |
| Author |
Message |
trinsic
Joined: 21 Dec 2009 Posts: 9
|
Posted: Nov 27, 2011 8:53 am Post subject: MP3 Embed |
|
|
Could anyone guide me on how to make the embedmp3 link go straight to the song_url variable? Currently it goes to a player but I'd like it to point to the song_url variable.
An example is this site using Xfilesharing pro as well:
http://rockdizfile.com/4efq22tbnltc
The source provides this in the header:
| Quote: | <meta property="og:video" content="http://rockdizfile.com/mediaplayer.swf?file=http://rockdizfile.com/mp3embed-4efq22tbnltc.mp3" />
|
| Quote: | | http://rockdizfile.com/mp3embed-4efq22tbnltc.mp3 |
This downloads straight away whereas the default setup for Xfilesharing pro is to show a player and play the file.
Thanks! |
|
| Back to top |
|
 |
trinsic
Joined: 21 Dec 2009 Posts: 9
|
Posted: Nov 27, 2011 9:12 am Post subject: |
|
|
Well that was embarrassing. For anyone needing the same sort of thing:
Open index_dl.pm
Find:
| Code: | | return $ses->PrintTemplate("embed_mp3.html",%$file); |
Replace with:
| Code: | | return $ses->redirect($file->{song_url}); |
|
|
| Back to top |
|
 |
|