mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
use KEY, NAME, and PARSER to define parsers instead of hardcoding in init
This commit is contained in:
parent
36f0646501
commit
8ce93ff787
13 changed files with 88 additions and 28 deletions
|
@ -48,3 +48,8 @@ def parse_shaarli_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]:
|
|||
tags=None,
|
||||
sources=[rss_file.name],
|
||||
)
|
||||
|
||||
|
||||
KEY = 'shaarli_rss'
|
||||
NAME = 'Shaarli RSS'
|
||||
PARSER = parse_shaarli_rss_export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue