Skip to content

Commit

Permalink
Merge pull request #27 from OpenVoiceOS/release-0.1.9a2
Browse files Browse the repository at this point in the history
Release 0.1.9a2
  • Loading branch information
JarbasAl authored Nov 20, 2024
2 parents 0a0a044 + d57452f commit ec25447
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Changelog

## [0.1.7a1](https://github.com/OpenVoiceOS/skill-ovos-spotify/tree/0.1.7a1) (2024-11-05)
## [0.1.9a2](https://github.com/OpenVoiceOS/ovos-skill-spotify/tree/0.1.9a2) (2024-11-20)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-spotify/compare/0.1.6a1...0.1.7a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-skill-spotify/compare/0.1.9a1...0.1.9a2)

**Merged pull requests:**

- fix:allow workshop 3.0.0 [\#20](https://github.com/OpenVoiceOS/skill-ovos-spotify/pull/20) ([JarbasAl](https://github.com/JarbasAl))
- drop backend client [\#26](https://github.com/OpenVoiceOS/ovos-skill-spotify/pull/26) ([JarbasAl](https://github.com/JarbasAl))

## [0.1.6a1](https://github.com/OpenVoiceOS/skill-ovos-spotify/tree/0.1.6a1) (2024-10-31)
## [0.1.9a1](https://github.com/OpenVoiceOS/ovos-skill-spotify/tree/0.1.9a1) (2024-11-19)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-spotify/compare/0.1.5a1...0.1.6a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-skill-spotify/compare/0.1.8a1...0.1.9a1)

**Merged pull requests:**

- fix:allow workshop 3.0.0 [\#18](https://github.com/OpenVoiceOS/skill-ovos-spotify/pull/18) ([JarbasAl](https://github.com/JarbasAl))
- fix:allow workshop 3.0.0 [\#24](https://github.com/OpenVoiceOS/ovos-skill-spotify/pull/24) ([JarbasAl](https://github.com/JarbasAl))

## [0.1.5a1](https://github.com/OpenVoiceOS/skill-ovos-spotify/tree/0.1.5a1) (2024-10-15)
## [0.1.8a1](https://github.com/OpenVoiceOS/ovos-skill-spotify/tree/0.1.8a1) (2024-11-17)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-spotify/compare/0.1.4...0.1.5a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-skill-spotify/compare/0.1.7...0.1.8a1)

**Merged pull requests:**

- fix:update\_requirements [\#16](https://github.com/OpenVoiceOS/skill-ovos-spotify/pull/16) ([JarbasAl](https://github.com/JarbasAl))
- fix: skilljson [\#22](https://github.com/OpenVoiceOS/ovos-skill-spotify/pull/22) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
7 changes: 7 additions & 0 deletions locale/en-us/skill.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Spotify Skill",
"examples": [
"play motorhead in spotify",
"play heavy metal"
]
}
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ovos-utils>=0.1.0
ovos-utils>=0.5.0
ovos-bus-client>=0.0.9,<2.0.0
ovos-workshop>=0.0.16,<3.0.0
ovos-backend-client>=0.1.0,<2.0.0
spotipy
ovos-workshop>=0.0.16,<4.0.0
spotipy
6 changes: 2 additions & 4 deletions spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

import requests
import spotipy
from ovos_backend_client.api import OAuthApi
from ovos_backend_client.database import OAuthTokenDatabase, OAuthApplicationDatabase
from ovos_utils.oauth import OAuthTokenDatabase, OAuthApplicationDatabase, get_oauth_token
from ovos_utils.log import LOG
from ovos_utils.parse import match_one, fuzzy_match, MatchStrategy
from ovos_utils.xdg_utils import xdg_config_home
Expand Down Expand Up @@ -47,8 +46,7 @@ def is_token_expired(token_info: dict):

@staticmethod
def get_access_token():
t = OAuthApi().get_oauth_token(OAUTH_TOKEN_ID,
auto_refresh=True)
t = get_oauth_token(OAUTH_TOKEN_ID, auto_refresh=True)
# TODO auto_refresh flag not working
if OVOSSpotifyCredentials.is_token_expired(t):
LOG.warning("SPOTIFY TOKEN EXPIRED")
Expand Down
4 changes: 2 additions & 2 deletions version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 1
VERSION_BUILD = 7
VERSION_ALPHA = 0
VERSION_BUILD = 9
VERSION_ALPHA = 2
# END_VERSION_BLOCK

0 comments on commit ec25447

Please sign in to comment.