Last active
April 17, 2022 10:58
Revisions
-
pynappo revised this gist
Apr 17, 2022 . No changes.There are no files selected for viewing
-
pynappo revised this gist
Apr 17, 2022 . No changes.There are no files selected for viewing
-
pynappo revised this gist
Apr 17, 2022 . No changes.There are no files selected for viewing
-
pynappo revised this gist
Apr 17, 2022 . No changes.There are no files selected for viewing
-
pynappo revised this gist
Apr 17, 2022 . 1 changed file with 23 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,23 @@ Param ( [Parameter(Mandatory, HelpMessage = "Please provide a youtube-dl compatible link")] [string]$URL ) Param ( [Parameter(Mandatory, HelpMessage = "Please provide a youtube-dl compatible link")] [string]$URL ) Param ( [Parameter(Mandatory, HelpMessage = "Please provide a youtube-dl compatible link")] [string]$URL ) function Download { if(Get-Command yt-dlp) { yt-dlp $URL --download-archive "archive.txt" elseif (Get-Command youtube-dl) { "yt-dlp not found, using youtube-dl instead" youtube-dl } else{ Write-Error "Neither yt-dlp nor youtube-dl" } } -
pynappo created this gist
Apr 17, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@