ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

feed enclosures / podcast problems (resolved)

November 08, 2007 5:10pm

Subscribe [2]
  • #1 / Nov 08, 2007 5:10pm

    David J

    17 posts

    Hi, we are required to make our site live tomorrow morning and are having some last minute troubles getting our podcast feed to function.

    I had the following code running on a test server, before switching over to the actual domain, but it now seems to be broken and all things point to the feed enclosures plugin.

    {exp:rss:feed weblog="podcast"}
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <ttl>60</ttl>
    <title>mydomain.co.uk podcast</title>
    <link>http://mydomain.co.uk</link>
    <language>en</language>
    <copyright>copyright mydomain.co.uk</copyright>
    <itunes:subtitle>Podcast from mydomain.co.uk</itunes:subtitle>
    <itunes:author>mydomain.co.uk</itunes:author>
    <itunes:summary>Regular podcast.</itunes:summary>
    <description>Regular podcast.</description>
    <itunes:owner>
    <itunes:name>Some Name</itunes:name>
    <itunes:email>[email protected]</itunes:email>
    </itunes:owner>
    <itunes:image href="{homepage}templates/blog/images/podcast.jpg" >
    <itunes:category text="Religion & Spirituality">
        <itunes:category text="Christianity" >
        </itunes:category>
    
    {exp:weblog:entries weblog="podcast"}
    <item>
    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
    <itunes:author>mydomain.co.uk</itunes:author>
    <itunes:subtitle>{exp:xml_encode}{podcast-description}{/exp:xml_encode}</itunes:subtitle>
    <itunes:summary>{exp:xml_encode}{podcast-description}{/exp:xml_encode}</itunes:summary>
    {if podcast-file}{exp:feed_enclosures}<a href="http://mydomain.co.uk/media/podcast/{podcast-file}rel=enclosure">{podcast-file}</a>{/exp:feed_enclosures} {/if}
    <guid>{comment_url_title_auto_path}</guid>
    {gmt_entry_date format="%r"}</pubDate>
    <itunes:duration>{podcast-length}</itunes:duration>
    <itunes:keywords>schools, education, christian, church, assembly, lesson, student, pupil, RE</itunes:keywords>
    </item>
    {/exp:weblog:entries}
    </channel>
    </rss>
    {/exp:rss:feed}

    The test server which had the above code working was running php 5, but the current server is running php 4.47, not sure if that could be the problem or not.

    Along with the above code, i’ve tried even the most simple use of the feed enclosure plugin but cannot get it to work, in all cases where the enclosure tag should be, it instead is returned as nothing, just blank.

    I’m wondering if maybe this has to do with filetypes allowed? Could it be the server does not process m4a and mp3 files properly? Not sure if this would stop the feed enclosure plugin from working or not.

    Any insight or help would be extremely appreciated! The unfortunate part of all this, is we need to launch the site by tomorrow morning, eek!

    ExpressionEngine 1.6.0 - Build:  20070918
    Feed Enclosures (v.1.0.2)

    Thank You!
    David

  • #2 / Nov 08, 2007 5:11pm

    Lisa Wess

    20502 posts

    Hi, David.  What did your reduction test look like? Can you put the reduction test into a template and give us a link to it?

  • #3 / Nov 08, 2007 6:02pm

    David J

    17 posts

    Hi Lisa, thanks for the quick reply:

    Is this what you mean by a reduction test? I’ve tried this simple rss code, with just manually entering the file name/url:

    {exp:weblog:entries weblog="podcast" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    <item>
    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
    <link>{comment_url_title_auto_path}</link>
    <description>{exp:xml_encode}{podcast-description}{/exp:xml_encode}</description>
    {exp:feed_enclosures}
    <a href="http://domain.com/media/podcast/shutterbuggin_acapella.mp3rel=enclosure">shutterbuggin_acapella.mp3</a>
    {/exp:feed_enclosures}
    </item>
    {/exp:weblog:entries}

    It returns the following:

    <item>
    <title>another pod</title>
    <link>http://domain.com/podcast/entry/another-pod/</link>
    <description>Here we go again.</description>
      
    </item>
      
    <item>
    <title>The first one</title>
    <link>http://domain.com/podcast/entry/the-first-one/</link>
    <description>This is our first podcast, enjoy!</description>
      
    </item>

    Blank lines show up where the enclosure should be.

  • #4 / Nov 08, 2007 10:33pm

    Sue Crocker

    26054 posts

    David, Lisa meant do you have a link we can look it. If you need to, you can PM or email me the path.

  • #5 / Nov 09, 2007 1:11pm

    David J

    17 posts

    We managed to get this issue straightened out in time. Turns out that after the htpasswrd stuff was removed from the htaccess file (which we were using while the site was in development) then the feed enclosures plugin started working. Doesn’t make any sense to me, but at least its functioning now!

  • #6 / Nov 09, 2007 1:12pm

    Lisa Wess

    20502 posts

    Glad you got it working, David!  Thanks for posting the solution. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases