<br><br><div class="gmail_quote">On Mon, Jun 28, 2010 at 1:11 PM, Alessandro Diaferia <span dir="ltr">&lt;<a href="mailto:alediaferia@gmail.com">alediaferia@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br><br><div class="gmail_quote">2010/6/28 Hayri Bakici <span dir="ltr">&lt;<a href="mailto:thehayro@gmail.com" target="_blank">thehayro@gmail.com</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Hey guys!<br><br>Here is a quick update about the Plasma Media Center backends in writing a dataengine in JS.<br><br>The DateEngine really runs (thanks to aaron :) )<br>For now, it can make a flickr.photo.search requests get the response and parse the xml, and display it on the dataEngine.<br>




I had to paste the xml to script lib into my dataengine, due to &quot;include&quot; problems. I know that a JS plasmoid has a command<br><br>plasmoid.include(&#39;libsomething.js&#39;);<br><br>however it doesn&#39;t work with my dataengine (although i used engine.include(&#39;libsomething.js&#39;); )<br>




If you are wondering why the dataengine data, such as &quot;published date&quot; or &quot;keywords&quot; is empty, then it is because of flickr: there should be a specific getPhotoInfo request when you want to get the information.<br>




<br>the next thing is to write the &quot;fetch addons&quot; function (waiting for aaron ;) ) in this DataEngine and extract my request-response-parseXml code into an Addon.<br>btw. i remember that the addon should have some kind of a main function? how should the addon give its information to the DateEngine?<br>


</blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>Another thing I was wondering about the MediaData API: since we merged the &quot;video&quot; and &quot;photo&quot; API together, there are still attributes that are disjunct. should i just drop them for now?<br></blockquote>


<div> </div></div></div><div>Which one of them?  We can eventually use an associative array though.</div></div></blockquote><div><br>it was duration, and embeddedHTML for Video. for Photo there is albumID, but i think we can firstly ignore that.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im"><br><br>

the code can be found here:<br><br>git://<a href="http://gitorious.org/lilflickr/lilflickr.git" target="_blank">gitorious.org/lilflickr/lilflickr.git</a><br><br><br>cheers<br>
<br></div><div class="im">_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></div></blockquote></div><br>I&#39;m really happy with the progresses you reached so far! Keep rocking :)<div>Cheers.<br clear="all"><br>-- <br>Alessandro Diaferia<br>KDE Developer<br>KDE e.V. member<br><br>
</div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br>