<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Access enclosures link and size in Daos/MySql/Items.php?</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Access enclosures link and size in Daos/MySql/Items.php? (reply)</title>
<content:encoded><![CDATA[<p>Hi tobi and thank you so much for spending time on answering my question!<br />
I understand your replay. but My problem is that i dont know how can I access value of <strong>get_link();</strong> in <strong>Items.php</strong>...</p>
<p>I can not give the values just by using <strong>$link = $enclosure-&gt;get_link();</strong>. this statement gives me nothing.</p>
<p>~~~~~~~~~~~~~~~<br />
<strong>daos/mysql/Items.php:</strong><br />
~~~~~~~~~~~~~~~</p>
<p>    public function add($values) {</p>
<p><strong><span style="color:#f00;">                    $en_link = *** enclosures link needed here. but how? ***;</span></strong></p>
<p>        \F3::get('db')-&gt;exec('INSERT INTO items (<br />
                    x,<br />
                    <strong>en_link</strong>,<br />
                    z<br />
                  ) VALUES (<br />
                    :x,<br />
                    :<strong>en_link</strong>,<br />
                    :z<br />
                  )',<br />
                 array(<br />
                    ':x'           =&gt; $x,<br />
                    ':<strong>en_link</strong>'    =&gt; <strong><span style="color:#f00;">$en_link</span></strong>,<br />
                    ':z'    =&gt; $z<br />
                                     ));<br />
    }    }</p>
<p><br />
}</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=577</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=577</guid>
<pubDate>Sun, 14 Jul 2013 10:45:21 +0000</pubDate>
<dc:creator>mohisanisel</dc:creator>
</item>
<item>
<title>Access enclosures link and size in Daos/MySql/Items.php? (reply)</title>
<content:encoded><![CDATA[<p>Hi Mohi,</p>
<p>selfoss uses SimplePie for fetching the RSS feed. get_enclosure is a function from SimplePie and returns a SimplePie_Enclosure object. This offers following functions:<br />
<a href="http://simplepie.org/wiki/reference/simplepie_enclosure/start">http://simplepie.org/wiki/reference/simplepie_enclosure/start</a></p>
<p>You have to check whether the enclosure object is available. I'm not sure, but I think some podcast feed just offers a simple link. In this case you don't get any further information without downloading the mp3/video file.</p>
<p>I hope this helps<br />
Regards<br />
 Tobi</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=574</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=574</guid>
<pubDate>Sat, 13 Jul 2013 17:01:49 +0000</pubDate>
<dc:creator>tobi</dc:creator>
</item>
<item>
<title>Access enclosures link and size in Daos/MySql/Items.php?</title>
<content:encoded><![CDATA[<p>hi...<br />
I'm trying to access the values related to enclosures of a rss feeds (podcasts) and add them into database in order to show to users. I worked alot with Selfoss and i just find ways to get thumbnails. but I need to catch other media as MP3s (for podcasts and store it to my database. I know i can do it with Daos/MySQL/Items.php but I dont know how can i find enclosures-&gt;link, enclosures-&gt;type &amp;  enclosures-&gt;size in the above file.<br />
how can I do it?<br />
(I have to say sorry for my bad english :-S)<br />
ThanQ</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=568</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=568</guid>
<pubDate>Fri, 12 Jul 2013 14:24:13 +0000</pubDate>
<dc:creator>mohisanisel</dc:creator>
</item>
</channel>
</rss>
