Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError while storing float to a MP4 tag #2028

Closed
pschwede opened this issue Sep 10, 2016 · 1 comment

Comments

@pschwede
Copy link
Contributor

commented Sep 10, 2016

BPM in MP4 doesn't seem to store float but integers instead. QL should do some rounding here.

=== SYSTEM INFORMATION:
Quod Libet 3.8 (development, 3142815)
Mutagen 1.35.-1
Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] linux2
Platform Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
=== STACK TRACE

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/quodlibet/qltk/edittags.py", line 802, 
in __save_files
    song.write()

  File "/usr/lib/python2.7/dist-packages/quodlibet/formats/mp4.py", line 127, in
 write
    values = list(map(int, values))

ValueError: invalid literal for int() with base 10: '95.490'

@lazka lazka added the bug label Sep 10, 2016

@lazka

This comment has been minimized.

Copy link
Member

commented Sep 10, 2016

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.