-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TypeError when parsing certain files, closes #100
This was a regression introduced by 099192c when I moved away from generic exceptions. It happened with media files containing tracks of Type "Other", resulting in attributes such as "Other_Format_List" in the general track. We fix this by listing all repeated attributes instead of relying on them starting with "other_".
- Loading branch information
Showing
4 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Mediainfo version="20.09"> | ||
<File> | ||
<track type="General"> | ||
<Count>331</Count> | ||
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind> | ||
<Kind_of_stream>General</Kind_of_stream> | ||
<Kind_of_stream>General</Kind_of_stream> | ||
<Stream_identifier>0</Stream_identifier> | ||
<Count_of_video_streams>1</Count_of_video_streams> | ||
<Count_of_audio_streams>1</Count_of_audio_streams> | ||
<OtherCount>2</OtherCount> | ||
<Video_Format_List>AVC</Video_Format_List> | ||
<Video_Format_WithHint_List>AVC</Video_Format_WithHint_List> | ||
<Codecs_Video>AVC</Codecs_Video> | ||
<Audio_Format_List>AAC LC</Audio_Format_List> | ||
<Audio_Format_WithHint_List>AAC LC</Audio_Format_WithHint_List> | ||
<Audio_codecs>AAC LC</Audio_codecs> | ||
<Other_Format_List>RTP / RTP</Other_Format_List> | ||
<Other_Format_WithHint_List>RTP / RTP</Other_Format_WithHint_List> | ||
<Other_Codec_List>RTP / RTP</Other_Codec_List> | ||
<Other_Language_List>English / English</Other_Language_List> | ||
</track> | ||
</File> | ||
</Mediainfo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters