XFileSharing Pro - MP3 Embed

Powerfull XFileSharing version

Moderator: admin

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:

The source provides this in the header:
<meta property="og:video" content="http://rockdizfile.com/mediaplayer.swf?file=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.


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


Code: Select all

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

Replace with:

Code: Select all

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

Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests