finished writing to database

This commit is contained in:
Hellow
2023-02-19 23:35:52 +01:00
parent 6531bf7022
commit 87dcfdb54b
5 changed files with 145 additions and 12 deletions

View File

@@ -51,6 +51,12 @@ class FormattedText:
if self.doc is None:
return None
return pandoc.write(self.doc, format="plain").strip()
@property
def json(self) -> str:
if self.doc is None:
return None
return pandoc.write(self.doc, format="json")
plaintext = property(fget=get_plaintext, fset=set_plaintext)
markdown = property(fget=get_markdown, fset=set_markdown)

View File

@@ -252,6 +252,7 @@ class ID3Timestamp:
return self.timestamp
timestamp: str = property(fget=get_timestamp)
timeformat: str = property(fget=get_time_format)
class MetadataAttribute: