mirror of
https://github.com/YGGverse/rssto.git
synced 2026-04-01 09:35:28 +00:00
implement allowed_tags config option, format config, update documentation comments
This commit is contained in:
parent
89cd7cb9cf
commit
b34d7cdcdd
3 changed files with 110 additions and 54 deletions
|
|
@ -15,18 +15,21 @@ pub struct Mysql {
|
|||
pub struct Channel {
|
||||
/// RSS feed source
|
||||
pub url: Url,
|
||||
/// Limit channel items (unlimited by default)
|
||||
/// Limit latest channel items to crawl (unlimited by default)
|
||||
pub items_limit: Option<usize>,
|
||||
/// Save item title
|
||||
/// Save Channel item title in the database (currently not in use)
|
||||
pub persist_item_title: bool,
|
||||
/// Save item description
|
||||
/// Save Channel item description in the database (currently not in use)
|
||||
pub persist_item_description: bool,
|
||||
/// Scrape title by CSS selector
|
||||
/// * None to ignore
|
||||
/// * None to use Channel item title if exists or fail to continue
|
||||
pub content_title_selector: Option<Selector>,
|
||||
/// Scrape description by CSS selector
|
||||
/// * None to ignore
|
||||
/// * None to use Channel item description if exists or fail to continue
|
||||
pub content_description_selector: Option<Selector>,
|
||||
/// Allowed tags
|
||||
/// * empty to strip all tags (default)
|
||||
pub allowed_tags: std::collections::HashSet<String>,
|
||||
/// Preload content images locally if `Some`
|
||||
/// * currently stored in the database
|
||||
pub persist_images_selector: Option<Selector>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue