FAQ  •  Register  •  Login

Desirulez - Hindi TV

<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Sat Feb 15, 2014 3:42 am

Desirulez - Hindi TV

I've developed this web resource plugin for http://www.desirulez.net/

Steps to install:
How it Works:
    It fetches the latest 10 videos for the configured forum.
    It supports either Videotanker or Dailymotion embeded videos.
    Videotanker is searched first and if not found, it searches for Dailymotion

Edited (May 1st, 2014):

Updated desirulez.groovy to improve refresh time and support running on Windows properly.

.
Attachments
desirulez.groovy
Main Plugin File for desirulez
(12.29 KiB) Downloaded 737 times
Dailymotion.groovy
Extractor for Dailymotion
(9.11 KiB) Downloaded 731 times
Videotanker.groovy
Extractor for Videotanker
(7.76 KiB) Downloaded 685 times
Last edited by mhawaldar on Fri May 02, 2014 12:23 am, edited 2 times in total.
<<

serviio_snc

Serviio newbie

Posts: 8

Joined: Wed Aug 28, 2013 3:31 pm

Post Tue Apr 29, 2014 1:01 am

Re: Desirulez - Hindi TV

I downloaded the 3 groovy files into my plugin folder and restarted my PC. I see the following error/warnings in the serviio.log file:
==================================================================================================================
2014-04-28 19:56:14,744 INFO [PluginCompilerThread] Added Web Resouce plugin Dailymotion.groovy (Dailymotion.groovy), version: 1
2014-04-28 19:56:14,978 WARN [PluginCompilerThread] Plugin desirulez.groovy failed to compile: startup failed:
C:\Program Files\Serviio\plugins\desirulez.groovy: 198: unable to resolve class Videotanker
@ line 198, column 23.
def videotanker = new Videotanker()
^
1 error
:
:
2014-04-28 19:56:17,037 INFO [PluginCompilerThread] Added Web Resouce plugin Videotanker.groovy (Videotanker.groovy), version: 1
2014-04-28 19:56:17,193 INFO [PluginCompilerThread] Added Feed plugin YouTube (YouTube.groovy), version: 1
2014-04-28 19:56:26,738 INFO [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2014-04-28 19:56:27,482 INFO [PluginCompilerThread] Added Web Resouce plugin desirulez.groovy (desirulez.groovy), version: 1
====================================================================================================================

So there seems to be a warning message that desirulez.groovy failed to compile and later on there is an informational message that Web Resource plugin desirulez.groovy was added.

A folder does appear for the web resource (say Mahabharat) but no content in the folder.

Why is the compile failing? Any help is appreciated. Thanks.
<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Tue Apr 29, 2014 1:14 am

Re: Desirulez - Hindi TV

serviio_snc wrote:I downloaded the 3 groovy files into my plugin folder and restarted my PC. I see the following error/warnings in the serviio.log file:
==================================================================================================================
2014-04-28 19:56:14,744 INFO [PluginCompilerThread] Added Web Resouce plugin Dailymotion.groovy (Dailymotion.groovy), version: 1
2014-04-28 19:56:14,978 WARN [PluginCompilerThread] Plugin desirulez.groovy failed to compile: startup failed:
C:\Program Files\Serviio\plugins\desirulez.groovy: 198: unable to resolve class Videotanker
@ line 198, column 23.
def videotanker = new Videotanker()
^
1 error
:
:
2014-04-28 19:56:17,037 INFO [PluginCompilerThread] Added Web Resouce plugin Videotanker.groovy (Videotanker.groovy), version: 1
2014-04-28 19:56:17,193 INFO [PluginCompilerThread] Added Feed plugin YouTube (YouTube.groovy), version: 1
2014-04-28 19:56:26,738 INFO [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2014-04-28 19:56:27,482 INFO [PluginCompilerThread] Added Web Resouce plugin desirulez.groovy (desirulez.groovy), version: 1
====================================================================================================================

So there seems to be a warning message that desirulez.groovy failed to compile and later on there is an informational message that Web Resource plugin desirulez.groovy was added.

A folder does appear for the web resource (say Mahabharat) but no content in the folder.

Why is the compile failing? Any help is appreciated. Thanks.


I developed it in Linux and have been using it on Linux and box only. I'll test it on a Windows box and check how it works.

On a high level I suspect it is related to case sensitivity of operating system. but i'll take a look and try to fix it.
<<

serviio_snc

Serviio newbie

Posts: 8

Joined: Wed Aug 28, 2013 3:31 pm

Post Tue Apr 29, 2014 1:59 am

Re: Desirulez - Hindi TV

I just noticed that from the logs it looked like serviio was compiling the groovy files in alphabetical order. So when it compiled desirulez.groovy it had not compiled Videotanker.groovy yet. So I renamed the file Videotanker.groovy to cVideotanker.groovy and edited the source accordingly and looks like I am not getting any more errors in the logs. All three groovy files are compiling successfully.

I have to verify whether any content is showing up as yet. Will keep you posted. Thanks.
<<

serviio_snc

Serviio newbie

Posts: 8

Joined: Wed Aug 28, 2013 3:31 pm

Post Tue Apr 29, 2014 3:29 am

Re: Desirulez - Hindi TV

No content yet. Folders continue to be blank....
<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Tue Apr 29, 2014 3:34 am

Re: Desirulez - Hindi TV

serviio_snc wrote:No content yet. Folders continue to be blank....


Do you have logging turned on? Perhaps logs might provide some hints.
<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Tue Apr 29, 2014 9:28 am

Re: Desirulez - Hindi TV

I tried it and found following error in the logs:

  Code:
2014-04-29 05:15:34,282 DEBUG [FeedItemUrlExtractor] desirulez.groovy: Starting parsing resource: http://www.desirulez.net/forums/2022-Mahabharat
2014-04-29 05:15:34,284 DEBUG [FeedItemUrlExtractor] desirulez.groovy: DesiRulez - extractItems - http://www.desirulez.net/forums/2022-Mahabharat
2014-04-29 05:15:35,435 DEBUG [FeedItemUrlExtractor] desirulez.groovy: DesiRulez - extractItems: B4 openURL [http://www.desirulez.net/forums/2022-Mahabharat]
2014-04-29 05:15:35,761 DEBUG [SearchManager] Committing search index
2014-04-29 05:15:51,942 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.1.11:50559s
2014-04-29 05:15:52,942 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.1.11:50559s
2014-04-29 05:15:53,942 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.1.11:50559s
2014-04-29 05:15:54,942 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.1.11:50559s
2014-04-29 05:16:04,288 WARN  [FeedUpdaterThread] An error occured while parsing the online resource http://www.desirulez.net/forums/2022-Mahabharat, will try again soon: Unexpected error while invoking plugin (desirulez.groovy): The operation took more than 30000 ms and has been cancelled.
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (desirulez.groovy): The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:78)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:181)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:198)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:185)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:108)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
   at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:76)
   ... 4 more
2014-04-29 05:16:05,762 DEBUG [SearchManager] Committing search index


It appears that reaging the html page "http://www.desirulez.net/forums/2022-Mahabharat" took more than 30 seconds. Not sure why.
<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Tue Apr 29, 2014 10:03 am

Re: Desirulez - Hindi TV

The timeout issue went away by itself. Perhaps my laptop was running slow at that particular time.

Further more I found the issue. It was related to the way windows handles new-line (\r\n) Vs. Unix (\n).

I'm attaching the new plugin. Give it a try.
Attachments
desirulez.groovy
desirulez.groovy - Added support for windows
(12.28 KiB) Downloaded 611 times
<<

serviio_snc

Serviio newbie

Posts: 8

Joined: Wed Aug 28, 2013 3:31 pm

Post Wed Apr 30, 2014 2:23 am

Re: Desirulez - Hindi TV

It worked with the new groovy file. Thanks a bunch!! :D

But I still have Videotanker renamed to cVideotanker so it compiles first. Did you have to do any thing to compile the videotanker.groovy before the desirulez.groovy so that videotanker is available when desirulez is being compiled?
<<

mhawaldar

Serviio newbie

Posts: 14

Joined: Fri Dec 13, 2013 4:01 am

Location: New Jersey, US

Post Wed Apr 30, 2014 2:34 am

Re: Desirulez - Hindi TV

serviio_snc wrote:It worked with the new groovy file. Thanks a bunch!! :D

But I still have Videotanker renamed to cVideotanker so it compiles first. Did you have to do any thing to compile the videotanker.groovy before the desirulez.groovy so that videotanker is available when desirulez is being compiled?


Not Really. Even if it shows that error in the begining, it somehow picks it up correctly after a while. So I still have the name as Videotanker.groovy. And it works fine for me.

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 9 guests

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