瀏覽代碼

Add "artist" to RSS channel parser

master
matthew-carroll 7 年之前
committed by GitHub
父節點
當前提交
49e5b7630a
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      lib/domain/rss_feed.dart

+ 3
- 0
lib/domain/rss_feed.dart 查看文件

@@ -10,6 +10,7 @@ import 'package:xml/xml.dart';

class RssFeed {
final String title;
final String author;
final String description;
final String link;
final List<RssItem> items;
@@ -32,6 +33,7 @@ class RssFeed {

RssFeed({
this.title,
this.author,
this.description,
this.link,
this.items,
@@ -63,6 +65,7 @@ class RssFeed {

return RssFeed(
title: findElementOrNull(channelElement, "title")?.text,
author: findElementOrNull(channelElement, "author")?.text,
description: findElementOrNull(channelElement, "description")?.text,
link: findElementOrNull(channelElement, "link")?.text,
items: channelElement.findElements("item").map((element) {


Loading…
取消
儲存