Browse Source

Add "artist" to RSS channel parser

master
matthew-carroll 7 years ago
committed by GitHub
parent
commit
49e5b7630a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/domain/rss_feed.dart

+ 3
- 0
lib/domain/rss_feed.dart View File

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


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


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


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


Loading…
Cancel
Save