[][src]Trait mygpoclient::directory::RetrieveEpisodeData

pub trait RetrieveEpisodeData {
    fn retrieve_episode_data(
        &self,
        podcast: Url,
        url: Url
    ) -> Result<Episode, Error>; }

Required methods

fn retrieve_episode_data(
    &self,
    podcast: Url,
    url: Url
) -> Result<Episode, Error>

Returns information for the episode with the given url that belongs to the given podcast

Parameters

  • url: media url of episode
  • podcast: podcast feed url

Examples

use mygpoclient::client::PublicClient;
use mygpoclient::directory::RetrieveEpisodeData;
use url::Url;

let url = Url::parse("https://www.podtrac.com/pts/redirect.mp3/audio.wnyc.org/otm/otm011520_podextra.mp3").unwrap();
let podcast = Url::parse("http://feeds.wnyc.org/onthemedia?format=xml").unwrap();
let episode = PublicClient::default().retrieve_episode_data(url, podcast)?;

See also

Loading content...

Implementors

impl RetrieveEpisodeData for AuthenticatedClient[src]

impl RetrieveEpisodeData for DeviceClient[src]

impl RetrieveEpisodeData for PublicClient[src]

Loading content...