[−][src]Trait mygpoclient::directory::RetrieveEpisodeData
Required methods
fn retrieve_episode_data(
&self,
podcast: Url,
url: Url
) -> Result<Episode, Error>
&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 episodepodcast
: 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)?;