XFileSharing Pro - MP3 Embed

Message
Author
trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

MP3 Embed

#1 Postby trinsic » Nov 27, 2011 8:53 am

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:
<meta property="og:video" content="http://rockdizfile.com/mediaplayer.swf? ... tbnltc.mp3" />
This downloads straight away whereas the default setup for Xfilesharing pro is to show a player and play the file.

Thanks!

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#2 Postby trinsic » Nov 27, 2011 9:12 am

Well that was embarrassing. For anyone needing the same sort of thing:

Open index_dl.pm

Find:

Code: Select all

return $ses->PrintTemplate("embed_mp3.html",%$file);
Replace with:

Code: Select all

return $ses->redirect($file->{song_url});