Skip to content

Instantly share code, notes, and snippets.

View raytiley's full-sized avatar

Ray Tiley raytiley

View GitHub Profile
<?php
date_default_timezone_set('America/New_York');
//Setup
$channelID = 2;
$startInDays = 4;
$scheduleForDays = 7;
$monthsToLookBack = 3;
require_once('nusoap.php');
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("a[href*=mms]").click(function(){
if(!confirm("Do you really wish to view this video. Here is some legal mumbo jumbo?")) {
return false;
}
})
})
</script>
<?php
require_once("ctnDBConnect.php");
require_once('nusoap.php');
$contentPaths = array("/Volumes/VS400/", "/Volumes/SXServer/", "/Volumes/SXSafe/");
$destinationPath = "/Volumes/VODContent/VOD/";
$ffmpegOptions = "-qscale 8 -r 25 -ar 44100 -y";
$ccVODprojectsIDs = array(55, 58, 59); //Add 55 and 58
$report = "";
$skippedReport = "";
(\b[0-9]+)-?([0-9]+)?.*\.(mpg|mpeg|MPG|MPEG)
<?php
function updateProjectIDforShow($show_id, $project_id) {
if($cablecast_client = $this->get_cablecast_client()) {
$showInfo = $cablecast_client->GetShowInformation($show_id);
$showInfo = $showInfo->GetShowInformationResult;
$params = array("ShowID" => $showInfo->ShowID,
"LocalID" => $showInfo->LocalID,
"Title" => $showInfo->InternalTitle,
"CGTitle" => $showInfo->Title,
<?php
$cablecast_client = new SoapClient("http://demo.trms.com/CablecastWS/CablecastWS.asmx?WSDL");
$showInfo = $cablecast_client->GetShowInformation(array("ShowID" => 21978));
$showInfo = $showInfo->GetShowInformationResult;
$params = array("ShowID" => $showInfo->ShowID,
"LocalID" => $showInfo->LocalID,
"Title" => $showInfo->InternalTitle,
"CGTitle" => $showInfo->Title,
"ProjectID" => 18,
<?php
//Setup Content drives and Destination path
$contentPaths = array("/Volumes/VS400/", "/Volumes/SXServer/", "/Volumes/SXSafe/");
$destinationPath = "/Volumes/VODContent/mp4/";
$transcodeCommand = "HandBrakeCLI --preset \"iPhone & iPod Touch\" --width 320 --vb 500 --two-pass --turbo --optimize ";
//Define some functions to do various tasks
function dirList ($directory)
$view = new view;
$view->name = 'Schedule';
$view->description = 'Schedule';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
@raytiley
raytiley / nowplaying.php
Created November 12, 2010 02:11
nowPlaying.php Revambed
<?php
//Configure Script
$server = "http://frontdoor.ctn5.org/"; //include trailing backslash
$channelID = 1; //Cablecast Channel ID
$defualtSource = "Community Bulletin Board";
date_default_timezone_set("America/New_York");
//End Configure
@raytiley
raytiley / upnext.php
Created November 12, 2010 02:58
Upnext revamped
<?php
//Configure Script
$displayUpcomingNum = 4; // Changes number of upcoming shows to display
$server = "http://frontdoor.ctn5.org/"; //include trailing backslash
$channelID = 1; //Cablecast Channel ID
date_default_timezone_set("America/New_York");
//End Configure
$server = $server."CablecastWS/CablecastWS.asmx?WSDL"; //Generates Link to WSDL file.