Skip to content

Commit

Permalink
added date time settings
Browse files Browse the repository at this point in the history
  • Loading branch information
happykhan committed Mar 17, 2019
1 parent 459caa3 commit 7050f3d
Show file tree
Hide file tree
Showing 15 changed files with 122 additions and 310 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ specify in the config file (default location is ~/.listen).
Spotify login
-------------
Spotify requires users to authorise 3rd party programs through the website.
Normally the first time you run this script it will open browser and redirect you
Normally the first time you run this script it will open a web browser and redirect you
to spotify, where a user would need to click authorise. Then it will come back to
redirect URL. As this isn't a website, it just comes back to localhost.
a redirect URL. As this isn't a website, I just send it back to localhost.

.. image:: docs/spotify_login.png

The script will want to know what the URL was, including the code. So copy this
and paste in the prompt.
from the address bar and paste in the prompt.

.. image:: docs/spotify_token.png

The token will be cached for a while so you do not need to do this everytime.
The token will be cached for a while so you do not need to do this every time.


License
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/authors.rst

This file was deleted.

163 changes: 0 additions & 163 deletions docs/conf.py

This file was deleted.

1 change: 0 additions & 1 deletion docs/contributing.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/history.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/index.rst

This file was deleted.

51 changes: 0 additions & 51 deletions docs/installation.rst

This file was deleted.

36 changes: 0 additions & 36 deletions docs/make.bat

This file was deleted.

1 change: 0 additions & 1 deletion docs/readme.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/usage.rst

This file was deleted.

1 change: 1 addition & 0 deletions listentoeverything/.cache-happykhan
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"access_token": "BQCVuOk25oou8Uq2gJAFrO9PhYDHgP0KKAxO8kx65J0ZXOkuHWkIstWAyNP_YFg5B4wWNHOc9-Xv6ZPZVysgHvZDDHh97VQOEWly7dDgF2E_VJFTXy-sP7dRL2wjpJC3OKBLXRuurNJ9dVLk4k1SVVFH0DRsbWVpUSBa5XcMTmRrvUO5LNc", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "AQAWlwWLo-CUO0eKndEDjEtn0tfnCyB5pjdbjojnJmIZjKqZaFbuv2euq9rWIX-_e_A6IY5OaRzfxLm9RPcLAB2ESL2LNV8FC11XjpBIhrc4SwWQjHlsU1gvT_3TiHIizDCtZQ", "scope": "playlist-modify-public", "expires_at": 1552822518}
10 changes: 5 additions & 5 deletions listentoeverything/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"""Console script for listentoeverything."""
import sys
import click

import listentoeverything
from os import path

@click.command()
def main(args=None):
@click.option("--config_file", default=path.join(path.expanduser("~"), ".listen.yml"), help="Path of config file")
def main(config_file):
"""Console script for listentoeverything."""
click.echo("Replace this message by putting your code into "
"listentoeverything.cli.main")
click.echo("See click documentation at http://click.pocoo.org/")
listentoeverything.main(config_file)
return 0


Expand Down

0 comments on commit 7050f3d

Please sign in to comment.