-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from geotribu/refactor/sanitize-rss-reader
refactor(rss): move RSS reader to its own folder
- Loading branch information
Showing
16 changed files
with
554 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#! python3 # noqa: E265 | ||
from .custom_datatypes import RssItem # noqa: F401 | ||
from .rss_reader import RssMiniReader # noqa: F401 | ||
from .splash_changer import SplashChanger # noqa: F401 |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! python3 # noqa: E265 | ||
|
||
# Standard library | ||
from dataclasses import dataclass | ||
from typing import Optional | ||
|
||
|
||
@dataclass | ||
class RssItem: | ||
"""Dataclass describing a RSS channel item.""" | ||
|
||
abstract: Optional[str] = None | ||
authors: Optional[list[Optional[str]]] = None | ||
categories: Optional[list[Optional[str]]] = None | ||
date_pub: Optional[tuple[int, ...]] = None | ||
guid: Optional[str] = None | ||
image_length: Optional[str] = None | ||
image_type: Optional[str] = None | ||
image_url: Optional[str] = None | ||
title: Optional[str] = None | ||
url: Optional[str] = None |
Oops, something went wrong.