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

Improve lyrics-in-tags support (globally and for ID3 tags in particular) #1810

Merged
merged 4 commits into from Feb 14, 2016
Merged

Improve lyrics-in-tags support (globally and for ID3 tags in particular) #1810

merged 4 commits into from Feb 14, 2016

Conversation

intelfx
Copy link
Contributor

@intelfx intelfx commented Feb 7, 2016

  • add support for filling lyrics tag from USLT frame of ID3v2 tags
    (only empty desc and empty lang — others are ignored but not deleted)
  • synthesize tag ~lyrics by looking both at the tags and the external file (in this order)
  • in the lyrics pane and the lyrics editor, use tag ~lyrics for reading
  • in the lyrics editor, write both to the lyrics tag and to the file

This should fix #919.

@intelfx
Copy link
Contributor Author

intelfx commented Feb 7, 2016

It would be good if someone advised me how to do "detection" in the lyrics editor to save lyrics to file only if saving to tags is unsupported for this file.

@@ -357,6 +363,12 @@ def write(self):
tag.add(mutagen.id3.COMM(encoding=enc, text=t, desc=u"",
lang="\x00\x00\x00"))

if "lyrics" in self:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test for reading/writing those frames in test_formats__id3.py

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@intelfx
Copy link
Contributor Author

intelfx commented Feb 12, 2016

@lazka: ping?

lazka added a commit that referenced this pull request Feb 14, 2016
Improve lyrics-in-tags support (globally and for ID3 tags in particular)
@lazka lazka merged commit 6b23033 into quodlibet:master Feb 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save lyrics to ID3
2 participants