fleep-py icon indicating copy to clipboard operation
fleep-py copied to clipboard

fleep.get returns nothing regarding type, extension, or mime

Open takedawilliam opened this issue 6 years ago • 3 comments

I have the following code

with open("back number - sister.mp3", "rb") as file:
    info = fleep.get(file.read(128))
    print(info.type)
    print(info.extension)
    print(info.mime)

But the output shows nothing

[]
[]
[]

I tried exiftool & it shows the correct info

ExifTool Version Number         : 11.11
File Name                       : back number - sister.mp3
Directory                       : .
File Size                       : 3.8 MB
File Modification Date/Time     : 2018:12:15 18:57:00+09:00
File Access Date/Time           : 2019:02:02 18:00:44+09:00
File Inode Change Date/Time     : 2018:12:15 18:57:28+09:00
File Permissions                : rw-r--r--
File Type                       : MP3
**File Type Extension             : mp3**
MIME Type                       : audio/mpeg
MPEG Audio Version              : 1
Audio Layer                     : 3
Audio Bitrate                   : 128 kbps
Sample Rate                     : 44100
Channel Mode                    : Joint Stereo
MS Stereo                       : On
Intensity Stereo                : Off
Copyright Flag                  : False
Original Media                  : True
Emphasis                        : None
Encoder                         : LAME3.99r
Lame VBR Quality                : 4
Lame Quality                    : 3
Lame Method                     : CBR
Lame Low Pass Filter            : 17 kHz
Lame Bitrate                    : 128 kbps
Lame Stereo Mode                : Joint Stereo
ID3 Size                        : 128
Title                           :
Artist                          :
Album                           :
Year                            :
Comment                         :
Genre                           : None
Duration                        : 0:04:07 (approx)

Link to the trouble file back number - sister.mp3

Could you please help?

takedawilliam avatar Feb 02 '19 09:02 takedawilliam

I added a new PR #10 for this issue. Could you please check?

takedawilliam avatar Feb 11 '19 02:02 takedawilliam

Indeed I confirm: Many mp3 files just deliver an empty result.

audiofeature avatar Jan 28 '20 14:01 audiofeature

I added a new PR #10 for this issue. Could you please check?

Thank you. fix the issue for me

r-y-zadeh avatar Sep 02 '20 22:09 r-y-zadeh