chore: fix comment wording

This commit is contained in:
jo 2023-04-03 16:25:44 +02:00 committed by Kyle Robbertze
parent ce27615a24
commit 43cc2bc4f0
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
def create_liquidsoap_annotation(file_event: FileEvent) -> str: def create_liquidsoap_annotation(file_event: FileEvent) -> str:
# We need liq_start_next value in the annotate. That is the value that controls # We need liq_start_next value in the annotation. That is the value that controls
# overlap duration of crossfade. # overlap duration of crossfade.
annotations = { annotations = {
"media_id": file_event.id, "media_id": file_event.id,
@ -27,7 +27,7 @@ def create_liquidsoap_annotation(file_event: FileEvent) -> str:
annotations["replay_gain"] = f"{file_event.replay_gain} dB" annotations["replay_gain"] = f"{file_event.replay_gain} dB"
# Override the the artist/title that Liquidsoap extracts from a file's metadata with # Override the the artist/title that Liquidsoap extracts from a file's metadata with
# the metadata we get from Airtime. (You can modify metadata in Airtime's library, # the metadata we get from LibreTime. (You can modify metadata in LibreTime's library,
# which doesn't get saved back to the file.) # which doesn't get saved back to the file.)
if file_event.artist_name: if file_event.artist_name:
annotations["artist"] = file_event.artist_name.replace('"', '\\"') annotations["artist"] = file_event.artist_name.replace('"', '\\"')