commit ab757751804876f53f66c3bdb4de15f17318bf98 Author: Ben Roberts Date: Thu Jan 21 10:00:21 2010 +0000 Imported the manage-torrent script diff --git a/trunk/mt.php b/trunk/mt.php new file mode 100644 index 0000000..3de205a --- /dev/null +++ b/trunk/mt.php @@ -0,0 +1,340 @@ += 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 NameCurrent episodeQualities seenOperations
+
+ + +