[GH-ISSUE #714] Local files #427

Closed
opened 2026-02-27 23:22:34 +03:00 by kerem · 4 comments
Owner

Originally created by @rsvedant on GitHub (Aug 2, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/714

how do I get local file song name using spotipy? coz ive noticed that if a playlist has a local file, it doesn't play the songs at all and gives no error, so i wrapped it up to a try except and made it continue the process on an exception and it works but it skips the local files, so how would I go about getting the song name of a local file that's in my playlist using spotipy?

Originally created by @rsvedant on GitHub (Aug 2, 2021). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/714 how do I get local file song name using spotipy? coz ive noticed that if a playlist has a local file, it doesn't play the songs at all and gives no error, so i wrapped it up to a try except and made it continue the process on an exception and it works but it skips the local files, so how would I go about getting the song name of a local file that's in my playlist using spotipy?
kerem 2026-02-27 23:22:34 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@stephanebruckert commented on GitHub (Aug 8, 2021):

Have a look at https://developer.spotify.com/documentation/general/guides/local-files-spotify-playlists/

You should be able to skip local tracks looking for is_local.

Also note that track infos might not be available depending on the quality of the local track metadata:

The local file information is read by the client software when the file was added to the playlist. Although as much information as possible is taken from the local file, some may be missing so this information is not guaranteed to exist for all local files.

<!-- gh-comment-id:894836345 --> @stephanebruckert commented on GitHub (Aug 8, 2021): Have a look at https://developer.spotify.com/documentation/general/guides/local-files-spotify-playlists/ You should be able to skip local tracks looking for `is_local`. Also note that track infos might not be available depending on the quality of the local track metadata: > The local file information is read by the client software when the file was added to the playlist. Although as much information as possible is taken from the local file, some may be missing so this information is not guaranteed to exist for all local files.
Author
Owner

@Peter-Schorn commented on GitHub (Aug 8, 2021):

See also https://support.spotify.com/us/article/local-files/. In particular, you need to make sure the playlist with the local file is downloaded on the Spotify desktop application and any other Spotify client (e.g., the iOS app) where you intend to play the track. I can confirm that local files work for me.

<!-- gh-comment-id:894843842 --> @Peter-Schorn commented on GitHub (Aug 8, 2021): See also https://support.spotify.com/us/article/local-files/. In particular, you need to make sure the playlist with the local file is downloaded on the Spotify desktop application and any other Spotify client (e.g., the iOS app) where you intend to play the track. I can confirm that local files work for me.
Author
Owner

@rsvedant commented on GitHub (Aug 9, 2021):

Oh okay, thanks a lot!

<!-- gh-comment-id:894963605 --> @rsvedant commented on GitHub (Aug 9, 2021): Oh okay, thanks a lot!
Author
Owner

@dieser-niko commented on GitHub (May 1, 2024):

Closing as the issue seems to be resolved.

<!-- gh-comment-id:2089089256 --> @dieser-niko commented on GitHub (May 1, 2024): Closing as the issue seems to be resolved.
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#427
No description provided.