Forum topic: RSS

hi,
when i include openvideo nodes in an RSS feed they provide links to the source media, but I would like links to the transcoded .flv file, does anyone know who to change this?
(i've tried editing the RSS template (using contemplate module) and can add extra info to the RSS but not replace/remove the source media link)

thanks,
Joseph

In the future op_video will support multiple transcodings per file, so a particular format / bitrate could be produced for RSS feeds.

In the meantime, you can edit op_video_nodeapi() in field.inc and replace every 'source_file' with 'flv_file'.

hi,
now my problem is that in the RSS feed the enclosure type in the playlist is set to application/octet-stream and not video/x-flv, thus the flashplayer i'm feeding the RSS to (as playlist) rejects those entries

i've manually gone into the database and changed all the filemime entries (accidently changed it for everything, not just the flv files, but it works for now)

-joseph

hey joseph, I suppose this is a bit late, but I was able to change type to video/x-flv by changing type to 'video/x-flv' in field.inc:

$rss_items[] = array(
'key' => 'enclosure',
'attributes' => array(
'url' => file_create_url($video['flv_file']['filepath']),
'length' => $video['flv_file']['filesize'],
'type' => 'video/x-flv'
)
);

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options