[PR #1055] [MERGED] Examples directory updates #1141

Closed
opened 2026-02-28 00:03:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/1055
Author: @jonathan-huston
Created: 12/10/2023
Status: Merged
Merged: 1/12/2025
Merged by: @stephanebruckert

Base: masterHead: examples_updates


📝 Commits (4)

  • d3b3d4a Fixed scripts in examples directory that didn't work, deleted any redundant examples.
  • b211a13 Added examples for methods related to audiobooks, shows and episodes
  • 65516f9 Updated changelog
  • 8db314b Merge branch 'master' into examples_updates

📊 Changes

18 files changed (+268 additions, -57 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
examples/add_saved_episodes.py (+28 -0)
examples/add_saved_shows.py (+28 -0)
examples/check_show_is_saved.py (+31 -0)
examples/delete_saved_episodes.py (+28 -0)
📝 examples/follow_playlist.py (+8 -13)
examples/get_audiobook_chapters_info.py (+29 -0)
examples/get_audiobooks_info.py (+29 -0)
examples/playlist_add_items.py (+0 -12)
📝 examples/read_a_playlist.py (+1 -1)
📝 examples/remove_tracks_from_playlist.py (+2 -2)
📝 examples/replace_tracks_in_playlist.py (+1 -1)
📝 examples/show_artist_tracks.py (+0 -0)
📝 examples/show_tracks.py (+19 -15)
examples/test.py (+0 -11)
📝 examples/unfollow_playlist.py (+4 -2)
examples/user_saved_episodes.py (+29 -0)
examples/user_saved_shows.py (+29 -0)

📄 Description

  • Added example scripts to examples directory for the following methods:
    • Audiobooks: get_audiobooks(), get_audiobook_chapters()
    • Episodes: current_user_saved_episodes(), current_user_saved_episodes_add(), current_user_saved_episodes_delete()
    • Shows: current_user_saved_shows(), current_user_saved_shows_add(), current_user_saved_shows_contains()
  • Fixed any scripts in examples dir that didn't work
  • Deleted any duplicate scripts
    • playlist_add_items.py = add_tracks_to_playlist.py
    • test.py = show_my_saved_tracks.py

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/1055 **Author:** [@jonathan-huston](https://github.com/jonathan-huston) **Created:** 12/10/2023 **Status:** ✅ Merged **Merged:** 1/12/2025 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `examples_updates` --- ### 📝 Commits (4) - [`d3b3d4a`](https://github.com/spotipy-dev/spotipy/commit/d3b3d4a31b59c8b9576b53e6b32503c96fa3f96a) Fixed scripts in examples directory that didn't work, deleted any redundant examples. - [`b211a13`](https://github.com/spotipy-dev/spotipy/commit/b211a1312d461f9c60693a28a6295122b3f0584b) Added examples for methods related to audiobooks, shows and episodes - [`65516f9`](https://github.com/spotipy-dev/spotipy/commit/65516f96d1624a14566708ffcdf345974d9876a5) Updated changelog - [`8db314b`](https://github.com/spotipy-dev/spotipy/commit/8db314bbfa1e973b099f9dd758af2739874f29e8) Merge branch 'master' into examples_updates ### 📊 Changes **18 files changed** (+268 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `examples/add_saved_episodes.py` (+28 -0) ➕ `examples/add_saved_shows.py` (+28 -0) ➕ `examples/check_show_is_saved.py` (+31 -0) ➕ `examples/delete_saved_episodes.py` (+28 -0) 📝 `examples/follow_playlist.py` (+8 -13) ➕ `examples/get_audiobook_chapters_info.py` (+29 -0) ➕ `examples/get_audiobooks_info.py` (+29 -0) ➖ `examples/playlist_add_items.py` (+0 -12) 📝 `examples/read_a_playlist.py` (+1 -1) 📝 `examples/remove_tracks_from_playlist.py` (+2 -2) 📝 `examples/replace_tracks_in_playlist.py` (+1 -1) 📝 `examples/show_artist_tracks.py` (+0 -0) 📝 `examples/show_tracks.py` (+19 -15) ➖ `examples/test.py` (+0 -11) 📝 `examples/unfollow_playlist.py` (+4 -2) ➕ `examples/user_saved_episodes.py` (+29 -0) ➕ `examples/user_saved_shows.py` (+29 -0) </details> ### 📄 Description - Added example scripts to examples directory for the following methods: - Audiobooks: get_audiobooks(), get_audiobook_chapters() - Episodes: current_user_saved_episodes(), current_user_saved_episodes_add(), current_user_saved_episodes_delete() - Shows: current_user_saved_shows(), current_user_saved_shows_add(), current_user_saved_shows_contains() - Fixed any scripts in examples dir that didn't work - Deleted any duplicate scripts - playlist_add_items.py = add_tracks_to_playlist.py - test.py = show_my_saved_tracks.py --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#1141
No description provided.