Page 16 of 18

Re: SvtPlay

PostPosted: Tue Jul 01, 2014 12:14 pm
by ottomatic
kjesch wrote:I can now only see 6 entries in each category instead of up to 40 entries that I have specified and which I could see earlier. I have restarted my computer and I have checked it on 3 DLNA clients and there are only six entries in each category now.

Any ideas?


I'll have a look and will get back promptly.

It would be helpful if you could post at least one of the resource URL:s which you are using.

Regards

/ O

Re: SvtPlay

PostPosted: Tue Jul 01, 2014 3:36 pm
by kjesch

Re: SvtPlay

PostPosted: Wed Jul 02, 2014 6:29 am
by ottomatic


Kjell,

You need to use a browser and navigate to your preferred content, grab the current URL and edit your feeds to reflect the new structure of the site.

For you, these are the correct feeds:

http://www.svtplay.se/filmochdrama?tab=senaste
http://www.svtplay.se/dokumentar?tab=senaste
http://www.svtplay.se/kulturochnoje?tab=senaste
http://www.svtplay.se/samhalleochfakta?tab=senaste

Note that you no longer need the &sida=4 suffix to get more than 8 entries.

What I found when debugging is that you DO need to add the
  Code:
?tab=senaste
query string to get more than six items in the feed.
I'll look into automatically adding that query string when applicable.

Regards

/ O

Re: SvtPlay

PostPosted: Thu Jul 03, 2014 8:15 am
by kjesch
Perfect!

Thank you Ottomatic!

Regards

/Kjell

Re: SvtPlay

PostPosted: Thu Jul 03, 2014 10:42 pm
by hjkl123
Could you post the address for the news please.

I tried http://www.svtplay.se/nyheter?tab=senaste but it is not working.

Re: SvtPlay

PostPosted: Fri Jul 04, 2014 3:30 pm
by ottomatic
hjkl123 wrote:Could you post the address for the news please.

I tried http://www.svtplay.se/nyheter?tab=senaste but it is not working.


Hi,

That section does not follow the regular pattern, so I will have to adjust the plugin.

I may be able to do that this coming weekend.

Regards

/ O

Re: SvtPlay

PostPosted: Tue Jul 08, 2014 3:57 pm
by Kortaben
I can't get this to work please help me.

The svtplay.groovy is in the plugins folder.

Serviio console - Library - Online sources - add - source type "web resource" - source url "http://www.svtplay.se/filmochdrama?tab=senaste" - add - save

But nothing comes up... what more do I have to do?

Re: SvtPlay

PostPosted: Tue Jul 08, 2014 4:27 pm
by ottomatic
Kortaben wrote:I can't get this to work please help me.

The svtplay.groovy is in the plugins folder.

Serviio console - Library - Online sources - add - source type "web resource" - source url "http://www.svtplay.se/filmochdrama?tab=senaste" - add - save

But nothing comes up... what more do I have to do?


Try replacing the ffmpeg binary in the libs folder with the latest statically build binary, for your platform, from
http://ffmpeg.zeranoe.com/builds/

Also, right click on the feed definition and select "force update".

Sometimes it takes a while for online feed items to appear in your client / browser, if your serviio service is busy indexing your local content (and you have a lot of media files with errors, suchj as MP3 files lacking ID3 tags).

HTH

/ O

Re: SvtPlay

PostPosted: Tue Jul 08, 2014 4:54 pm
by Kortaben
Thank you ottomatic!

I found whats causing it, i disabled online category in presentation. :D

Re: SvtPlay

PostPosted: Fri Sep 05, 2014 8:43 am
by ottomatic
Hi everyone,

SvtPlay has restructured the markup, again, so the oplugin is currently broken.

I'm working on a fix.

Regards

/ O

Re: SvtPlay

PostPosted: Fri Sep 05, 2014 11:35 am
by ottomatic
Hi everyone,

New version of the plugin uploaded today.
This version accommodates for recent markup changes at the SvtPlay site.

It also gives better support for selecting your desired feed by clicking on a button ("Populäraste", "Senaste", "Sista chansen", "Klipp", "Regionala", etc) and copying the actual address from the browser window to use in your feed definition.

Regards

/ O

Re: SvtPlay

PostPosted: Fri Sep 12, 2014 8:37 pm
by kjesch
Thanks again Ottomatic! Your work is much appreciated.

/Kjell

Re: SvtPlay

PostPosted: Sun Sep 14, 2014 12:20 pm
by d2freak
Thanks a lot for the work you do on this plugin.

Re: SvtPlay

PostPosted: Fri Oct 10, 2014 1:25 pm
by kajojo
I am having problems getting this to work on a raspberry pi. I can see the following in the serviio log when it tries to refresh:
  Code:
2014-10-10 14:49:23,654 DEBUG [OnlineLibraryManager] Resource http://www.svtplay.se/barn?tab=populara not in cache, (re)loading it
2014-10-10 14:49:23,664 DEBUG [WebResourceParser] Parsing web resource 'http://www.svtplay.se/barn?tab=populara'
2014-10-10 14:49:23,668 DEBUG [WebResourceParser] Found matching url extractor (SvtPlay) for resource http://www.svtplay.se/barn?tab=populara
2014-10-10 14:49:23,670 DEBUG [FeedItemUrlExtractor] SvtPlay: Starting parsing resource: http://www.svtplay.se/barn?tab=populara
2014-10-10 14:49:23,678 DEBUG [FeedItemUrlExtractor] SvtPlay: SvtPlay: extracting items for url: http://www.svtplay.se/barn?tab=populara , maxItemsToRetrieve: 20
2014-10-10 14:49:32,118 DEBUG [SearchManager] Committing search index
2014-10-10 14:49:53,678 WARN  [FeedUpdaterThread] An error occured while parsing the online resource http://www.svtplay.se/barn?tab=populara, waiting for expiry time to try again: Unexpected error while invoking plugin (SvtPlay): The operation took more than 30000 ms and has been cancelled.
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (SvtPlay): 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

I have tried a bunch of different URLs with the same result. I can ping svtplay from the raspberry pi without issues. Anyone who has a clue on what I am doing wrong?

Re: SvtPlay

PostPosted: Fri Oct 10, 2014 1:52 pm
by ottomatic
kajojo wrote:I am having problems getting this to work on a raspberry pi. I can see the following in the serviio log when it tries to refresh:
  Code:
2014-10-10 14:49:23,654 DEBUG [OnlineLibraryManager] Resource http://www.svtplay.se/barn?tab=populara not in cache, (re)loading it
...

I have tried a bunch of different URLs with the same result. I can ping svtplay from the raspberry pi without issues. Anyone who has a clue on what I am doing wrong?


Hi,

I'm getting an error in my test script for the feed Url. Probably another markup change at the SvtPlay site which calls for a bug fix in the plugin.

I'll take a look and get back with more info.

Regards

/ O

Re: SvtPlay

PostPosted: Fri Oct 10, 2014 2:37 pm
by ottomatic
Hi everyone,

Posted a new version (1.1.18) of the plugin today which works with the latest markup at the SvtPlay site.

This version is the only one which works with the current site.

Regards

/ O

Re: SvtPlay

PostPosted: Sat Oct 11, 2014 1:06 pm
by kajojo
Thanks now it works!

Unfortunately the Raspberry Pi seems to be to slow to handle it so the video gets choppy after a minute or so with ffmpeg using most of the CPU.

Re: SvtPlay

PostPosted: Sat Oct 11, 2014 2:37 pm
by ottomatic
Kajojo,

Did you try selecting a lower quality? And have you tried different clients? There is a significant difference between remuxing the stream and reencoding it. The latter takes some cpu /gpu and will be required if the original stream is not compatible with your client profile (that is: the capabilites of your client).

Re: SvtPlay

PostPosted: Mon Oct 20, 2014 6:10 pm
by maikolmich
ciao a tutti....cosa bisogna fare per vedere i canali in streaming direttamente sulla tv con le fonti online???grazie

Re: SvtPlay

PostPosted: Tue Oct 28, 2014 10:08 pm
by ottomatic
Hi everyone,

I am considereing developing a new plugin for tv3play.se / tv6play.se / tv8play.se / tv10play.se

If you have any thoughts on this, please provide your input in this thread:

viewtopic.php?f=20&t=3442&p=95287#p95287

Regards

/ O