Robin Clarke > TV-Mediathek > TV::Mediathek

Download:
TV-Mediathek-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

TV::Mediathek - Access to Mediathek

VERSION ^

Version 0.03

SYNOPSIS ^

List and download TV programs from German and French public TV Mediathek repositories.

Based on (and using some resources from) the original Java MediathekView script: http://zdfmediathk.sourceforge.net/index.html

METHODS ^

new

Create new instance of TV::Mediathek

PARAMS

proxy <Str>

Address of proxy server to use. e.g. http://proxy.example.com:8001/

Default: undef

socks <Str>

Address of socks server to use for download.

Default: undef

timeout <Int>

Timeout in seconds while downloading video

Default: 10

agent <Str>

User agent string to use.

Default: LWP::UserAgent default

cookie_jar <Str>

File to use as a cookie jar

Default: undef

mech <WWW::Mechanize>

If you already have a WWW::Mechanize object, you can pass it here, otherwise one will be created for you

flvstreamer_binary <Str>

Path to flvstreamer binary

Default: 'flvstreamer'

cache_time <Int>

Time in seconds to read from cached sources before refreshing.

Default: 3600

sql_cache_size <Int>

Set memory in bytes which SQLite can use for caching.

Default: 80000

cache_dir <Str>

Directory to cache files in

Required. No Default.

target_dir <Str>

Directory to which video files should be saved

date_in_filename <Bool>

Should the date of the programme be included in the filename.

With: 2011-10-22_Mit_offenen_Karten.avi

Without: Mit_offenen_Karten.avi

Default: 1

refresh_sources

Download the sources into the sources table in the databse. All current entries are deleted from the table, and the news entries are added

refresh_media

Refresh the media listing. This will try each of the sources from the sources table in the database, ordered by time (youngest first) and if possible download and import the resulting XML into the database. Prior to import into the database, all existing data from the channels, themes, media and map_media tables will be deleted.

count_videos

Count the number of videos matching your search criteria.

TODO: RCL 2011-10-28 Documentation

list

List the videos matching your search criteria.

TODO: RCL 2011-10-28 Document search options

get_videos

Download (to the target_dir) the videos matching your search criteria.

TODO: RCL 2011-10-28 Document search options

add_abo

TODO: RCL 2012-01-26 Document

del_abo

TODO: RCL 2012-01-26 Documentation

get_abos

TODO: RCL 2012-01-26 Documentation

run_abo

TODO: RCL 2012-01-26 Documentation

get_downloaded_media

TODO: RCL 2012-01-26 Documentation

del_downloaded

TODO: RCL 2012-01-26 Documentation

expire_downloads

TODO: RCL 2012-01-26 Documentation

requires_download

TODO: RCL 2012-01-26 Documentation

get_url_to_file

TODO: RCL 2012-01-26 Documentation

init_db

TODO: RCL 2012-01-26 Documentation

AUTHOR ^

Robin Clarke, <perl at robinclarke.net>

BUGS ^

Please report any bugs or feature requests to https://github.com/robin13/mediathekp

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc TV::Mediathek

You can also look for information at:

ACKNOWLEDGEMENTS ^

Thanks to Michael Unterkalmsteiner for added functionality!

LICENSE AND COPYRIGHT ^

Copyright 2011 Robin Clarke.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: