Skip to content

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

deezer-cli

Introduction

deezer-cli is a command line interface to Deezer. It consumes the ability of AppleScript on OSX to send JavaScript commands to any Safari instance.

In the current setup Deezer is set as the second tab in Safari. Therefore, any command will target the second tab of the first Safari instance AppleScript will get hold on. The number of the tab can be changed in the deezer shellscript itself.

Available commands

usage: /Users/matthiaskuech/build/deezer-cli//deezer [--help] <command>
Control Playback:
play play track
pause pause track
next play next track
prev play previous track
Information:
track get title of track
status show playback status
Control Deezer Window:
title get title of Deezer window
goto change url of Deezer window
activate activate window if Deezer is not loaded yet. Will be run at every start.
Help:
usage this message

Example

$ deezer status
▶
$ deezer track
Motörhead - Shine
$ deezer pause
$ deezer status
◼
$ deezer next
$ deezer track
The Mars Volta - Televators
$ deezer play
$ deezer status
▶
$ deezer goto https://www.deezer.com/en/album/1206014

Setup

You will have to explicitly grant the right of accessing web contents with JavaScript to AppleScript. This can be done by activating Allow JavaScript from Apple Events option in Safari.

About

A Deezer command line interface for browser based Deezer

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages