Offline sync¶
-
class
spotify.offline.
Offline
(session)[source]¶ Offline sync controller.
You’ll never need to create an instance of this class yourself. You’ll find it ready to use as the
offline
attribute on theSession
instance.-
property
tracks_to_sync
¶ Total number of tracks that needs download before everything from all playlists that are marked for offline is fully synchronized.
-
property
num_playlists
¶ Number of playlists that are marked for offline synchronization.
-
property
sync_status
¶ The
OfflineSyncStatus
orNone
if not syncing.The
OFFLINE_STATUS_UPDATED
event is emitted on the session object when this is updated.
-
property
time_left
¶ The number of seconds until the user has to get online and relogin.
-
property
-
class
spotify.
OfflineSyncStatus
(sp_offline_sync_status)[source]¶ A Spotify offline sync status object.
You’ll never need to create an instance of this class yourself. You’ll find it ready for use as the
sync_status
attribute on theoffline
attribute on theSession
instance.-
property
queued_tracks
¶ Number of tracks left to sync in current sync operation.
-
property
done_tracks
¶ Number of tracks marked for sync that existed on the device before the current sync operation.
-
property
copied_tracks
¶ Number of tracks copied during the current sync operation.
-
property
willnotcopy_tracks
¶ Number of tracks marked for sync that will not be copied.
-
property
error_tracks
¶ Number of tracks that failed syncing during the current sync operation.
-
property
syncing
¶ If sync operation is in progress.
-
property