adding some things
This commit is contained in:
parent
4c60fcb238
commit
4c25000f23
7 changed files with 150 additions and 17 deletions
|
@ -5,20 +5,21 @@
|
|||
|
||||
(defvar *url* (car (uiop:command-line-arguments)))
|
||||
|
||||
(defun dlvid (url)
|
||||
(run-program "yt-dlp"
|
||||
`("-o"
|
||||
"~/vids/%(title)s.%(ext)s"
|
||||
,url
|
||||
"--embed-thumbnail"
|
||||
"--sponsorblock-remove=sponsor,intro,outro")
|
||||
:search "/run/current-system/sw/bin/"
|
||||
:output t))
|
||||
|
||||
(defun main ()
|
||||
(if (serapeum:string-contains-p "inv.cochrun.xyz" *url*)
|
||||
(run-program "yt-dlp"
|
||||
`("-o"
|
||||
"~/vids/%(title)s.%(ext)s"
|
||||
,(serapeum:string-replace-all
|
||||
"inv.cochrun.xyz" *url* "youtube.com"))
|
||||
:search "/run/current-system/sw/bin/"
|
||||
:output t)
|
||||
(run-program "yt-dlp"
|
||||
`("-o"
|
||||
"~/vids/%(title)s.%(ext)s"
|
||||
,(string *url*))
|
||||
:search "/run/current-system/sw/bin/"
|
||||
:output t)))
|
||||
(let ((url (serapeum:string-replace-all
|
||||
"inv.cochrun.xyz" *url* "youtube.com")))
|
||||
(dlvid (string url)))
|
||||
(dlvid (string url))))
|
||||
|
||||
(main)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue