From 3ded1db9ecef535d21926bc3a3c9a96bad13051d Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Wed, 4 Jun 2025 12:22:44 +0300 Subject: [PATCH] add comment --- pylib/anki/sound.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylib/anki/sound.py b/pylib/anki/sound.py index d40a895ea..fce61cbdd 100644 --- a/pylib/anki/sound.py +++ b/pylib/anki/sound.py @@ -45,6 +45,7 @@ class SoundOrVideoTag: "Prepend the media folder to the filename." if os.path.isfile(absolute_path := os.path.abspath(self.filename)): # Add-ons can use absolute paths to play arbitrary files on disk. + # Example: sound.av_player.play_tags([SoundOrVideoTag("/path/to/file")]) head, tail = os.path.split(absolute_path) tail = hooks.media_file_filter(tail) return os.path.join(head, tail)