Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Last active September 24, 2024 16:19
Show Gist options
  • Save glowinthedark/ae31ba397154e7ec5300e8d8ba81778e to your computer and use it in GitHub Desktop.
Save glowinthedark/ae31ba397154e7ec5300e8d8ba81778e to your computer and use it in GitHub Desktop.
yt-dlp download from local m3u8 playlist files
#!/usr/bin/env bash
find . -iname "*.m3u*" -exec yt-dlp --enable-file-urls file://$PWD/{} \;
# same as above with subshell
find * -iname '*.m3u*' -print -exec sh -c 'yt-dlp --enable-file-urls "file://$PWD/${1}"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment