From 4a86cb16c86dfb5196f416cda1c3a75135a9588f Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Fri, 30 Aug 2024 11:44:07 +0200 Subject: [PATCH] Use relative paths in generated m3u8 playlist Since we're using relative paths for initi segments, and paths are relative to the path where the playlist is located, this seems sensible. Allows the folder to be moved, and the playlist will still work. --- twitchdl/playlists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitchdl/playlists.py b/twitchdl/playlists.py index 4570e5a..24f9905 100644 --- a/twitchdl/playlists.py +++ b/twitchdl/playlists.py @@ -94,7 +94,7 @@ def make_join_playlist( playlist.segments.clear() for segment in org_segments: if segment.uri in path_map: - segment.uri = str(path_map[segment.uri]) + segment.uri = str(path_map[segment.uri].name) playlist.segments.append(segment) return playlist