incorrect media:content/media:thumbnail url?

davidjg - February 5, 2009 - 16:56
Project:Media RSS
Version:6.x-2.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

When "File path" in an image field is not set, media rss works. If a file path is added to an imagefield (see filepath.png), the image is created there as expected, and imagecache creates images and thumbnails in a subdirectory by that name under the corresponding preset. Problem/question is that media rss doesn't seem to find images if subdirectory set--whatever I'm using to display media rss views works if no subdirectory, doesn't work if a subdirectory is set.

The description from preview has the right path (subdirectory called "gallery"...)

http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/image...

but media:content and media:thumbnail are missing the additional subdirectory

<media:content url="http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/imagecache/BigPicture/062808_0033.jpg" type="image/jpeg" />
<media:thumbnail url="http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/imagecache/BigPicture/062808_0033.jpg" />

I'm confused because this http://www.gurnetroad.com/test/feeds/faces/rss.xml seems to reference the right location.

Not sure if this is something in my setup or if I'm doing something wrong....

Thanks.

<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://www.gurnetroad.com/test/feeds/faces/rss.xml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>faces</title>
    <link>http://www.gurnetroad.com/test/feeds/faces/rss.xml</link>
    <description></description>
    <language>en</language>
        <item>
<title>062808_0033</title>
<link>http://www.gurnetroad.com/test/content/0628080033</link>
<description>&lt;a href=&quot;/test//test/content/0628080033&quot;&gt;&lt;img src=&quot;http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/imagecache/BigPicture/gallery/062808_0033.jpg&quot; alt=&quot;&quot; title=&quot;&quot;  width=&quot;990&quot; height=&quot;659&quot; /&gt;&lt;/a&gt;</description>
<category domain="http://www.gurnetroad.com/test/category/site-taxonomy/galleries/people/faces">Faces</category>
<pubDate>Thu, 05 Feb 2009 12:10:41 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">173 at http://www.gurnetroad.com/test</guid>
<media:content url="http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/imagecache/BigPicture/062808_0033.jpg" type="image/jpeg" />
<media:thumbnail url="http://www.gurnetroad.com/test/sites/www.gurnetroad.com.test/files/imagecache/BigPicture/062808_0033.jpg" />
</item>
  </channel>
</rss>

#1

Microbe - February 5, 2009 - 20:22

Thanks for the post. I was using the wrong function to create URL. Should be fixed in new version
Download MediaRSS-6.x-2.5

Thanks
Peter

#2

davidjg - February 5, 2009 - 21:22

Fantastic--quick test, looks great.

Thanks much for the fix.

--Dave

#3

Microbe - February 5, 2009 - 22:58
Status:active» fixed

great

#4

System Message - February 19, 2009 - 23:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.