Skip to content

Commit ad5ab80

Browse files
authored
Merge pull request #10 from matthew-carroll/patch-1
Add "artist" to RSS channel parser
2 parents b67545c + 49e5b76 commit ad5ab80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/domain/rss_feed.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import 'package:xml/xml.dart';
1010

1111
class RssFeed {
1212
final String title;
13+
final String author;
1314
final String description;
1415
final String link;
1516
final List<RssItem> items;
@@ -32,6 +33,7 @@ class RssFeed {
3233

3334
RssFeed({
3435
this.title,
36+
this.author,
3537
this.description,
3638
this.link,
3739
this.items,
@@ -63,6 +65,7 @@ class RssFeed {
6365

6466
return RssFeed(
6567
title: findElementOrNull(channelElement, "title")?.text,
68+
author: findElementOrNull(channelElement, "author")?.text,
6669
description: findElementOrNull(channelElement, "description")?.text,
6770
link: findElementOrNull(channelElement, "link")?.text,
6871
items: channelElement.findElements("item").map((element) {

0 commit comments

Comments
 (0)