~chiefnoah/nyaarss

05231bb47cafc876dcb4a054ac2db89488394c8a — Noah Pederson 1 year, 5 months ago 33b7e11
Update RSS feed lib to support non-standard item

The 'folder' key is non-standard RSS, so it wasn't making
it to the YaRSS part. Good thing it's included in the repo
1 files changed, 3 insertions(+), 0 deletions(-)

M yarss2/include/atoma/atoma/rss.py
M yarss2/include/atoma/atoma/rss.py => yarss2/include/atoma/atoma/rss.py +3 -0
@@ 81,6 81,7 @@ class RSSItem:
    torrent: Optional[RSSTorrent] = attr.ib()
    torrent_item: Optional[RSSTorrentItem] = attr.ib()
    content_encoded: Optional[str] = attr.ib()
    folder: Optional[str] = attr.ib()


@attr.s


@@ 227,6 228,7 @@ def _get_item(element: Element) -> RSSItem:
    torrent = _get_torrent_element(root)
    torrent_item = _get_torrent_item(root)
    content_encoded = get_text(root, 'content:encoded')
    folder = get_text(root, 'folder')
    return RSSItem(
        title,
        link,


@@ 241,6 243,7 @@ def _get_item(element: Element) -> RSSItem:
        torrent,
        torrent_item,
        content_encoded,
        folder,
    )