dart_pod 0.1.0

  • Readme
  • Changelog
  • Installing
  • 44

A podcasts library for Dart #

Build Status Coverage Status Pub

Introduction #

dart_pod makes it easy to get information for a podcast from its feed URL. With just a single URL, dart_pod gives you access to:

  • A list of episodes with details and stream urls
  • Details about the show and its creators

all wrapped up in a drop-dead simple API for use in your Flutter or web projects.

Example #

See example/example.dart

import 'package:dart_pod/dart_pod.dart';

void main() async {
    var feed_url = "https://rss.art19.com/not-another-d-and-d-podcast"
    var naddpod = await Podcast.initFromURL(feed_url);

    List<Episode> episodes = naddpod.episodes;
    for (Episode e in episodes) {
        print("Episode: ${e.title} \n
               Description: ${e.description} \n
               Released: ${e.pubDate} \n
               Stream link: ${e.url} \n");

[0.1.0] - Version bump !!! #

  • Migrate Show class to Podcast for usability in larger projects
  • Update documentation
  • pub improvements
  • CI with Travis
  • Code coverage monitoring with coveralls and test_coverage

[0.0.2] - Clean up!!! #

  • Dartfmt all source code
  • Implement suggestions from pub.dartlang.org

[0.0.1] - First Release !!! #

  • Get shows from an RSS link
  • Wiki is created

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dart_pod: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dart_pod/dart_pod.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 31, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/src/models/podcast.dart. (-1 points)

Analysis of lib/src/models/podcast.dart reported 2 hints:

line 53 col 7: DO use curly braces for all flow control structures.

line 55 col 7: DO use curly braces for all flow control structures.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://jdiggity.me/ was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (xml).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and dart_pod.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-7 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is getting outdated. (-0.55 points)

The package was last published 52 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
http ^0.12.0+1 0.12.0+4
xml ^3.4.1 3.7.0 4.1.0
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
http_parser 3.1.4
meta 1.1.8
path 1.6.4
pedantic 1.9.0
petitparser 3.0.2
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.6.1
test_coverage ^0.2.0