-#!/usr/bin/env python
+#!/usr/bin/python2
# vim:ts=4:sts=4:sw=4:noet
from common import load_root_node, natural_sort
continue
if 0 in values:
return
- values = [reverse_map[value] for value in values]
+ values = [reverse_map[value] for value in values if value in reverse_map]
if allow_multi:
return values
else:
options.append((n.title, n))
if not n.can_download:
will_download = False
- if node.sort_children:
- options = natural_sort(options, key=lambda x: x[0])
+ options = natural_sort(options, key=lambda x: x[0])
result = choose(options, allow_multi=will_download)
if result is None:
if node.parent is not None: