FAQ  •  Register  •  Login

Update Groovy 1.8.6

<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Sun Mar 04, 2012 4:02 pm

Update Groovy 1.8.6

Hi,

Would it be possible to update Groovy to 1.8.6 in the next update?

I encountered some problems when developing my first plugin. I needed the enhanced getText method and the use of requestProperties. The site didn't liked that there wasn't a User-agent so i couldn't get the right content.

It works for me now because i manually updated it but the i don't want to annoy other users with some update this and that stuff only because of my plugin.

BTW: serviio is awesome!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 04, 2012 5:45 pm

Re: Update Groovy 1.8.6

look at the plugin guide. there are some methods you can use to get content with a specific useg-agent
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Sun Mar 04, 2012 7:52 pm

Re: Update Groovy 1.8.6

You mean the openUrl method? Will have a look at that. Thanks!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 04, 2012 9:14 pm

Re: Update Groovy 1.8.6

yes
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Tue Mar 06, 2012 7:43 pm

Re: Update Groovy 1.8.6

Hm, i'm a little bit clueless.

Whatever i do he doesn't find the method.

groovy.lang.MissingMethodException: No signature of method: Gamestar.openUrl() is applicable for argument types: (java.net.URL, java.lang.String) values: [http://www.gamestar.de/videos/rss/videos.rss, ...]

log and getFFmpegUserAgent works fine.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 06, 2012 8:48 pm

Re: Update Groovy 1.8.6

look at Vimeo, Hypem or Gamespot plugins on how to use it
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Tue Mar 06, 2012 9:13 pm

Re: Update Groovy 1.8.6

Thanks, helped a lot.

openUrl has to be written as openURL. It's wrong in the documentation.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 06, 2012 9:42 pm

Re: Update Groovy 1.8.6

thanks, will fix it

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.