I’ll try that out!
Tell me then, what you think. :)
Does YLE Areena only work within .fi or are you asking for finnish testers because of the content?
I’m a finn, but I live in the UK, would be great to have that content on Plex! Let me know if it’s the latter and I’ll test it out.
According to their [specifications](http://areena.yle.fi/node/520), many of the streams should be watchable also abroad. Unfortunately, there's no indication of this within the plugin's interface, so you have to know what content to watch.
Maybe you could test if those work and then give a report :)
Edit: typos
Hi,
It works fine, but at least I have small but annoying feature. I do not know whether this is a bug or limitation on YLE’s stream server, but the buffering phase takes for ages. Is it actually downloading the whole stream to hard drive before playing it?
Off-topic: would we need a Finnish forum area here in Plex forums?
massive, nice to hear that the plug-in works for you!
Yes, the buffering is clearly an issue that needs some attention in the future… and is already noticed. I think it is mainly a Plex issue, at least to the extent of determining the optimal buffering dynamically for wmv files over mms. Maybe there’s going to be an improvement to this when the “official” framework gets released for plugin development.
For now, there’s a workaround for the buffering issue. You can press either space or ‘p’ on your keyboard when the buffering starts and the video stream should start playing immediately. I don’t know, and I’d be interested to know, whether it’s possible to skip the buffering using Apple Remote. You can also try to lower the cache sizes in Plex’s settings (Preferences->Preferences->Cache if I remember correctly).
Off-topic: What it comes to a Finnish forum area, I think all the Finns know English good enough
Thus, IMHO no need to encode discussions into Finnish.
Edit: damn typos
Finx,
I put up a page for App Store submission process:
http://wiki.plexapp.com/index.php?title=App_Store_Submission
Also we have an area for plugins that aren’t in the appstore yet:
http://wiki.plexapp.com/index.php/Unsupported_plugins
There is now a wiki page for this plugin.
I’m still having some irritating problems with unicode and exotic characters. Can’t seem to figure out what’s the problem. I can get them display correctly, but some functions do not work if the parameters include äåö kind of characters. I tried to convert the strings to unicode, but xpath doesn’t seem to work with them. :blink:
Can you let me know which framework methods are throwing exceptions with unicode strings? It's something we've run in to from time to time as well. I'm working on an overhaul of the framework & I'd love to handle string encoding internally & squash all these unicode problems :)
I’m currently working with a following scenario.
Part of page source looks like this:
<tr class="odd"><br />
<td class="category even"><br />
<a name="Ö1"/><br />
<strong id="_09">Ö</strong><br />
</td><br />
<td class="product odd"><br />
<a href="/hae?pid=877702">Österbotten: Efterlysningen</a><br />
</td><br />
<td class="count video even">0</td><br />
<td class="count audio odd">1</td><br />
<td class="date even">10.03.2009 klo 12:11</td><br />
</tr>
I've created an element of the page as follows:
element = XML.ElementFromString(HTTP.GetCached(AREENA_ROOT+path+VER, CACHE_HIGH), True)
And subsequently do some xpathing:
xpath = u"//table[contains(@class,'productlist')]/tbody/tr/td[position() = 3 and . != '0']/../td[1]/a[@name='Ö1']"<br />
items = element.xpath(xpath)
This does not yield any items. If I replace the 'Ö1' with 'O1' for instance, there are resulting items. There should also be with 'Ö1'.
There are no exceptions in the log. I assume, I'm wrong with this approach somehow.
Edit: OMG... I just realized that I had implemented this checking of not displaying content if there are no videos to the xpath instruction. And that's the reason there are no results. Goddamn feel so stupid now. :wacko:
If I have exotic characters like ‘äöå’ in the url, how should I pass them to XML.ElementFromString(HTTP.GetCached())? My search doesn’t seem to work because of this.
It’s frustrating. I get this in log, so everything should be in order, but theres no results if the keyword includes non-ascii characters.
20:16:57.743508: com.plexapp.plugins.areena : appendVideos: http://areena.yle.fi/hae?keyword=ässä+&filter=1,1&s=1&v=t<br />
20:16:58.114941: com.plexapp.plugins.areena : (Framework) Saved 'http://areena.yle.fi/hae?keyword=ässä+&filter=1,1&s=1&v=t' to the cache<br />
20:17:02.587616: com.plexapp.plugins.areena : (Framework) Response OK
This is how I construct the request URL in the code:
requestURL = AREENA_ROOT + command + id + filter + "&s=" + str(page) + VER
The variable 'id' is the problem here. It's the keyword in this case. I have tried to convert it to unicode before receiving it into the function. Interestingly, if I manually set id like this for instance before the requestURL construction it works:
id = "ässä"
Can't seem to figure out what's the prob here.
There’s definitely something in the way a SearchDirectoryItem puts characters to pathNouns.
For example, characters ‘mäki’ are transformed into pathNouns like this:
10:02:33.657667: com.plexapp.plugins.areena : pathNouns: ['SEARCH$Search', 'ma\xcc\x88ki'] count: 2
So there's two characters for an 'ä'. Maybe '¨' and 'a' ?
I think that's why it's difficult to transform these strings back to a proper form.
Edit: confirmed this also by writing to file. if pathNouns[1] is 'äö', writing it to a file results in: 'a¨o¨'
Any plans to further develop the plugin, in other words, to change the plugin the way
it works with YLE’s new and improved system as well ??
Cheers!
Not really. I have contemplated it, though. Unfortunately, I don't have enough time or energy at the moment. Maybe later this spring.
If anyone else is interested in developing the plugin, feel free to use the source if it's of any help. I could still be part of the project and offer my assistance to some extent.
I did some work to get the new flash based site to work with Plex. If anyones interested in using or improving it, the code is available at [http://github.com/lautis/plex-yle-areena](http://github.com/lautis/plex-yle-areena.).