1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Updated MediaInfo code for syno/linux.

This commit is contained in:
Taloth Saldono
2015-05-11 23:22:04 +02:00
parent e98a174884
commit af060d73cc
2 changed files with 32 additions and 0 deletions
@@ -49,6 +49,8 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
}
else
{
mediaInfo.Option("CharSet", "UTF-8");
// On non-Windows the wrapper uses the ansi library methods, which libmediainfo converts internally to unicode from multibyte (utf8).
// To avoid building MediaInfoDotNet ourselves we simply trick the wrapper to send utf8 strings instead of ansi.
var utf8filename = Encoding.Default.GetString(Encoding.UTF8.GetBytes(filename));