From 3c522c64599fa56568e8edb1716ace7e3c4b1194 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Mon, 28 Jun 2021 22:00:34 -0400 Subject: [PATCH] Fixed error with video titles making directories --- yt-unlist-saver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt-unlist-saver.py b/yt-unlist-saver.py index 7837efa..860bbd7 100644 --- a/yt-unlist-saver.py +++ b/yt-unlist-saver.py @@ -71,7 +71,7 @@ for v in filteredVideos: # Save metadata to file descriptionFile = '{}/{}-{}-{}.txt'.format(playlistDir, getChannel(v), - getTitle(v), + getTitle(v).replace('/', ''), getId(v)) if not os.path.exists(descriptionFile): description = open(descriptionFile, 'w')