Tatsuhiko Miyagawa > Plagger-0.7.3 > Plagger::Plugin::Filter::RewriteEnclosureURL

Download:
Plagger-0.7.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source   Latest Release: Plagger-0.7.17

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

syntax highlighting: