sheetsync: Fix a bug where only show-in-description playlists were detected

Because a blank 5th column would make sheetsync ignore the row.
pull/313/head
Mike Lang 2 years ago
parent ad36d59985
commit 7dfb7b2544

@ -364,9 +364,13 @@ class SheetSync(object):
overwriting the entire playlists table""" overwriting the entire playlists table"""
playlists = [] playlists = []
for row in rows: for row in rows:
if len(row) != 5: if len(row) == 5:
continue
tags, _, name, playlist_id, show_in_description = row tags, _, name, playlist_id, show_in_description = row
elif len(row) == 4:
tags, _, name, playlist_id = row
show_in_description = ""
else:
continue
tags = self.column_parsers['tags'](tags) tags = self.column_parsers['tags'](tags)
if not tags: if not tags:
continue continue

Loading…
Cancel
Save