fix #737 tagging extension broken in 3.10.12

we need to declare COMM and TIT3 frames in EasyID3 before using them
This commit is contained in:
Eric Le Lay 2020-02-16 16:58:02 +01:00
parent e3853806a7
commit dc057342fb
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import mimetypes
import os
from mutagen import File
from mutagen.easyid3 import EasyID3
from mutagen.flac import Picture
from mutagen.id3 import APIC, ID3
from mutagen.mp3 import MP3, EasyMP3
@ -191,6 +192,9 @@ class Mp3File(AudioFile):
class gPodderExtension:
def __init__(self, container):
self.container = container
# fix #737 EasyID3 doesn't recognize subtitle and comment tags
EasyID3.RegisterTextKey("comments", "COMM")
EasyID3.RegisterTextKey("subtitle", "TIT3")
def on_episode_downloaded(self, episode):
info = self.read_episode_info(episode)