From b4d9510b24f6d1f6a1ce87aaeb05940477eec778 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 4 Jun 2025 18:08:41 +0700 Subject: [PATCH] Tweak comment in the non-add-on case --- pylib/anki/sound.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/anki/sound.py b/pylib/anki/sound.py index e190e3b96..18a84113f 100644 --- a/pylib/anki/sound.py +++ b/pylib/anki/sound.py @@ -51,7 +51,8 @@ class SoundOrVideoTag: "Prepend the media folder to the filename." if os.path.basename(self.filename) == self.filename: # Path in the current collection's media folder. - # Ensure filename doesn't reference parent folder. + # Turn it into a fully-qualified path so mpv can find it, and to + # ensure the filename doesn't get treated like a non-file scheme. head, tail = media_folder, self.filename else: # Add-ons can use absolute paths to play arbitrary files on disk.