sheetsync: Special case "<all>" in playlist tags to mean []

this avoids empty string meaning [] which is dangerous since it's easy to write accidentially.
pull/313/head
Mike Lang 2 years ago
parent c36976dcca
commit dd8385ccd8

@ -370,6 +370,10 @@ class SheetSync(object):
tags = self.column_parsers['tags'](tags) tags = self.column_parsers['tags'](tags)
if not tags: if not tags:
continue continue
# special-case for the "all everything" list,
# we don't want "no tags" to mean "all videos" so we need a sentinel value.
if tags == ["<all>"]:
tags = []
playlist_id = playlist_id.strip() playlist_id = playlist_id.strip()
if len(playlist_id) != 34 or not playlist_id.startswith('PL'): if len(playlist_id) != 34 or not playlist_id.startswith('PL'):
continue continue

Loading…
Cancel
Save