solved RSS feeds for each host?

hansd007
@hansd007
10 years ago
50 posts
Is there a way to create RSS feeds of each hosts/users radio shows?

So you could subscribe to a specific user's RSS feed and get all the latest shows which are published.

I am not just talking about following another user, but actual RSS feeds.
updated by @hansd007: 06/15/14 05:01:02AM
michael
@michael
10 years ago
7,717 posts
There is a module that reads feeds INTO jamroom. I don't think anyones created one that sends RSS out of a profile yet.

It certainly could be done, just hasn't been yet.
brian
@brian
10 years ago
10,148 posts
hansd007:
Is there a way to create RSS feeds of each hosts/users radio shows?

So you could subscribe to a specific user's RSS feed and get all the latest shows which are published.

I am not just talking about following another user, but actual RSS feeds.

Yes - this is already supported "out of the box" with the Feed reader module. It provides a Magic View for all DataStore modules - the format is:

siteurl/feed/<module_url>/<profile_url>

i.e.: https://www.jamroom.net/feed/action/the-jamroom-network

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
Excellent, thanks Brian.

You are talking about this Feed Reader right? http://www.jamroom.net/the-jamroom-network/networkmarket/72/rss-feed-reader

FYI, couldn't download it for some reason and I am logged in. Just takes me to my profile page when I click the download button.
brian
@brian
10 years ago
10,148 posts
Yeah that's the one - I just downloaded it here without a problem. Let me check if there is a listener that could be messing it up. You can also install it form your marketplace (recommended) in your JR.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
I was able to download it while logged in as a "regular" member, so the download should be working.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
Ok, it's working for me now...that was weird.

Thanks.
hansd007
@hansd007
10 years ago
50 posts
Is there a way to output the audio file URL of show in the feed?

ie: http://pulse.bamradionetwork.com/feed/radio/grammar-girl
brian
@brian
10 years ago
10,148 posts
hansd007:
Is there a way to output the audio file URL of show in the feed?

ie: http://pulse.bamradionetwork.com/feed/radio/grammar-girl

Yeah - you can customize the RSS feed to suit your needs:

1) as the master, go into ACP -> Listing -> Feed Reader
2) click on the "templates" tab
3) click on "modify" to the right of the "rss.tpl" file.

Update the foreach loop from this:

<item>
    <title>{$item.title}</title>
    <link>{$item.link}</link>
    <description>{$item.description|jrCore_format_string:$item.profile_quota_id|strip_tags}</description>
    <pubDate>{$item.pubdate}</pubDate>
</item>

to something like this:

<item>
    <title>{$item.title}</title>
    <link>{$item.link}</link>
    <description>
    {if $_post.module == 'jrAudio'}
        Listen to this song here: {$jamroom_url}/{$item.profile_url}/{$module_url}/{$item._item_id}/{$item.audio_title_url}
    {else}
        {$item.description|jrCore_format_string:$item.profile_quota_id|strip_tags}
    {/if}
    </description>
    <pubDate>{$item.pubdate}</pubDate>
</item>

Basically we put a small if/else branch in there to check if it is the Audio Module and we output something unique for it. Adjust the custom text to suit your needs.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 05/15/14 06:36:33AM
hansd007
@hansd007
10 years ago
50 posts
@brian

Thank you.

I was able to change it but I am getting and error.

See here, http://pulse.bamradionetwork.com/feed/radio/grammar-girl
michael
@michael
10 years ago
7,717 posts
It looks like something is malformed in your xml file.

you can use this online service to check that your XML is valid.
http://validator.w3.org/#validate_by_uri

This is your page:
http://validator.w3.org/check?uri=http%3A%2F%2Fpulse.bamradionetwork.com%2Ffeed%2Fradio%2Fgrammar-girl&charset=%28detect+automatically%29&doctype=Inline&group=0

it shows XML errors.

Looks like you need an end
<description>
in there.

<item>
    <title>{$item.title}</title>
    <link>{$item.link}</link>
    <description>
    {if $_post.module == 'jrAudio'}
        Listen to this song here: {$jamroom_url}/{$item.profile_url}/{$module_url}/{$item._item_id}/{$item.audio_title_url}
    {else}
        {$item.description|jrCore_format_string:$item.profile_quota_id|strip_tags}
    {/if}</description>
    <pubDate>{$item.pubdate}</pubDate>
</item>
brian
@brian
10 years ago
10,148 posts
Yep I was missing the closing tag in my post - fixed that. Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
@brian,

Thanks, I got it working.

Sorry to be a pain in the a$$, but what I wanted was to have a link to the mp3 file of that show.

I got that working by using the following path,

{$jamroom_url}/radio/download/audio_file/{$item._item_id}

However, I get the following error when accessing that URL "Error: Offsite media downloads are blocked".

I have set ALLOW_ALL_DOMAINS in the Global config.

Any ideas.
brian
@brian
10 years ago
10,148 posts
hansd007:
@brian,

Thanks, I got it working.

Sorry to be a pain in the a$$, but what I wanted was to have a link to the mp3 file of that show.

I got that working by using the following path,

{$jamroom_url}/radio/download/audio_file/{$item._item_id}

However, I get the following error when accessing that URL "Error: Offsite media downloads are blocked".

I have set ALLOW_ALL_DOMAINS in the Global config.

Any ideas.

ACP -> Audio Support -> uncheck the "Block Downloads" Global Config option.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
@brian,

Yes, that was already unchecked. I can download audio files by clicking the download icon but cannot with the direct URL to the audio file,

ie: http://pulse.bamradionetwork.com/radio/download/audio_file/9/wccr.paigeweingarten.wma
brian
@brian
10 years ago
10,148 posts
Looks like the ALLOW_ALL_DOMAINS is only setup for streaming - that's going to need to be added to the download support as well - I'll get that in for the next release.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags