Shpotify는 Mac의 명령 줄에서 Spotify를 제어하기위한 간단한 Bash/Apple 스크립트입니다.
이 흥미로운 것을 발견한다면 트위터에서 나를 따라 가서 내가하는 다른 일에 대해 알아야합니다.
아직 그렇지 않은 경우 Spotify 데스크탑 응용 프로그램을 다운로드하여 설치하십시오.
Shpotify를 설치하는 가장 쉬운 방법은 Homebrew 패키지 관리자를 사용하는 것입니다.
brew install shpotify
홈브리를 사용하지 않으면 몇 가지 간단한 단계를 수행하여 스크립트를 수동으로 설치할 수 있습니다.
이 저장소의 사본을 GIT로 가져 오거나 Zip Archive를 다운로드하십시오.
저장소를 가져온 폴더로 이동하여 (필요한 경우 압축을받지 않음) spotify 라는 파일이 실행 가능하는지 확인하십시오.
cd shpotify
chmod +x spotify
파일 spotify PATH 의 편리한 위치로 복사하거나 파일이있는 폴더를 포함하도록 PATH 설정하십시오.
Shpotify는 이름으로 음악을 찾기 위해 Spotify의 API에 연결해야합니다. 이 기능을 원할 것입니다!
이 작업을 수행하려면 먼저 Spotify의 개발자 사이트에 가입하고 응용 프로그램을 만들어야합니다. 그렇게하면 Client ID 및 Client Secret 값을 찾아 ${HOME}/.shpotify.cfg 로 shpotify config 파일에 입력 할 수 있습니다.
가치를 인용하고 추가 공간을 추가하지 마십시오. 완료되면 다음과 같이 보일 것입니다 (그러나 자신의 값으로) :
CLIENT_ID="abc01de2fghijk345lmnop"
CLIENT_SECRET="qr6stu789vwxyz"
shpotify를 사용하면 다음 명령으로 Spotify를 제어 할 수 있습니다.
spotify play Resumes playback where Spotify last left off.
spotify play <song name> Finds a song by name and plays it.
spotify play album <album name> Finds an album by name and plays it.
spotify play artist <artist name> Finds an artist by name and plays it.
spotify play list <playlist name> Finds a playlist by name and plays it.
spotify play uri <uri> Play songs from specific uri.
spotify next Skips to the next song in a playlist.
spotify prev Returns to the previous song in a playlist.
spotify replay Replays the current track from the beginning.
spotify pos <time> Jump to a specific time (in seconds) in the current song.
spotify pause Pauses (or resumes) Spotify playback.
spotify stop Stops playback.
spotify quit Stops playback and quits Spotify.
spotify vol up Increases the volume by 10%.
spotify vol down Decreases the volume by 10%.
spotify vol <amount> Sets the volume to an amount between 0 and 100.
spotify vol [show] Shows the current volume.
spotify status Shows the play status, including the current song details.
spotify status artist Shows the currently playing artist.
spotify status album Shows the currently playing album.
spotify status track Shows the currently playing track.
spotify share Displays the current song's Spotify URL and URI.
spotify share url Displays the current song's Spotify URL and copies it to the clipboard.
spotify share uri Displays the current song's Spotify URI and copies it to the clipboard.
spotify toggle shuffle Toggles shuffle playback mode.
spotify toggle repeat Toggles repeat playback mode.
Shpotify는 주로 Harish Narayanan이 작성하고 유지합니다.
오픈 소스 프로젝트이므로 다음을 포함하여 많은 도움이되는 사람들의 수많은 기여가 포함되어 있습니다.
기부에 관심이 있으시면 사람들이 이전에보고 한 일부 문제를 해결하고 풀 요청을 제출하는 것을 고려하십시오. 감사합니다!
저작권 (c) 2012–2024 Harish Narayanan.
이에 따라이 소프트웨어 및 관련 문서 파일 ( "소프트웨어")의 사본을 얻는 사람에게는 허가가 부여됩니다. 소프트웨어의 사용, 복사, 수정, 합병, 배포, 배포, 숭고 및/또는 소프트웨어의 사본을 판매 할 권한을 포함하여 제한없이 소프트웨어를 처리 할 수 있도록 소프트웨어를 제공 할 권한이 없습니다.
위의 저작권 통지 및이 권한 통지는 소프트웨어의 모든 사본 또는 실질적인 부분에 포함되어야합니다.
이 소프트웨어는 상업성, 특정 목적에 대한 적합성 및 비 침해에 대한 보증을 포함하여 명시 적 또는 묵시적 보증없이 "그대로"제공됩니다. 어떠한 경우에도 저자 또는 저작권 보유자는 계약, 불법 행위 또는 기타, 소프트웨어 또는 소프트웨어의 사용 또는 기타 거래에서 발생하는 계약, 불법 행위 또는 기타의 행동에 관계없이 청구, 손해 또는 기타 책임에 대해 책임을지지 않습니다.