显示播客列表中的剧集列表 [英] Display List of Episodes from List of Podcasts

查看:138
本文介绍了显示播客列表中的剧集列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试显示特定作者的播客频道列表。选择播客时,显示相关剧集。我可以独立完成各项任务,但无法弄清楚如何将两者联系起来。

I am trying to display a list of podcast channels by a particular author. When a podcast is selected, display the relevant episodes. I am able to do each independently, but can't figure out how to bridge the two.

现在我的作者播客列表是使用 iTunes App Store搜索API 。例如,您可以请求

Right now my list of podcasts by author is generated using the iTunes App Store Search API. For example, you can request

@"term" : @"twit", @"media" : @"podcast"

它将产生作者TWiT的所有播客频道。它包含许多通过JSON的有用元数据,例如标题,artworkUrl等。但没有直接链接到我能找到的播客。

and it will yield all the podcast channels by the author TWiT. It includes a lot of useful metadata via JSON, such as the title, artworkUrl, etc. But no direct link to the podcast that I can find.

我也可以显示通过解析 iTunes RSS标签获取特定播客的剧集列表从我通过在iTunes中订阅所述播客提取的硬编码频道链接,然后右键单击它并选择复制播客URL。再举两个例子可以得出:

I can also display a list of episodes for a specific podcast by parsing the iTunes RSS Tags from a hardcoded channel link that I extract by subscribing to said podcast in iTunes, then right-clicking on it and selecting Copy Podcast URL. TWiT again as an example would yield:

http://feeds.twit.tv/kh_video_hd.xml

这似乎分崩离析将两者联系起来。我找不到从iTunes App Store JSON元数据中提取直接播客网址的方法。

Where this seems to fall apart is linking the two. I can't find a way to extract the direct podcast URL from the iTunes App Store JSON metadata.

我看过从iTunes ID中查找播客源的URL ,但这似乎表明您只能通过 iTunes Store RSS Generator 中的Apple提供的Feed来实现。它仅限于预定义的标准(例如,顶级播客)。

I have seen the post on Finding the URL for podcast feeds from an iTunes id, but this seems to suggest you can only do it from the Apple supplied feeds from the iTunes Store RSS Generator. It is limited to predefined criteria (e.g. Top Podcasts).

建议或澄清将不胜感激。我现在唯一看到的路径就是从我的作者列表中对每个Podcasts频道进行硬编码。

Suggestions or clarifications would be appreciated. The only path I'm seeing right now is to hard code each of the Podcasts channels from my author list.

推荐答案

我认为我找到了钥匙。我不确定这是否通用,但在我测试过的播客中,JSON结果包含一个feedUrl参数。令人沮丧的是,搜索API页面

I think I've found the key. I'm not sure if this is universal, but in the podcasts I've tested with, the JSON results include a feedUrl parameter. Which frustratingly, is not mentioned on the Search API page.

feedUrl = "http://leoville.tv/podcasts/twit.xml";

传递从搜索API JSON结果中提取的此feedURL参数的值,并将其解析为RSS似乎提供我需要的东西。

Passing the value of this feedURL parameter pulled from the search API JSON results, and parsing it as RSS seems to deliver what I need.

这篇关于显示播客列表中的剧集列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆