Merge branch 'develop' of git+ssh://git.sihnon.net/home/git/public/download-dispatcher into develop

Conflicts:
	source/lib/DownloadDispatcher/Source/Plugin/TV.class.php
This commit is contained in:
2012-01-10 01:36:38 +00:00

View File

@@ -121,7 +121,6 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug
$normalised_series = $this->normalise($series_name); $normalised_series = $this->normalise($series_name);
$this->output_dir_cache[$normalised_series] = $series_name; $this->output_dir_cache[$normalised_series] = $series_name;
} }
} }
protected function normalise($name) { protected function normalise($name) {
@@ -141,7 +140,7 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug
$set_season = function($a) { $set_season = function($a) {
for ($i = 1, $l = count($a); $i < $l; ++$i) { for ($i = 1, $l = count($a); $i < $l; ++$i) {
if ($a[$i]) { if ($a[$i]) {
return trim($a[$i], '0'); return ltrim($a[$i], '0');
} }
} }
return null; return null;
@@ -158,7 +157,7 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug
$set_episode = function($a) { $set_episode = function($a) {
for ($i = 1, $l = count($a); $i < $l; ++$i) { for ($i = 1, $l = count($a); $i < $l; ++$i) {
if ($a[$i]) { if ($a[$i]) {
return trim($a[$i], '0'); return ltrim($a[$i], '0');
} }
} }
return null; return null;