~cnx/fead

4aba8c380b57ee05415dc0b275b8ce9dd8b7dafb — Nguyễn Gia Phong 3 months ago 9ff89ac main 0.1.3
Fix matching of content:encoded in RSS
1 files changed, 2 insertions(+), 2 deletions(-)

M src/fead.py
M src/fead.py => src/fead.py +2 -2
@@ 15,7 15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

__version__ = '0.1.2'
__version__ = '0.1.3'

from argparse import ArgumentParser, FileType, HelpFormatter
from asyncio import gather, open_connection, run


@@ 83,7 83,7 @@ def parse_rss_item(xml):
            time = parsedate_to_datetime(child.text)
        elif child.tag == 'description':
            description = child.text
        elif child.tag == 'content:encoded' and not description:
        elif child.tag.endswith('}encoded') and not description:
            description = child.text
    if not description:
        description = xml.text