Closed timuckun closed 1 year ago
I learned a little more about itunes:episodeType
at Apple's Help Page for their podcast RSS extensions.
Not answering your question: but guessing at a solution that changes the ruby/rss implementation!
Perhaps adding episodeType
to the item
section of the itunes-specific code in this repo would be a way to get the data? https://github.com/ruby/rss/blob/master/lib/rss/itunes.rb#L267 - I am suggesting that this list of tags could be extended to also know about the episodeType
?
Hope this helps - and do make a PR if you feel you want to pursue it.
I think that if there was a way to access a tag by name it would be a more generic solution so that the code doesn't have to change every time somebody decides to add a tag to their RSS feed.
Maybe even adding a hook where I could write a couple of lines of code would be OK.
I've implemented it and released a new version.
We'll not provide accessors for unknown tags. It's by design.
I have the following code
Is there any way to access the itunes::episodeType attribute? More generically is there a way to access tags that the parser doesn't know about?