Advertisement
314ma

Pobieranie YT

May 8th, 2024 (edited)
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 1. Wrzucić to do pliku pobieranie_youtube.ps1
  2. # 2. Zrobić skrót do tego pliku np. na pulpicie
  3. # 3. Przeedytować target skrótu na: powershell C:\ścieżka\do\skryptu\pobieranie_youtube.ps1
  4. # 4. Plik mp3 pobierze się do lokalizacji "Uruchom w"
  5.  
  6. echo Pobieranie...
  7. $link = Get-Clipboard
  8. $link -match "[\?&]v=([a-zA-Z0-9\-_]+)" | Out-Null
  9. if ($Matches.Length -eq 1) {
  10.     $videoId = $Matches[1]
  11.     yt-dlp.exe -x --audio-format mp3 https://youtube.com/?v=$videoId  --no-warnings --quiet
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement