Tweak comment in the non-add-on case

This commit is contained in:
Damien Elmes 2025-06-04 18:08:41 +07:00
parent d930f51a8f
commit b4d9510b24

View file

@ -51,7 +51,8 @@ class SoundOrVideoTag:
"Prepend the media folder to the filename." "Prepend the media folder to the filename."
if os.path.basename(self.filename) == self.filename: if os.path.basename(self.filename) == self.filename:
# Path in the current collection's media folder. # 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 head, tail = media_folder, self.filename
else: else:
# Add-ons can use absolute paths to play arbitrary files on disk. # Add-ons can use absolute paths to play arbitrary files on disk.