poplagang.blogg.se

Rate Swinsian Library
rate swinsian library





















  1. #RATE SWINSIAN LIBRARY MAC RUNNING MACOS#
  2. #RATE SWINSIAN LIBRARY FULL ISSUE LOG#
rate swinsian library

Rate Swinsian Library Mac Running MacOS

Swinsian also supports albums ripped as a single file together with a cue file, and FLAC, Ogg Vorbis and WavPack files with embedded cue What file formats are supported Most popular audio formats are supported: MP3, AAC, ALAC, WAV, FLAC, Ogg Vorbis, AIFF, Opus, AC3, APE WavPack, MusePack, DSF, and WMA. Swinsian can be used on any Mac running macOS 10.7 or later.

fixed data type to always return str for disc, disc_total, track, track_total #97 (thanks to kostalski) From tinytag import TinyTagPrint('This track is by %s.' % tag.artist)Print('It is %f seconds long.' % tag.duration)Alternatively you can use tinytag directly on the command line: $ python -m tinytag -format csv /some/music.mp3> Check python -m tinytag -help for all CLI options, for example other output formats`List of possible attributes you can get with TinyTag: tag.album # album as stringTag.audio_offset # number of bytes before audio data beginsTag.disc_total # the total number of discsTag.duration # duration of the song in secondsTag.track_total # total number of tracks as stringAdditionally you can also get cover images from ID3 tags: tag = TinyTag.get('/some/music.mp3', image=True) It can determine track number, total tracks, title, artist, album, year, duration and more. Just a few hundred lines of code (just include it in your project!)Tinytag only provides the minimum needed for reading MP3, OGG, OPUS, MP4, M4A, FLAC, WMA and Wave meta-data. Lets you rate songs with a thumbs up/down system.

fixed opus duration being wrong for files with lower sample rate #81 detecting file types based on their magic header bytes, #85 Added automatic detection for certain MP4 file headers

rate swinsian library

added new field "composer" (Thanks to Phil Borman) using pytest instead of nosetest (thanks to scivision) added appveyor windows test CI (thanks to scivision) added support for calling TinyTag.get with pathlib.Path (thanks to scivision) using setup.cfg instead of setup.py (thanks to scivision) fixed wav files not correctly reporting the number of channels #61

rate swinsian library

Bug missing sample fileFile "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py", line 176, in mainFile "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/install.py", line 393, in runFile "/usr/local/lib/python3.5/dist-packages/pip/_internal/req/ init.py", line 57, in install_given_reqsFile "/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py", line 919, in installUse_user_site=use_user_site, pycompile=pycompile,File "/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py", line 445, in move_wheel_filesWarn_script_location=warn_script_location,File "/usr/local/lib/python3.5/dist-packages/pip/_internal/wheel.py", line 391, in move_wheel_filesAssert info_dir, "%s. I have noticed that some of the image data cannot be loaded.Upon closer inspection of the data, it appears that I am getting a strange 10 B prefix for all of the ones that fail.Here's a code fragment: from tinytag import TinyTag# ^^^ this will fail for *some* of my audio filesI noticed that it is consistent which files fail and which pass, so it must be something with my audio files.When i print out the start of the data for one of these, and compare it to a file that is OK, i see a difference:Good File: b'\xff\xd8\xff\xe0\x00\x10JFIF.'Bad File: b'o\x00v\x00e\x00r\x00\x00\x00\xff\xd8\xff\xe0\x00\x10JFIF.'So, it looks like the Bad File has a prefix of 10 bytes, followed by the same start as 'good file'.Is this expected? i'm not sure why this is showing up, and only for some audio files.My script seems to work just fine if i do this: if image_data = b'o\x00v\x00e\x00r\x00\x00\x00':Anyway, thanks in advance for taking a look! I can provide my audio files for you if needed. Traceback (most recent call last):File "D:\Program_Files\Python\lib\site-packages\tinytag\tinytag.py", line 311, in _determine_durationFrame_bitrate = ID3.bitrate_by_version_by_layerTypeError: 'NoneType' object is not subscriptableDuring handling of the above exception, another exception occurred:File "D:\Program_Files\Python\lib\site-packages\tinytag\tinytag.py", line 94, in getTag.load(tags=tags, duration=duration, image=image)File "D:\Program_Files\Python\lib\site-packages\tinytag\tinytag.py", line 115, in loadSelf._determine_duration(self._filehandler)File "D:\Program_Files\Python\lib\site-packages\tinytag\tinytag.py", line 313, in _determine_durationRaise TinyTagException('mp3 parsing failed')Tinytag.tinytag.TinyTagException: mp3 parsing failedNot sure if this is an issue, or I am not using TinyTag properly!I am using tinytag to get image data embedded in my audio files, and passing the image data into PIL/Pillow. fixed decoding of UTF-16LE ID3v2 Tags, improved overall stabilityI was trying to use tinytag.TinyTag.get(filename), but it errored and saidTinytag.tinytag.TinyTagException: mp3 parsing failed.Now I get that this means the mp3 is invalid, but the weird thing is:It works with ffplay, VLC and WMP (and probably all music playing software)File was downloaded using youtube_dl, not sure if that matters. fixed crash for malformed MP4 files (#34)

Rate Swinsian Library Full Issue Log

From tinytag import TinyTagTags = TinyTag.get('ERB_Tony_Hawk_VS_Wayne_Gretsky.mp3')> 'ony Hawk VS Wayne Gretzky' # should be 'Tony Hawk VS Wayne Gretsky'> 'pic Rap Battles Of History' # should be 'Epic Rap Battles Of History'When using mutagen.easyid3 the problem dissapears from mutagen.easyid3 import EasyID3Tags = EasyID3('ERB_Tony_Hawk_VS_Wayne_Gretsky.mp3')I have traced the problem to ID3._decode_string in tinytag.py.They bytestring input (for the title) is:B'\x01T\x00o\x00n\x00y\x00 \x00H\x00a\x00w\x00k\x00 \x00V\x00S\x00 \x00W\x00a\x00y\x00n\x00e\x00 \x00G\x00r\x00e\x00t\x00z\x00k\x00y\x00'On line 720 ( bytestr = bytestr) it cuts it to:B'T\x00o\x00n\x00y\x00 \x00H\x00a\x00w\x00k\x00 \x00V\x00S\x00 \x00W\x00a\x00y\x00n\x00e\x00 \x00G\x00r\x00e\x00t\x00z\x00k\x00y\x00'Then on line 730 it says bytestr = bytestr if len(bytestr) % 2 = 0 else bytestr which then removes the T\x00 from the start of the string. Any packages that I may be missing?I noticed that, when using tinytag on certain mp3 files, the first letter of the title, artist and album are cut off. Dist-info directory not foundThis is the full issue log.

rate swinsian library