Last active
May 4, 2020 07:28
-
-
Save nesffer/8049f758045badc9a663fb3002e7d3fa to your computer and use it in GitHub Desktop.
Revisions
-
nesffer revised this gist
May 4, 2020 . 1 changed file with 20 additions and 20 deletions.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,23 +1,23 @@ if [[ -e $(which youtube-dl) ]]; then if [[ -e $(which jq) ]]; then echo 'YouTube 재생목록을 가져오고 있습니다...' youtube-dl -i --playlist-reverse -j --flat-playlist 'https://www.youtube.com/channel/UCB1h4X2J0J-8sVVcHvzQahw' | jq -r '"[" + .title + "](https://youtube.com/v/" + .id + ")"' > results.txt echo 'YouTube 재생목록을 가져왔습니다.' sleep 1 echo 'results.txt 파일에 저장되었습니다.' else if [[ -e $(which brew) ]]; then brew install youtube-dl jq echo '필요한 패키지를 설치했습니다. 다시 실행해주세요.' else echo "jq를 찾을 수 없어 실행할 수 없습니다."; fi fi else if [[ -e $(which brew) ]]; then brew install youtube-dl jq echo '필요한 패키지를 설치했습니다. 다시 실행해주세요.' else echo "youtube-dl을 찾을 수 없어 실행할 수 없습니다."; fi fi -
nesffer revised this gist
May 4, 2020 . 1 changed file with 1 addition 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,7 +1,7 @@ if [[ -e $(which youtube-dl) ]]; then if [[ -e $(which jq) ]]; then echo 'YouTube 재생목록을 가져오고 있습니다...' youtube-dl -i --playlist-reverse -j --flat-playlist 'https://www.youtube.com/channel/UCB1h4X2J0J-8sVVcHvzQahw' | jq -r '"[" + .title + "](https://youtube.com/v/" + .id + ")"' > results.txt echo 'YouTube 재생목록을 가져왔습니다.' sleep 1 echo 'results.txt 파일에 저장되었습니다.' -
nesffer revised this gist
May 4, 2020 . No changes.There are no files selected for viewing
-
nesffer created this gist
May 4, 2020 .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,23 @@ if [[ -e $(which youtube-dl) ]]; then if [[ -e $(which jq) ]]; then echo 'YouTube 재생목록을 가져오고 있습니다...' youtube-dl -i --playlist-reverse -j --flat-playlist 'https://www.youtube.com/channel/UChXOKeqCxhM3AjyNb7rAAOw' | jq -r '"[" + .title + "](https://youtube.com/v/" + .id + ")"' > results.txt echo 'YouTube 재생목록을 가져왔습니다.' sleep 1 echo 'results.txt 파일에 저장되었습니다.' else if [[ -e $(which brew) ]]; then brew install youtube-dl jq echo '필요한 패키지를 설치했습니다. 다시 실행해주세요.' else echo "jq를 찾을 수 없어 실행할 수 없습니다."; fi fi else if [[ -e $(which brew) ]]; then brew install youtube-dl jq echo '필요한 패키지를 설치했습니다. 다시 실행해주세요.' else echo "youtube-dl을 찾을 수 없어 실행할 수 없습니다."; fi fi