from ytplom.primitives import HandledException, NotFoundException
-# default configuration
-DEFAULTS = {
- 'api_key': '',
- 'allow_file_edit': True,
- 'background_color': '#ffffff',
- 'host': '127.0.0.1', # NB: to be found remotely, use '0.0.0.0'!
- 'link_originals': True,
- 'port': 8090,
- 'port_remote': 8090,
- 'remote': '192.168.1.100',
- 'queries_cutoff': '',
- 'tags_default': ['new'],
- 'tags_display_whitelist': [],
- 'tags_prefilter_whitelist': [],
- 'tags_prefilter_needed': [],
-}
-
# type definitions for mypy
DatetimeStr = NewType('DatetimeStr', str)
QuotaCost = NewType('QuotaCost', int)
return DatetimeStr(datetime.now().strftime(TIMESTAMP_FMT))
+# default configuration
+DEFAULTS = {
+ 'api_key': '',
+ 'allow_file_edit': True,
+ 'background_color': '#ffffff',
+ 'host': '127.0.0.1', # NB: to be found remotely, use '0.0.0.0'!
+ 'link_originals': True,
+ 'port': 8090,
+ 'port_remote': 8090,
+ 'remote': '192.168.1.100',
+ 'queries_cutoff': _now_string(),
+ 'tags_default': ['new'],
+ 'tags_display_whitelist': [],
+ 'tags_prefilter_whitelist': [],
+ 'tags_prefilter_needed': [],
+}
+
+
class TagSet:
"""Collection of tags as used in VideoFile.tags."""