Additional code in thumbnail.py such as the below (indentation will probably get lost), will allow flac files to be imported properly. I haven't submitted it as a patch yet, as I wanted to spend more time testing it all out, but it seems to work.
if self.p.get_frame():
frame = self.p.get_frame()
frequency = frame.get_int("frequency")
channels = frame.get_int("channels")
# determine if this is an image
is_image = False
if self.p.get_length() == 15000 and video_index == 0 and audio_index == 0:
# images always have exactly 15000 frames is_image = True
self.file_type = "image"
Additional code in thumbnail.py such as the below (indentation will probably get lost), will allow flac files to be imported properly. I haven't submitted it as a patch yet, as I wanted to spend more time testing it all out, but it seems to work.
audio_index = self.p. get_int( "audio_ index") get_int( "video_ index") %s.codec. long_name" % audio_index get(audio_ property) : get(audio_ property)
video_index = self.p.
audio_property = "meta.media.
if self.p.
audio_codec = self.p.
else:
audio_codec = ""
video_property = "meta.media. %s.codec. long_name" % video_index get(video_ property) : get(video_ property) get("meta. media.colorspac e")
if self.p.
video_codec = self.p.
print self.p.
else:
video_codec = ""
if self.p.get_frame(): int("frequency" ) int("channels" )
frame = self.p.get_frame()
frequency = frame.get_
channels = frame.get_
# determine if this is an image
is_ image = True
is_image = False
if self.p.get_length() == 15000 and video_index == 0 and audio_index == 0:
# images always have exactly 15000 frames
self.file_type = "image"