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 the Session instance.

tracks_to_sync

Total number of tracks that needs download before everything from all playlists that are marked for offline is fully synchronized.

num_playlists

Number of playlists that are marked for offline synchronization.

sync_status

The OfflineSyncStatus or None if not syncing.

The OFFLINE_STATUS_UPDATED event is emitted on the session object when this is updated.

time_left

The number of seconds until the user has to get online and relogin.

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 the offline attribute on the Session instance.

queued_tracks

Number of tracks left to sync in current sync operation.

done_tracks

Number of tracks marked for sync that existed on the device before the current sync operation.

copied_tracks

Number of tracks copied during the current sync operation.

willnotcopy_tracks

Number of tracks marked for sync that will not be copied.

error_tracks

Number of tracks that failed syncing during the current sync operation.

syncing

If sync operation is in progress.