NAME

Plagger::Plugin::Filter::RewriteEnclosureURL - Rewrite enclosure URL for republishing

SYNOPSIS

- module: Filter::FetchEnclosure
  config:
    dir: /home/miyagawa/public_html

- module: Filter::RewriteEnclosureURL
  config:
    rewrite:
      - local: /home/miyagawa/public_html/
        url:   http://rock/~miyagawa/

DESCRIPTION

This plugin rewrites enclosure URL using rewrite rule.

CONFIG

rewrite

List of hash that defines rule to rewrite URL. local to represent local path, which should match with enclosure's local_path and url to represent publicly accessible HTTP base URL.

In this example, /home/miyagawa/public_html/foo.mp3 is rewritten to http://rock/~miyagawa/foo.mp3.

AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

Plagger