View Single Post
Old 08-31-2010, 02:22 PM  
Jason Voorhees
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Location: Camp Crystal Lake.
Posts: 843
Quote:
Originally Posted by k0nr4d View Post
I would prefer RSS in it's current format. There is alot that it provides that a dump like that cannot. Nesting of elements for instance for instance:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<videos>
<updated>2010-07-20T00:00:00Z</updated> 
<video>
	<id>Video ID Number From Database</id>
	<title>Title of Video</title>
	<description>Description of Video</description>

	<tags>Comma,Separated,Keywords,Go,Here</tags>
	<paysite>Name Of Paysite</paysite>
	<clip_url>http://www.domain.com/path/to/videos/</clip_url>
	<screen_url>http://www.domain.com/path/to/thumbnails/</screen_url>
	<clips>
			<clip>
			<duration>20</duration>
			<width>640</width>
			<height>480</height>
			<flv>marta_sucks.flv</flv>
			<screens>
					<screen>marta.jpg</screen>
<screen>marta.jpg</screen>
			</screens>
			</clip>

			<clip>
			<duration>20</duration>
			<width>640</width>
			<height>480</height>
			<flv>jenna_fucks.flv</flv>
			<screens>
					<screen>jenna.jpg</screen>

			</screens>
			</clip>
			<clip>
			<duration>123</duration>
			<width>640</width>
			<height>480</height>
			<flv>kathy_anal.flv</flv>

			<screens>
					<screen>kathy.jpg</screen>
			</screens>
			</clip>
	</clips>
</video>

</videos>
Also, how hard is doing this?

PHP Code:
<?php
//Load the rssparse
  
$this->load->library('RSSParser', array('url' => 'http://link.to/rss.xml''life' => 2));
  
//Get six items from the feed
  
$data $this->rssparser->getFeed(6);

  foreach (
$data as $item) :
    
// do stuff with $item['title'], $item['description'], etc.
  
endforeach;  
?>
Jason Voorhees is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote