= 4; // Expecting at least four lines of output from flexget'); $output = array_slice($output, 2, -2); /* Name Latest Status ------------------------------------------------------------------------------- castle s02e10 *hdtv-Proper */ foreach ($output as $line) { $matches = array(); if (!preg_match('/^\s(?P.{1,30})\s+(?P.{1,20})\s+(?P.*)\s+/', $line, $matches)) { $errors[] = "Failed to parse '$line'"; continue; } $currentSeries[trim($matches['series'])] = array( 'episode' => trim($matches['episode']), 'quality' => trim($matches['quality']), ); } ksort($currentSeries); } else { $errors[] = 'Unable to get the current series/episode list. (Maybe flexget is currently running?)'; } ?> Sihnon bittorrent utilities

Sihnon bittorrent utilities

Inject a seen episode title into the flexget seen list

Inject an entry into the list of seen TV episodes, and optionally download it

If an URL is provided, the episode will be injected into the list of seen episodes, and also downloaded immediately. If the URL is left blank, the episode will be learned only.

Forget about an already seen episode

Forget about an already seen episode

Currently known series/episodes

$details) {?>
Series Name Current episode Qualities seen Operations