File tree Expand file tree Collapse file tree 10 files changed +23
-35
lines changed Expand file tree Collapse file tree 10 files changed +23
-35
lines changed Original file line number Diff line number Diff line change 1+ ## 0.5.2
2+
3+ - Add support for RSS content tag.
4+
15## 0.5.1
26
37- Breaking change: Search provider is now passed when instantiating a Search object, rather than passing one at search time.
Original file line number Diff line number Diff line change 44/// Thrown if the connection times out, or we timeout
55/// waiting to receive the data.
66class PodcastTimeoutException implements Exception {
7- final String _message ;
7+ final String message ;
88
9- PodcastTimeoutException (this ._message );
9+ PodcastTimeoutException (this .message );
1010}
1111
1212/// Thrown if the search is cancelled.
1313class PodcastCancelledException implements Exception {
14- final String _message ;
14+ final String message ;
1515
16- PodcastCancelledException (this ._message );
16+ PodcastCancelledException (this .message );
1717}
1818
1919/// Thrown if we get an invalid response error.
2020class PodcastFailedException implements Exception {
21- final String _message ;
21+ final String message ;
2222
23- PodcastFailedException (this ._message );
23+ PodcastFailedException (this .message );
2424}
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ class Episode {
3636 /// Episode number
3737 int ? episode;
3838
39+ /// Content
40+ String ? content;
41+
3942 /// Length of the episode as a [Duration] .
4043 final Duration ? duration;
4144
@@ -54,6 +57,7 @@ class Episode {
5457 this .imageUrl,
5558 this .season,
5659 this .episode,
60+ this .content,
5761 this .chapters,
5862 });
5963}
Original file line number Diff line number Diff line change 44/// A class that represents the genre(s) the podcast is related to.
55class Genre {
66 /// Genre ID.
7- final int _id ;
7+ final int id ;
88
99 /// Genre name.
10- final String _name ;
10+ final String name ;
1111
12- Genre (this ._id, this ._name);
13-
14- const Genre ._(int id, String name)
15- : _id = id,
16- _name = name;
12+ const Genre (
13+ this .id,
14+ this .name,
15+ );
1716
1817 @override
1918 String toString () {
20- return '$_id : $_name ' ;
19+ return '$id : $name ' ;
2120 }
22-
23- int get id => _id;
24-
25- String get name => _name;
2621}
Original file line number Diff line number Diff line change 22// MIT license that can be found in the LICENSE file.
33
44import 'package:podcast_search/podcast_search.dart' ;
5- import 'package:podcast_search/src/model/genre.dart' ;
65
76/// A class that represents an individual Podcast within the search results. Not all
87/// properties may contain values for all search providers.
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import 'package:dio/dio.dart';
99import 'package:podcast_search/podcast_search.dart' ;
1010import 'package:podcast_search/src/model/chapter.dart' ;
1111import 'package:podcast_search/src/model/chapter_headers.dart' ;
12- import 'package:podcast_search/src/model/chapters.dart' ;
13- import 'package:podcast_search/src/model/episode.dart' ;
1412import 'package:podcast_search/src/model/funding.dart' ;
1513import 'package:podcast_search/src/model/locked.dart' ;
1614import 'package:podcast_search/src/search/base_search.dart' ;
@@ -299,6 +297,7 @@ class Podcast {
299297 imageUrl: item.itunes? .image? .href,
300298 season: item.itunes? .season,
301299 episode: item.itunes? .episode,
300+ content: item.content? .value,
302301 chapters: chapters,
303302 ));
304303 });
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ import 'dart:convert';
55
66import 'package:dio/dio.dart' ;
77import 'package:podcast_search/podcast_search.dart' ;
8- import 'package:podcast_search/src/model/attribute.dart' ;
9- import 'package:podcast_search/src/model/country.dart' ;
10- import 'package:podcast_search/src/model/language.dart' ;
11- import 'package:podcast_search/src/model/search_result.dart' ;
128import 'package:podcast_search/src/search/base_search.dart' ;
139
1410/// This class handles the searching. Taking the base URL we build any parameters
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import 'package:convert/convert.dart';
77import 'package:crypto/crypto.dart' ;
88import 'package:dio/dio.dart' ;
99import 'package:podcast_search/podcast_search.dart' ;
10- import 'package:podcast_search/src/model/attribute.dart' ;
11- import 'package:podcast_search/src/model/country.dart' ;
12- import 'package:podcast_search/src/model/language.dart' ;
13- import 'package:podcast_search/src/model/search_result.dart' ;
1410import 'package:podcast_search/src/search/base_search.dart' ;
1511
1612/// This class handles the searching. Taking the base URL we build any parameters
Original file line number Diff line number Diff line change 22// MIT license that can be found in the LICENSE file.
33
44import 'package:podcast_search/podcast_search.dart' ;
5- import 'package:podcast_search/src/model/attribute.dart' ;
6- import 'package:podcast_search/src/model/country.dart' ;
7- import 'package:podcast_search/src/model/language.dart' ;
8- import 'package:podcast_search/src/model/search_result.dart' ;
95import 'package:podcast_search/src/search/itunes_search.dart' ;
106import 'package:podcast_search/src/search/podcast_index_search.dart' ;
11- import 'package:podcast_search/src/search/providers/providers.dart' ;
127
138/// This class handles the searching. Taking the base URL we build any parameters
149/// that have been added before making a call to iTunes. The results are unpacked
Original file line number Diff line number Diff line change 11name : podcast_search
22description : A library for searching for podcasts, parsing podcast RSS feeds and obtaining episodes details. Supports searching via iTunes and PodcastIndex (preview).
33
4- version : 0.5.1
4+ version : 0.5.2
55homepage : https://github.com/amugofjava/podcast_search
66
77environment :
You can’t perform that action at this time.
0 commit comments