yartat / MP-MediaInfo

Mediaportal MediaInfoLib wrapper
Other
45 stars 21 forks source link

LanguageMediaStream.Default is always false #4

Closed srenrd closed 5 years ago

srenrd commented 5 years ago

Hey, I have multiple mkv movies with ac3 audio tracks that has a Default flag. When inspecting them with the MediaInfo program, I can verify that each movie has an ac3 track with the flag set to "Yes". Yet when using your wrapper the default flag aka. LanguageMediaStream.Default always appears as false? From my tests this is a proplem for both video and audio streams.

srenrd commented 5 years ago

The problem is that the flags are represented by "Yes" and "No". You are using bool.TryParse for the conversion which will always fail. Solution could be to add a custom bool TryParse method for the flags.

yartat commented 5 years ago

Thank you for solution. I will fix this issue for a close time.

yartat commented 5 years ago

Was closed in release 18.12