This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
upload-generator/sites.py
Bad Manners f3fabf2d8a Further improvements to descriptions/config
- Allow alt. keys to be used in config (eg. `eka` or `eka_portal` => `aryion`) and refactor out this logic
- Refactor duplicated config parsing logic
- Add `-D --define-option` args for script invokation conditions
- Allow `-f --file-path` arg to be used several times
- Allow `-f --file-path` to be used without setting up an input story or description
2024-01-11 15:32:42 -03:00

13 lines
439 B
Python

import itertools
import typing
SUPPORTED_SITE_TAGS: typing.Mapping[str, typing.Set[str]] = {
'aryion': {'aryion', 'eka', 'eka_portal'},
'furaffinity': {'furaffinity', 'fa'},
'weasyl': {'weasyl'},
'inkbunny': {'inkbunny', 'ib'},
'sofurry': {'sofurry', 'sf'},
}
INVERSE_SUPPORTED_SITE_TAGS: typing.Mapping[str, str] = \
dict(itertools.chain.from_iterable(zip(v, itertools.repeat(k)) for (k, v) in SUPPORTED_SITE_TAGS.items()))