The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Offliberty - interface to offliberty.com download service

SYNOPSIS

  use WWW::Offliberty qw/off/;
  my @links = off 'http://youtube.com/watch?v=something', video_file => 1;

DESCRIPTION

WWW::Offliberty is a simple interface to the offliberty.com download service.

The module exports (on request) a single function, off(url, [parameter => value, ...]). It takes a URL and an optional list of parameters (key/value pairs). It returns a list of download links. An empty list is returned if the Offliberty service returns no URLs (for example if Offliberty encounters an error or the URL is invalid). Dies if unable to contact Offliberty (for example if there is no internet connection or a firewall blocks the connection).

The supported services and parameters are undocumented. From empirical testing, when requesting a YouTube URL the service will return an audio-only URL when called with no parameters, and two URLs (audio-only and audio/video) when called with the parameter video_file set to 1. In contrast, Vimeo URLs with no parameters return both audio-only and audio/video variants.

Note: The URL of the service sometimes changes, which breaks this module. If you notice this, please report a bug on RT. While the bug is being fixed, you can override the URL locally by doing:

  $WWW::Offliberty:OFF_URL = 'http://offliberty.com/correct_url.php';

before calling off.

SEE ALSO

http://offliberty.com

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2013-2017 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.1 or, at your option, any later version of Perl 5 you may have available.