FAQ  •  Register  •  Login

CzechTV (CZ)

<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Fri Sep 06, 2013 1:34 pm

CzechTV (CZ)

Plugin for internet archive Czech TV http://www.ceskatelevize.cz/ivysilani/

Plugin supports following query parameters
    max_items=<num> overwrite maximum number of items/movie in category provided by serviio setting
    order=desc revers order of items.
example
http://www.ceskatelevize.cz/ivysilani/9 ... order=desc

Know problems:
plugin does not currently support link
http://www.ceskatelevize.cz/ivysilani/1 ... a-zeme-iv/
http://www.ceskatelevize.cz/ivysilani/1 ... uhe-sance/

Plugin has been tested on following link
http://www.ceskatelevize.cz/ivysilani/1 ... -vypravej/
http://www.ceskatelevize.cz/ivysilani/9 ... a-ostrove/
http://www.ceskatelevize.cz/ivysilani/1 ... are-mesto/
http://www.ceskatelevize.cz/ivysilani/1 ... -z-centra/
Attachments
CzechTV.groovy
initial version of plugin
(12.03 KiB) Downloaded 949 times
<<

Vasa79

Serviio newbie

Posts: 8

Joined: Wed Dec 19, 2012 11:38 am

Post Mon Sep 09, 2013 7:12 am

Re: CzechTV (CZ)

Great! Paráda!
<<

torrentonly

Serviio newbie

Posts: 2

Joined: Mon Sep 23, 2013 11:06 pm

Post Mon Sep 23, 2013 11:15 pm

Re: CzechTV (CZ)

There is "bug" in following line causing plugin error:

  Code:
def media_dat = page_hmlt =~ '</h3>[.\\s]*<p>(.*)</p>'


It is parsing date of video, but unfortunately, there is almost no rule, where this date is located. Sometimes it is in "h3" tag, sometimes in "p" tag. Maybe it should be ommited from parsing as it is not needed for successful streaming.
<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Tue Sep 24, 2013 2:57 pm

Re: CzechTV (CZ)

Please find version 2 of plug-in in attachment.

Version 2 fixes and changes

Attachments
CzechTV.groovy
Version 2
(13.44 KiB) Downloaded 1845 times
<<

torrentonly

Serviio newbie

Posts: 2

Joined: Mon Sep 23, 2013 11:06 pm

Post Wed Sep 25, 2013 7:23 pm

Re: CzechTV (CZ)

That was really fast. Thanks for quick fix. Now it it working flawlessly.
<<

posejdon

Serviio newbie

Posts: 4

Joined: Tue Aug 21, 2012 8:05 pm

Post Wed Dec 25, 2013 8:05 pm

Unescape special chars

Hi,
great work!
Unfortunately on same pages guys in Czech TV use for special letters HTML escaping instead of utf8 code, so it is necessary to import org.apache.commons.lang.StringEscapeUtils (included in serviio yet) and when getting the title convert it with unescapeHtml.
<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Wed Jan 08, 2014 2:25 pm

Re: CzechTV (CZ)

Hi,

version 3 is here.
    version 3 works with current web pages of Czech TV. Czech TV did a little change how to get media files.
    fix problem with HTTP escape encoding.
    new paremeter addDate=title
Plugin supports following query parameters
    max_items=<num> overwrite maximum number of items/movie in category provided by serviio setting
    order=desc revers order of items.
    log_level=<num> not implemented via request. it can be change in source code. See bellow for line
    private int log_level=1
    Set log level 1-10, 1 less log message, 10 maximum log message. Default log setting has to have DEBUG.
    Curetly use only 1 basic, 5 midle , 10 full detail
    addDdate=title Add relaase date to title of media. Some DLNA client does not display Release date.
    example
      Code:
    http://www.ceskatelevize.cz/ivysilani/902567-bob-a-bobek-kralici-z-klobouku/200350950010013-na-ostrove?max_items=30&order=desc

Attachments
CzechTV.groovy
Version 3
(14.07 KiB) Downloaded 559 times
<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Sat Jan 11, 2014 4:58 pm

Czech TV Version 4

New version

Czech TV again change url for list of media link
Attachments
CzechTV.groovy
Vesion 4
(14.07 KiB) Downloaded 578 times
<<

posejdon

Serviio newbie

Posts: 4

Joined: Tue Aug 21, 2012 8:05 pm

Post Wed Jan 15, 2014 8:25 pm

Re: CzechTV (CZ)

It looks like that it is a new sport to changing ajax url in Czech TV. It should be necessary to get it dynamicaly, but my java/groovy skill is not enough
<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Sun Jan 19, 2014 7:10 am

Re: CzechTV (CZ) Version 5

New version has dynamic algorithm how to find URL for media list. It will be more stable hopefully.
Attachments
CzechTV.groovy
(14.81 KiB) Downloaded 645 times
<<

jarek

Serviio newbie

Posts: 1

Joined: Sun Feb 23, 2014 6:59 pm

Post Sun Feb 23, 2014 10:21 pm

Re: CzechTV (CZ)

Is the plugin works yet?
I have got an error:
2014-02-23 14:04:58,892 WARN [FeedUpdaterThread] Failed to retrieve online item information for http://www.ceskatelevize.cz/ivysilani/1 ... ta-hvezda/. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:320)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:237)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:454)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:97)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:135)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:299)
... 2 more
<<

camel13

Serviio newbie

Posts: 3

Joined: Mon Feb 24, 2014 8:35 am

Post Mon Feb 24, 2014 11:59 am

Re: CzechTV (CZ)

Hi,

I have simillar problem. Allways, when I install new plugin CzechTV.groove (from version 3) everythink work fine. But after some time (few days, max two weeks) all shows/programms from my folders dissapears. I use this for shows from D-cko, TV is Panasonic. Can someone help me, please?
<<

posejdon

Serviio newbie

Posts: 4

Joined: Tue Aug 21, 2012 8:05 pm

Post Mon Feb 24, 2014 6:57 pm

Re: CzechTV (CZ)

It is not a problem of the plugin, but of changing of web in Czech TV. And the last change was made because of high load during the winter olympics. So it is question if to develope a new version of plugin or wait how the web pages will by changed after the end of olympics. In Czech TV are not happy if someone gets their videos in other way than by the web (because of copyrights), so I do not think that there will be a plugin which will work more then a few weeks. And changing the way how to get the rtmp stream is not only option to protect their videos, they often give the BAN for IP address (but do not tells that you are banned only that you are not in locality where is allowed to view online broadcasting)
<<

camel13

Serviio newbie

Posts: 3

Joined: Mon Feb 24, 2014 8:35 am

Post Wed Feb 26, 2014 11:48 am

Re: CzechTV (CZ)

Thank you Posejdon. I thought that its as you say, but who can wrote new plugin? Is it difficult?
<<

mvcz

Serviio newbie

Posts: 6

Joined: Fri Sep 06, 2013 12:58 pm

Post Wed Mar 12, 2014 9:28 am

Re: CzechTV (CZ)

Hi All

I am back with new version of plug-in. Czech TV made big change and I hope that this version will work for some months.

I have also added new query parameter cacheKey.
Please use single cachename for all url links if you do not have problem with this. Use different cache name only for problematic url link. It minimizes the request to download video from http://www.ceskatelevize.cz to get technical information about video. It can prevent to detect that a robot scanning http://www.ceskatelevize.cz.

    cacheKey=<name_of_cache> Set your own cache name for your set of url link. It can reduce network trafic and load of server. For detail see cacheKey in servio plug-in documentation

      copy paste String cacheKey – a unique identifier of the content (i.e. this item with this quality) used as a key to technical metadata cache; required if either expiresOn and/or expiresImmediately is provided
Attachments
CzechTV.groovy
Version 6
(16.29 KiB) Downloaded 1076 times
<<

camel13

Serviio newbie

Posts: 3

Joined: Mon Feb 24, 2014 8:35 am

Post Fri Mar 14, 2014 8:07 am

Re: CzechTV (CZ)

Hello MVCZ.

I would like to say Big Thank you for your work on CzechTV plugins. Its perfect and Im happy for my small daughter that she can see Zahady Toma Wizarda again...

You are the best! ;)

Camel

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 23 guests

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