foresightyj / utube-download

2 stars 0 forks source link

Search Youtube #578

Open foresightyj opened 2 years ago

foresightyj commented 2 years ago

@github-actions run

#! /bin/sh
Q="黄金男孩"
URL=https://www.youtube.com/results?search_query=$(node -p 'encodeURIComponent("'$Q'")')
npm install --production
node index.js --url $URL

git config --local user.email "comment-bot@github.com"
git config --local user.name "comment-bot"
git checkout -b “search-$Q”
git pull --rebase
git add ./downloads
git commit -m "downloaded $Q"
git push
foresightyj commented 2 years ago

@github-actions run

#! /bin/sh
Q="黄金男孩"
URL=https://www.youtube.com/results?search_query=$(node -p 'encodeURIComponent("'$Q'")')
npm install --production
node index.js --url $URL --timeout=60

git config --local user.email "comment-bot@github.com"
git config --local user.name "comment-bot"
git checkout -b “search-$Q”
git pull --rebase
git add ./downloads
git commit -m "downloaded $Q"
git push