update translations

This commit is contained in:
Luke Pulverenti
2014-08-11 10:15:53 -04:00
parent e84ba17b9f
commit 7bff666136
57 changed files with 2830 additions and 1324 deletions

View File

@@ -108,6 +108,25 @@ namespace MediaBrowser.Controller.Resolvers
{
item.Video3DFormat = Video3DFormat.HalfTopAndBottom;
}
else
{
// Support Xbmc conventions:
// http://wiki.xbmc.org/index.php?title=3D
var name = Path.GetFileName(item.Path);
name = name.Replace('.', ' ').Replace('_', ' ').Replace('-', ' ');
if (name.IndexOf(" 3d hsbs ", StringComparison.OrdinalIgnoreCase) != -1 ||
name.IndexOf(" 3d sbs ", StringComparison.OrdinalIgnoreCase) != -1)
{
item.Video3DFormat = Video3DFormat.HalfSideBySide;
}
else if (name.IndexOf(" 3d htab ", StringComparison.OrdinalIgnoreCase) != -1 ||
name.IndexOf(" 3d tab ", StringComparison.OrdinalIgnoreCase) != -1)
{
item.Video3DFormat = Video3DFormat.HalfTopAndBottom;
}
}
}
}
}