diff --git a/.gitignore b/.gitignore index 0a4e5a3..85c64b1 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ doc/api/ .idea .dart_tool -.vscode/ \ No newline at end of file +.vscode/ diff --git a/lib/domain/itunes/itunes.dart b/lib/domain/itunes/itunes.dart index b8a52fa..2bac35f 100644 --- a/lib/domain/itunes/itunes.dart +++ b/lib/domain/itunes/itunes.dart @@ -100,7 +100,7 @@ class Itunes { var hours = 0; var minutes = 0; var seconds = 0; - var parts = s.split(':'); + var parts = s.split(s.contains(':') ? ':' : '.'); if (parts.length > 2) { hours = int.tryParse(parts[parts.length - 3]) ?? 0; } diff --git a/lib/domain/rss_item.dart b/lib/domain/rss_item.dart index ef9ff20..ad4c3ef 100644 --- a/lib/domain/rss_item.dart +++ b/lib/domain/rss_item.dart @@ -22,6 +22,7 @@ class RssItem { final RssSource? source; final RssContent? content; final Media? media; + final String? image; final RssEnclosure? enclosure; final DublinCore? dc; final Itunes? itunes; @@ -38,6 +39,7 @@ class RssItem { this.source, this.content, this.media, + this.image, this.enclosure, this.dc, this.itunes, diff --git a/pubspec.yaml b/pubspec.yaml index a094f2e..56b0b1f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,8 +5,8 @@ homepage: https://github.com/witochandra/webfeed environment: sdk: '>=2.12.0 <3.0.0' dependencies: - xml: "^5.0.2" - intl: "^0.17.0" + xml: ^6.2.2 + intl: ^0.18.0 dev_dependencies: test: ^1.3.0 - http: "^0.13.0" + http: ^0.13.0