remove dead code

This commit is contained in:
mappu 2018-09-30 19:24:00 +13:00
parent fea7059076
commit 15899f2077
1 changed files with 2 additions and 7 deletions

View File

@ -64,7 +64,7 @@ function fixup($input) {
} while (! array_key_exists($tmp, $seen));
return $tmp;
};
// Some files using underscore instead of space
// Except - preserve "G_P", that's a known sub group
// Iterate until fixed point
@ -159,12 +159,7 @@ function fixup($input) {
return $tmp;
});
/*
// Move tags from middle to end
$tmp = $fixed_point_iterate($tmp, function($tmp) {
return preg_replace('~([^\[\]]+)(\[[^\]]+?\])([^\[\]]+)~', '\1\3\2', $tmp);
});
*/
// Cleanup commas inside tags ( [720p,Bluray] => [720p Bluray] )
$tmp = preg_replace_callback('~\[(.+)\]~', function($matches) { return str_replace(',', ' ', $matches[0]); }, $tmp);