Skip to content

Issue #70 Add Disabled attribute #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build/lib/libpytunes/Library.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def getSongs(self):
s.playlist_only = 'Playlist Only' in attributes
s.apple_music = 'Apple Music' in attributes
s.protected = 'Protected' in attributes
s.disabled = 'Disabled' in attributes

self.songs[int(trackid)] = s

Expand Down
2 changes: 2 additions & 0 deletions build/lib/libpytunes/Song.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Song:
playlist_only = None (Bool)
apple_music = None (Bool)
protected = None (Bool)
disabled = False (Boolean)
"""
name = None
track_id = None
Expand Down Expand Up @@ -87,6 +88,7 @@ class Song:
playlist_only = None
apple_music = None
protected = None
disabled = False

def __iter__(self):
for attr, value in iteritems(self.__dict__):
Expand Down
1 change: 1 addition & 0 deletions libpytunes/Library.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def getSongs(self):
s.playlist_only = 'Playlist Only' in attributes
s.apple_music = 'Apple Music' in attributes
s.protected = 'Protected' in attributes
s.disabled = 'Disabled' in attributes

self.songs[int(trackid)] = s

Expand Down
2 changes: 2 additions & 0 deletions libpytunes/Song.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Song:
playlist_only = None (Bool)
apple_music = None (Bool)
protected = None (Bool)
disabled = False (Boolean)
"""
name = None
track_id = None
Expand Down Expand Up @@ -87,6 +88,7 @@ class Song:
playlist_only = None
apple_music = None
protected = None
disabled = False

def __iter__(self):
for attr, value in iteritems(self.__dict__):
Expand Down