Radioboss Tweets / Short Tracks

djsolar

New member
Just finished adding the HTTP request for Twitter feed successfully. My question is regarding short tracks or commercial. Is it possible to add script to the "rb.php" to skip these types files?
 
You can modify HTTP Request in RadioBOSS to include the track duration, e.g.:
Code:
http://www.example.com/radioboss_twitter/rb.php?artist=%artist&title=%title&duration=%seconds

Then in rb.php filter short tracks:
Code:
if ($_GET['duration'] < 45)
  exit();

You can modify rb.php to include any other filtering.
 
Thank you.

I had to add the following to >>  //Get params from RadioBOSS in order for it to work.

$seconds = $_GET['duration'];
 
Back
Top