Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get_ids_process = subprocess.run(
- [
- "yt-dlp",
- "--get-id",
- "--playlist-items",
- "1-" + str(settings.KEEP_LAST_N),
- "--skip-download",
- "--flat-playlist",
- r"https://www.youtube.com/c/NocneRadio/streams",
- ],
- capture_output=True,
- )
- ids_to_download = {
- i for i in get_ids_process.stdout.decode("utf-8").split("\n") if len(i) > 3
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement