sane-cast: fix casting for relative paths to mp4-only devices

This commit is contained in:
Colin 2024-04-23 09:12:53 +00:00
parent 10fc7bbb84
commit b5874f4b49
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ class Go2TvDriver:
if media.startswith("http://") or media.startswith("https://"):
logger.info(f"ignoring compat requirement {dev.compat} for {media}")
else:
media = os.path.abspath(media)
# TODO: make sure this directory gets cleaned up!
dir_ = tempfile.mkdtemp(prefix="sane-cast-")
new_name = os.path.join(dir_, os.path.basename(media) + ".mp4")