Page 1 of 1

CzechTV (CZ)

PostPosted: Fri Sep 06, 2013 1:34 pm
by mvcz
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/

Re: CzechTV (CZ)

PostPosted: Mon Sep 09, 2013 7:12 am
by Vasa79
Great! Paráda!

Re: CzechTV (CZ)

PostPosted: Mon Sep 23, 2013 11:15 pm
by torrentonly
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.

Re: CzechTV (CZ)

PostPosted: Tue Sep 24, 2013 2:57 pm
by mvcz
Please find version 2 of plug-in in attachment.

Version 2 fixes and changes


Re: CzechTV (CZ)

PostPosted: Wed Sep 25, 2013 7:23 pm
by torrentonly
That was really fast. Thanks for quick fix. Now it it working flawlessly.

Unescape special chars

PostPosted: Wed Dec 25, 2013 8:05 pm
by posejdon
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.

Re: CzechTV (CZ)

PostPosted: Wed Jan 08, 2014 2:25 pm
by mvcz
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


Czech TV Version 4

PostPosted: Sat Jan 11, 2014 4:58 pm
by mvcz
New version

Czech TV again change url for list of media link

Re: CzechTV (CZ)

PostPosted: Wed Jan 15, 2014 8:25 pm
by posejdon
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

Re: CzechTV (CZ) Version 5

PostPosted: Sun Jan 19, 2014 7:10 am
by mvcz
New version has dynamic algorithm how to find URL for media list. It will be more stable hopefully.

Re: CzechTV (CZ)

PostPosted: Sun Feb 23, 2014 10:21 pm
by jarek
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

Re: CzechTV (CZ)

PostPosted: Mon Feb 24, 2014 11:59 am
by camel13
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?

Re: CzechTV (CZ)

PostPosted: Mon Feb 24, 2014 6:57 pm
by posejdon
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)

Re: CzechTV (CZ)

PostPosted: Wed Feb 26, 2014 11:48 am
by camel13
Thank you Posejdon. I thought that its as you say, but who can wrote new plugin? Is it difficult?

Re: CzechTV (CZ)

PostPosted: Wed Mar 12, 2014 9:28 am
by mvcz
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

Re: CzechTV (CZ)

PostPosted: Fri Mar 14, 2014 8:07 am
by camel13
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