added ignore recent parts
This commit is contained in:
parent
e00dda22a1
commit
cc41e949a9
@ -53,6 +53,13 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
recent_parts = []
|
recent_parts = []
|
||||||
|
|
||||||
|
if 'use_marked_playlists' in data['recents']:
|
||||||
|
if data['recents']['use_marked_playlists']:
|
||||||
|
for playlist in [i for i in data['playlists'] if 'include_in_recents' in i]:
|
||||||
|
if playlist['include_in_recents']:
|
||||||
|
recent_parts += [i for i in playlist['playlists']]
|
||||||
|
|
||||||
|
else:
|
||||||
for playlist in [i for i in data['playlists'] if 'include_in_recents' in i]:
|
for playlist in [i for i in data['playlists'] if 'include_in_recents' in i]:
|
||||||
if playlist['include_in_recents']:
|
if playlist['include_in_recents']:
|
||||||
recent_parts += [i for i in playlist['playlists']]
|
recent_parts += [i for i in playlist['playlists']]
|
||||||
|
Loading…
Reference in New Issue
Block a user