https://github.com/ccakes/p5-spotify-control
Perl interface for controlling a local instance of Spotify
https://github.com/ccakes/p5-spotify-control
Last synced: 5 months ago
JSON representation
Perl interface for controlling a local instance of Spotify
- Host: GitHub
- URL: https://github.com/ccakes/p5-spotify-control
- Owner: ccakes
- License: bsd-3-clause
- Created: 2015-01-01T09:49:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-27T00:12:31.000Z (over 11 years ago)
- Last Synced: 2024-12-30T14:56:33.488Z (over 1 year ago)
- Language: Perl
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# Spotify-Control
This is a simple Perl interface for controlling a local instance of Spotify. I've only tested it on OS X but it doesn't use anything too specialised so should work fine on Linux and BSD. Windows is untested.
## Installation
Installation is straight forward using cpanm
```bash
cpanm -i git@github.com:ccakes/p5-spotify-control.git
```
## Usage
```perl
use Spotify::Control;
my $spot = Spotify::Control->new;
say $spot->status->{playing} ? "Currently playing" : "Currently paused";
$spot->play(uri => 'spotify:track:5bj4hb0QYTs44PDiwbI5CS');
```
## Contributing
The main items on the list is an Applescript and D-BUS interface. Following that, a standard format for returning the status across all the implementations, possibly as an object.
- [ ] Spotify::Control::Applescript
- [ ] Spotify::Control::DBUS
- [ ] Standardise ->status response