Bug #584

Replacing file names in filelist with metadata information

Added by Oleg Malashenko almost 10 years ago. Updated almost 10 years ago.

Status:FixedStart date:06/29/2011
Priority:NormalDue date:
Assignee:Oleg Malashenko% Done:

100%

Category:-
Target version:3.0
Found in version:2.99.401.gfd820 Platform:

Description

Showtime replaces file names in filelist with metadata information even if that data cannot be correctly interpreted or displayed.

Some of my .avi files have metadata in them in Russian in 1-byte encoding (I don't bother finding out which encoding it is: could be
cp1251, cp866 or koi8-r, but it doesn't matter). After first showing the file names in filelist showtime will eventually replace them
with empty strings (probably because it tries interpret the data as multibyte encoding and fails).

meta.tar.bz2 (1.03 KB) Oleg Malashenko, 06/30/2011 01:17 AM

Associated revisions

Revision 9924de57
Added by Andreas Smas almost 10 years ago

file metadata: Verify that metadata strings are UTF-8 before importing them.

Fixes #584

Change included in version 3.0

History

#1 Updated by Andreas Smas almost 10 years ago

  • Status changed from New to Need feedback
  • Assignee changed from Andreas Smas to Oleg Malashenko
  • Target version set to 3.0

The code is supposed to skip over file metadata with 0 length string.

Can you please attach a sample file?

#2 Updated by Oleg Malashenko almost 10 years ago

Here is a link to my home ftp server folder containing 2 sample .avi files http://bit.ly/iDbCVt
Attached is extracted metadata information from them as shown by mplayer. Metadata is in CP-1251.

For 01.avi 'Name' doesn't contain any ASCII (<128) chars but spaces. Probably that is why I see "empty" string for it.

02.avi 'Name' contains '(2-).' ASCII chars. That is exactly what I see after showtime has replaced the file name.

I don't think it is worthwhile to 'guess' the encoding of metadata fields. Probably the best behavior is to leave it alone if
metadata is not a proper utf-8 string.

#3 Updated by Andreas Smas almost 10 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF