~cadence/tube-devel

NewLeaf: Fix recommended videos extraction on some remaining IDs v1 APPLIED

~lomanic: 1
 Fix recommended videos extraction on some remaining IDs

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~cadence/tube-devel/patches/26399/mbox | git am -3
Learn more about email & git

[PATCH NewLeaf] Fix recommended videos extraction on some remaining IDs Export this patch

From: Lomanic <lomanic@hotmail.fr>

Example: https://www.youtube.com/watch?v=-_GDl6cBebQ
https://github.com/yt-dlp/yt-dlp/blob/2e9a445bc34e79182f900909d727ba87f8487522/yt_dlp/extractor/common.py#L816

Amends f22decbb
---
 tools/files.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/files.py b/tools/files.py
index 896531b..624a989 100644
--- a/tools/files.py
+++ b/tools/files.py
@@ -3,7 +3,7 @@ import yt_dlp.utils

def get_created_files(id):
	# youtube-dl transforms filenames when saving, for example changing - to _ at the start to presumbly not trigger switches in shell, but also in other strange ways too
	sanitized_id = yt_dlp.utils.sanitize_filename(id)
	sanitized_id = yt_dlp.utils.sanitize_filename(id, restricted=True)
	# all file names then have an underscore before the converted URL
	id += "_"
	sanitized_id += "_"
-- 
2.32.0