FAQ  •  Register  •  Login

testing plugin out side serviio

<<

ttguy

Serviio lover

Posts: 63

Joined: Sun May 27, 2012 10:52 am

Post Mon Jun 18, 2012 2:52 pm

testing plugin out side serviio

So I am using the suggestion from http://wiki.serviio.org/doku.php?id=servio_plugins that says try to test your pluging outside of serviio

And so I have ran this

/usr/bin/serviio-0.6.2$ groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar plugins/Youtube.groovy
Caught: java.lang.NoClassDefFoundError: Lorg/restlet/Client;
java.lang.NoClassDefFoundError: Lorg/restlet/Client;
Caused by: java.lang.ClassNotFoundException: org.restlet.Client

Any ideas?
--
linux/Humax HDR-3000T
<<

ttguy

Serviio lover

Posts: 63

Joined: Sun May 27, 2012 10:52 am

Post Mon Jun 18, 2012 3:04 pm

Re: testing plugin out side serviio

Google was my friend. I found an old thread via google. I needed to add lib/org.restlet.jar to the class path.

groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar:lib/org.restlet.jar plugins/Youtube.groovy

Result: ContentURLContainer [fileType=VIDEO, contentUrl=http://o-o.preferred.exetel-syd1.v1.lscache3.c.youtube.com/videoplayback?upn=gq_Ktp2ctHo&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=904549%2C914073%2C909908%2C907217%2C907335%2C921602%2C919306%2C922600%2C919316%2C920704%2C912804%2C913542%2C919324%2C912706&mt=1340031316&ms=au&algorithm=throttle-factor&itag=35&ip=58.0.0.0&burst=40&sver=3&signature=B550D3A86CD76CE927EA2C787E767E69BD1DB8B9.09C4737CE704B4A7312364790AEE12CC4B22D492&source=youtube&expire=1340058184&key=yt1&ipbits=8&factor=1.25&cp=U0hTRVBQVl9NTkNOM19ISlpCOlBSbldKNEJZTkYy&id=5d9de710ad6a4a40, thumbnailUrl=http://i1.ytimg.com/vi/XZ3nEK1qSkA/default.jpg, live=false, expiresOn=Tue Jun 19 08:23:04 EST 2012, expiresImmediately=false, cacheKey=https://www.youtube.com/watch?v=XZ3nEK1qSkA&amp;feature=youtube_gdata_35]

I updated the Wiki to reflect this.
--
linux/Humax HDR-3000T

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 28 guests

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