default userpic

Need help creating Pandora Action Stream

Vote 0 Votes

Pandora has a nifty XML feed for a variety of their services, but I don't fully understand how to turn that into an Action Stream. From what I understand, all I need to do is modify the config.yaml file with the appropriate info for Pandora. Here's what I have so far:

pandora:
    songs:
        name: Songs
        description: Your bookmarked songs
        html_form: '[_1] bookmarked the song <a href="[_2]">[_3]</a>'
        html_params:
            - url
            - title
        url: 'feed://feeds.pandora.com/feeds/people/peter8298/favorites.xml'
        identifier: url
        xpath:
            foreach: //item
            get:
                created_on: pubdate/child::text()
                title: title/child::text()
                url: link/child::text()

When I throw that into the config.yaml file I can't access the user profiles page anymore, I just get this error:

Got an error: Error reading /nfs/c02/h05/mnt/23917/domains/mckellars.net/cgi-bin/plugins/ActionStreams/config.yaml: Hash line over-indented at /nfs/c02/h05/mnt/23917/domains/mckellars.net/cgi-bin/extlib/YAML/Tiny.pm line 272.

Clearly I'm missing some obvious step. Any ideas?

Reported on Movable Type 4.2

2 Replies

| Add a Reply
  • Hi Peter

    There's a built in Pandora service with the Action Streams plugin - does it do what you're looking to do?

    If not, Mark recently added a developer's guide to creating an action stream. I wonder if that helps?

  • If it does turn out that you need to keep working on this, you should know that the system's a bit unforgiving in places about errors in the YAML(as you've experienced). You should probably remove as much as possible and then add lines back in to figure out exactly what it's complaining about. At least then you'll what what you're expected to fix.

Add a Reply

Forum Groups

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008