I have a podcast on Anchor that I am using as a News Flash Brief - I finally got it certified but when it plays it plays every episode rather than just the most recent. How do I fix this?
Yeah, it's as I expected. Your feed has 7 "item" elements. Under Feed format requirements, you'll see
Provide between 1 and 5 unique feed items at a time.
In order to only play the latest one, you'll have to modify your feed to only have 1 "item" instead of all. I'm not sure if Anchor gives you the ability to restrict the item count in your feed or not.
By default, the Flash Briefing skill will play all the items (up to 5) that you present it in your feed. What is the url of your feed?
I found the same problem.
I've written a script in Python that will take your Anchor.fm RSS feed and turn it into a single RSS entry. The script can be found in the blog post: ALEXA FLASH BRIEFING AND ANCHOR.FM RSS FEED. I've included the script below for so that people can use it. It works in Python 3, but probably works in Python 2.7 also.
## FortyFour-Three Query Script ## Single RSS feed item from Anchor.fm ## Verson 1.0 - 2019-03-19 # Import the xml library. We'll name it ET for ease. import xml.etree.ElementTree as ET # Import the web-page reading library import urllib.request ## RSS URL url = 'https://anchor.fm/s/94eb7c8/podcast/rss' ## Open the URL and read the page. uf = urllib.request.urlopen(url) tree_text = uf.read() ## Turns the RSS into an element. root = ET.fromstring(tree_text) ## If the counter is 0, then it doesn't remove the item ## If the counter is 1 (after the first element. Then the item is removed. counter = 0 for item in root.findall('item'): if counter == 0: counter = counter + 1 else: root.remove(item) ## Create an empty element tree. tree = ET.ElementTree() ## Set the root of the element tree with the XML that we have been ## working with. tree._setroot(root) ## Write it to a file. tree.write('podcast_rss.xml', encoding="utf-8", xml_declaration=True)
2 People are following this question.