Skip to content

Commit

Permalink
fix: skip spotify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Dec 1, 2024
1 parent fd904b8 commit b1dcb57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Music Caster by Elijah Lopez Changelog

5.22.0
- [UI] Added Português (Brazil) translation
- [Fix] URL playback

5.21.3
- [Fix] Auto update
Expand Down
3 changes: 2 additions & 1 deletion src/music_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,8 @@ def get_url_metadata(url, fetch_art=True) -> list:
if 'blocked it on copyright grounds' not in trace_back_msg:
attribute_error_reported = True
handle_exception(e)
elif url.startswith('https://open.spotify.com'):
# Spotify restricted web API access
elif url.startswith('https://open.spotify.com') and False:
# spotify metadata has already been fetched, so just get youtube metadata
if url in url_metadata and isinstance(url_metadata[url], dict):
metadata = url_metadata[url]
Expand Down
1 change: 1 addition & 0 deletions src/test_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ def test_resize_img(size):
'https://open.spotify.com/playlist/37i9dQZF1DXarRysLJmuju', # spotify playlist
),
)
@pytest.mark.skipif(True, reason='spotify web API access removal')
def test_spotify(url):
try:
metadata_list = get_spotify_tracks(url)
Expand Down

0 comments on commit b1dcb57

Please sign in to comment.