Page 1 of 1

Update Groovy 1.8.6

PostPosted: Sun Mar 04, 2012 4:02 pm
by Lockhead
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!

Re: Update Groovy 1.8.6

PostPosted: Sun Mar 04, 2012 5:45 pm
by zip
look at the plugin guide. there are some methods you can use to get content with a specific useg-agent

Re: Update Groovy 1.8.6

PostPosted: Sun Mar 04, 2012 7:52 pm
by Lockhead
You mean the openUrl method? Will have a look at that. Thanks!

Re: Update Groovy 1.8.6

PostPosted: Sun Mar 04, 2012 9:14 pm
by zip
yes

Re: Update Groovy 1.8.6

PostPosted: Tue Mar 06, 2012 7:43 pm
by Lockhead
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.

Re: Update Groovy 1.8.6

PostPosted: Tue Mar 06, 2012 8:48 pm
by zip
look at Vimeo, Hypem or Gamespot plugins on how to use it

Re: Update Groovy 1.8.6

PostPosted: Tue Mar 06, 2012 9:13 pm
by Lockhead
Thanks, helped a lot.

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

Re: Update Groovy 1.8.6

PostPosted: Tue Mar 06, 2012 9:42 pm
by zip
thanks, will fix it