Advertisement
Glenpl

Untitled

Mar 22nd, 2023
730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1.     get_ids_process = subprocess.run(
  2.         [
  3.             "yt-dlp",
  4.             "--get-id",
  5.             "--playlist-items",
  6.             "1-" + str(settings.KEEP_LAST_N),
  7.             "--skip-download",
  8.             "--flat-playlist",
  9.             r"https://www.youtube.com/c/NocneRadio/streams",
  10.         ],
  11.         capture_output=True,
  12.     )
  13.     ids_to_download = {
  14.         i for i in get_ids_process.stdout.decode("utf-8").split("\n") if len(i) > 3
  15.     }
  16.  
  17.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement