Include "import pylast" in both blocks
This commit is contained in:
parent
8647cbdd48
commit
f5ea06c6c9
|
@ -90,6 +90,8 @@ Alternatively, instead of creating `network` with a username and password,
|
|||
you can authenticate with a session key:
|
||||
|
||||
```python
|
||||
import pylast
|
||||
|
||||
SESSION_KEY_FILE = os.path.join(os.path.expanduser("~"), ".session_key")
|
||||
network = pylast.LastFMNetwork(API_KEY, API_SECRET)
|
||||
if not os.path.exists(SESSION_KEY_FILE):
|
||||
|
|
Loading…
Reference in a new issue