[RELEASE] YleAreena (Video) Plugin - Finnish TV
#46
(2012-07-04, 11:31)szymex Wrote: I have made simple plugin for YLE Areena: http://dl.dropbox.com/u/2755245/plugin.v...na-0.1.zip
It requires installing latest yle-dl: http://users.tkk.fi/~aajanki/rtmpdump-yle/index-en.html

You can add more rss links by editing file: plugin.video.yleareena/categories.txt

I tried this but I'm getting following error when trying to play video: "script failed: yleareena.py"
Reply
#47
Do you have installed yle-dl? Can you give logs?
Reply
#48
(2012-09-04, 18:25)szymex Wrote: Do you have installed yle-dl? Can you give logs?

Yes, I installed yle-dl from the Windows installer but I'm not sure if I should do something with it after installation

Here's some error messages from the log file:

Quote:19:47:17 T:2776 NOTICE: -->Python Interpreter Initialized<--
19:47:28 T:2776 ERROR: Error Type: <class 'urllib2.URLError'>
19:47:28 T:2776 ERROR: Error Contents: <urlopen error timed out>
19:47:28 T:2776 ERROR: Traceback (most recent call last):
File "C:\Program Files (x86)\XBMC\addons\plugin.video.yleareena\yleareena.py", line 76, in <module>
yleAreenaAddon.handle()
File "C:\Program Files (x86)\XBMC\addons\plugin.video.yleareena\xbmcUtil.py", line 36, in handle
hdlFunc(int(pg), params)
File "C:\Program Files (x86)\XBMC\addons\plugin.video.yleareena\yleareena.py", line 59, in handleRssCategory
items = scrapRSS(args['link'])
File "C:\Program Files (x86)\XBMC\addons\plugin.video.yleareena\yleareena.py", line 11, in scrapRSS
response = urllib2.urlopen(req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 391, in open
response = self._open(req, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 409, in _open
'_open', req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 369, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1170, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1145, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
19:47:28 T:3684 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.yleareena/?view=rss-category&pg=1&link=http%3A%2F%2Fareena.yle.fi%2Ftv%2Flapset%2Fkaikki.rss%3Fjarjestys%3Duusin
19:47:28 T:3684 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.yleareena/?view=rss-category&pg=1&link=http%3A%2F%2Fareena.yle.fi%2Ftv%2Flapset%2Fkaikki.rss%3Fjarjestys%3Duusin) failed
Reply
#49
Hello,

I have Windows 7. I have installed XBMC Eden, YleAreena -lataaja and the Yleareena Addon. I can launch the addon, and see the list of programs in the submenus. But when I choose a program I get an error.

I have put the yle-dl folder to path so it starts where ever I want to launch it. The installation path is "C:\Program Files\YLEAreena\yle-dl-windows"-

I tried to launch video which address in browser from Areena is:
http://areena.yle.fi/tv/1634343

In XBMC log I get the following:

Code:
20:55:46 T:2000  NOTICE: -->Python Interpreter Initialized<--
20:55:46 T:2000   ERROR: Error Type: <type 'exceptions.AttributeError'>
20:55:46 T:2000   ERROR: Error Contents: 'module' object has no attribute 'check_output'
20:55:46 T:2000   ERROR: Traceback (most recent call last):
                                              File "C:\Users\popkone\AppData\Roaming\XBMC\addons\plugin.video.yleareena\yleareena.py", line 76, in <module>
                                                yleAreenaAddon.handle()
                                              File "C:\Users\popkone\AppData\Roaming\XBMC\addons\plugin.video.yleareena\xbmcUtil.py", line 28, in handle
                                                self.playVideo(link)
                                              File "C:\Users\popkone\AppData\Roaming\XBMC\addons\plugin.video.yleareena\xbmcUtil.py", line 40, in playVideo
                                                resolvedVideoLink =    self.handleVideo(link)
                                              File "C:\Users\popkone\AppData\Roaming\XBMC\addons\plugin.video.yleareena\yleareena.py", line 70, in handleVideo
                                                videoLink = scrapVideo(link)
                                              File "C:\Users\popkone\AppData\Roaming\XBMC\addons\plugin.video.yleareena\yleareena.py", line 28, in scrapVideo
                                                rtmpLink = subprocess.check_output(["yle-dl", url, "--showurl"])
                                            AttributeError: 'module' object has no attribute 'check_output'
20:55:46 T:1036   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.yleareena/?view=video&link=http%3A%2F%2Fareena.yle.fi%2Ftv%2F1634343]
Reply
#50
(2012-01-14, 14:20)szymex Wrote: If anyone interested here is a simply addon for ruutu.fi: http://dl.dropbox.com/u/2755245/plugin.video.ruutu.zip

Thanks. Works like a charm :-)
Reply
#51
Hi Xibalban, unfortunately I have not tested in under Windows, myself I only run XBMC under Ubuntu. Anyway, log error says timeout. Do you get it for all videos you try to play?


[quote='Xibalban' pid='1183584' dateline='1346776775']

Yes, I installed yle-dl from the Windows installer but I'm not sure if I should do something with it after installation

Here's some error messages from the log file:

[quote]19:47:17 T:2776 NOTICE: -->Python Interpreter Initialized<--
19:47:28 T:2776 ERROR: Error Type: <class 'urllib2.URLError'>
19:47:28 T:2776 ERROR: Error Contents: <urlopen error timed out>
19:47:28 T:2776 ERROR: Traceback (most recent call last):
File "C:\Program Files (x86)\XBMC\addons\plugin.video.yleareena\yleareena.py", line 76, in <module>
yleAreenaAddon.handle()
[/quote]

Reply
#52
Has anyone in Finland get Yle Arena to work?
Reply
#53
(2012-10-03, 13:43)realjobe Wrote: Has anyone in Finland get Yle Arena to work?
It works for me in Windows 7. I had to change the yleareena.py file a bit. This works for me:
Code:
def scrapVideo(url):
    
    ##Python < 2.5
        
        
    os.system("\"C:\\Program Files (x86)\\YLE Areena -lataaja\\yle-dl-windows\\yle-dl\" " + url + " --showurl > c:\\temp\\yleareenalink.txt");
    rtmpLink = open('c:\\temp\\yleareenalink.txt', 'r').read()
    
    ##Python >= 2.5    
    #rtmpLink = subprocess.check_output(["C:\Program Files (x86)\YLE Areena -lataaja\yle-dl-windows\yle-dl", url, "--showurl"])
    #rtmpLink = rtmpLink.strip('\n')
    return rtmpLink

Obviously you need to change the path if you installed yle-dl in some other folder. The path has to be written exactly as it is above with double backslashes etc. for it to work.
Reply
#54
?? There is a external DLL involved.. cool, work-around for the security measures.

Is this in Xbmc repository? What about ATV2 XBMC? obivously doesn't work?
Reply
#55
(2012-10-03, 15:09)xbmc_pete Wrote: It works for me in Windows 7. I had to change the yleareena.py file a bit. This works for me:
Code:
def scrapVideo(url):
    
    ##Python < 2.5
        
        
    os.system("\"C:\\Program Files (x86)\\YLE Areena -lataaja\\yle-dl-windows\\yle-dl\" " + url + " --showurl > c:\\temp\\yleareenalink.txt");
    rtmpLink = open('c:\\temp\\yleareenalink.txt', 'r').read()
    
    ##Python >= 2.5    
    #rtmpLink = subprocess.check_output(["C:\Program Files (x86)\YLE Areena -lataaja\yle-dl-windows\yle-dl", url, "--showurl"])
    #rtmpLink = rtmpLink.strip('\n')
    return rtmpLink

Obviously you need to change the path if you installed yle-dl in some other folder. The path has to be written exactly as it is above with double backslashes etc. for it to work.

Do you have focus problem? .cmd stole focus.
cmd open and i can see some RTMPDump error, then playpack start.
Reply
#56
(2012-10-03, 15:09)xbmc_pete Wrote:
(2012-10-03, 13:43)realjobe Wrote: Has anyone in Finland get Yle Arena to work?
It works for me in Windows 7. I had to change the yleareena.py file a bit. This works for me:
Code:
def scrapVideo(url):
    
    ##Python < 2.5
        
        
    os.system("\"C:\\Program Files (x86)\\YLE Areena -lataaja\\yle-dl-windows\\yle-dl\" " + url + " --showurl > c:\\temp\\yleareenalink.txt");
    rtmpLink = open('c:\\temp\\yleareenalink.txt', 'r').read()
    
    ##Python >= 2.5    
    #rtmpLink = subprocess.check_output(["C:\Program Files (x86)\YLE Areena -lataaja\yle-dl-windows\yle-dl", url, "--showurl"])
    #rtmpLink = rtmpLink.strip('\n')
    return rtmpLink

Obviously you need to change the path if you installed yle-dl in some other folder. The path has to be written exactly as it is above with double backslashes etc. for it to work.

Thank you Pete! I can verify that this works well in Windows 7. In Windows XP it is not working for me.


(2012-10-09, 21:08)piipes Wrote: Do you have focus problem? .cmd stole focus.
cmd open and i can see some RTMPDump error, then playpack start.

Yes, I have this same problem.
Reply
#57
I found that if i select "Use fullscreen rather than true fullscreen" option, cmd wont pop up.
Reply
#58
(2012-10-10, 13:14)piipes Wrote: I found that if i select "Use fullscreen rather than true fullscreen" option, cmd wont pop up.

But this is workaround and it does not work good allways. If someone know how to fix that issue, please let me know.

I can't see that rtmpdump error anymore, only empty .cmd. i just add this line to .py file.

os.system("\"C:\\Program Files (x86)\\YLE Areena -lataaja\\yle-dl-windows\\yle-dl\" " + url + " --rtmpdump path --showurl > c:\\temp\\yleareenalink.txt");

Do i have to add something like that? Or what that --rtmpdump path means?
--rtmpdump path "C:\\Program Files (x86)\\YLE Areena -lataaja\"

But really big thanks to szymex. Yleareena is just awesome for little kids.
I hope that we get ruutu and katsomo working in windows too.

Sorry my english.
Reply
#59
Hi,

I have fixed and updated ruutu.fi plugin. It uses 'old' site: http://arkisto.ruutu.fi.
I added browsing through all available tv series and adding (removing) favorites to main page. Adding is done from context menu.

http://dl.dropbox.com/u/2755245/plugin.v...u.v0.3.zip
Reply
#60
I would appreciate very much if someone could make a working Yle Areena -addon that´s easy to install. I haven´t quite figured out how this installation goes now (running Openelec). PS3´s Areena sucks big time.
Odroid C2 running CoreElec
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] YleAreena (Video) Plugin - Finnish TV0