Verify that all relevant metadata maps properly to RSS/Atom for iTunes

Description

None

Activity

Show:
A
September 8, 2011, 5:11 PM
Edited

4 hours:
Remaining:
keywords need to be mapped
subject needs to be mapped

Sergio Feria
September 23, 2011, 8:13 PM

with the image tag thats now working for the cover image; I'm trying to change the the image tag, to make an <itunes:image href="..."> tag also appear. I understand how the cover art workflow adds the attachment for the image, but I don't understand where the current image tag is generated. In AbstractFeedGenerator.java, there's a setImage method, but that just adds a content:encoded tag. What do I need to change to add the itunes:image tag?

Josh: See the RomeFeed class, which converts matterhorn's notion of feeds into Rome's object model. Rome is the library we use for creating feeds.
I've attached a patch that may help… it looks like the ITunesFeedExtension image is never added to Rome.

Sergio Feria
September 23, 2011, 8:15 PM

trouble getting keywords to appear in the feeds. I know that the keywords are in the episode dublincore.xml in oc:keywords, and I know that in order for them to appear in the feed, they need to be in the solr results. What I don't know is how to obtain the keywords from the MediaPackage. Is the proper way to search for and parse the dublin core catalog, or is there a more direct way to key the keywords?

My last attempt:

String seriesId = mediaPackage.getSeries();
if (seriesId != null) {

DublinCoreCatalog catalog = null;
try {
catalog = seriesService.getSeries(seriesId);
} catch (SeriesException e) {
logger.warn("Unable to load series {}", seriesId);
} catch (NotFoundException e) {
}
keywords = catalog.getAsText(PROPERTY_KEYWORDS, LANGUAGE_ANY, null);
}

Josh: The keywords should be part of the search result item. You should have this object if you're building a feed.
Definitely don't call out to services while building feeds, or you'll kill the server performance wise. Use the search result objects where possible.

Sergio Feria
September 23, 2011, 8:15 PM

the feeds for itunes need to have the category tags for episodes. ( <itunesu:category itunesu:code="{category}" /> ) Whats the proper manner to generate this format of a tag?

Josh: We're using the iTunes extension for Rome, so it should be in there. Take a look at ITunesFeedExtension.setCategories. If you're using eclipse, you can right click on that method and choose "Open Call Hierarchy". Notice that only a unit test is calling this, so nobody is populating the category in production code. Make sure the feed generators are including the iTunes extension in the feeds they produce.

Sergio Feria
October 6, 2011, 4:55 PM

Resolved with the exception of itunes:category which is also in a separate ticket.

Assignee

Sergio Feria

Reporter

A

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure