Forum: Ruby on Rails Podcast API?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2d0d904abb31102b049ad60e47c7af8e?d=identicon&s=25 Bart Gajderowicz (bart)
on 2007-01-19 16:31
(Received via mailing list)
Hi,
I'm looking into developing an API for publishing videso/audio/etc to
iTunes using Rails.  Has anyone done anything like this? or can point
me in the right direction?  The web doesn't seem to have anything on
it, regarding Rails or other technologies.

Thanks
2d0d904abb31102b049ad60e47c7af8e?d=identicon&s=25 Bart Gajderowicz (bart)
on 2007-09-25 22:36
(Received via mailing list)
Thanks Rick!
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 Rick Olson (Guest)
on 2007-09-25 22:42
(Received via mailing list)
On 1/14/07, Bart <bart@bartgdev.com> wrote:
>
> Hi,
> I'm looking into developing an API for publishing videso/audio/etc to
> iTunes using Rails.  Has anyone done anything like this? or can point
> me in the right direction?  The web doesn't seem to have anything on
> it, regarding Rails or other technologies.
>
> Thanks

iTunes uses RSS.  Just publish RSS with the itunes tags, and anyone
can add that feed to itunes and subscribe.  Yahoo has some media
extensions to RSS's enclosure element as well.

http://www.apple.com/itunes/store/podcaststechspecs.html
http://help.yahoo.com/l/us/yahoo/podcasts/podcasts...

--
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com
15c80c9bf8be5ba6e5eeac9cb0304464?d=identicon&s=25 Ed Hickey (Guest)
on 2007-09-25 22:49
(Received via mailing list)
you might also look at OPML parsing since many of the podcatchers use
it...and if you want people to be able to export their subscriptions
into
your app itd be good to have a parser.

here's one i've used in the past (i didn't write it, but it works)

# parse_opml (opml_node, parent_names=[])
#
# takes an REXML::Element that has OPML outline nodes as children,
# parses its subtree recursively and returns a hash:
# { feed_url => [parent_name_1, parent_name_2, ...] }
#
def parse_opml(opml_node, parent_names=[])
  feeds = {}
  opml_node.elements.each('outline') do |el|
    if (el.elements.size != 0)
      feeds.merge!(parse_opml(el, parent_names +
[el.attributes['text']]))
    end
    if (el.attributes['xmlUrl'])
      feeds[el.attributes['xmlUrl']] = parent_names
    end
  end
  return feeds
end

require 'rexml/Document'

opml = REXML::Document.new(File.read('ipodder-subscriptions.opml'))
feeds = parse_opml(opml.elements['opml/body'])


On 1/14/07, Bart <bart@bartgdev.com> wrote:
>
>
> Thanks Rick!
>
>
> >
>


--
Ed Hickey
Developer
Litmus Media
816-533-0409
ehickey@litmusmedia.com
A Member of Think Partnership, Inc
www.ThinkPartnership.com
Amex ticker symbol: THK
This topic is locked and can not be replied to.