NAME
    Filename::Media - Check whether filename indicates being a media
    (audio/video/image) file

VERSION
    This document describes version 0.003 of Filename::Media (from Perl
    distribution Filename-Media), released on 2020-10-20.

SYNOPSIS
     use Filename::Media qw(check_media_filename);
     my $res = check_media_filename(filename => "foo.mp3");
     if ($res) {
         printf "File is media";
     } else {
         print "File is not media\n";
     }

DESCRIPTION
FUNCTIONS
  check_media_filename
    Usage:

     check_media_filename(%args) -> bool|hash

    Check whether filename indicates being a media (audio/video/image) file.

    Examples:

    *   Example #1:

         check_media_filename(filename => "foo.txt"); # -> 0

    *   Example #2:

         check_media_filename(filename => "foo.DOC"); # -> 0

    *   Example #3:

         check_media_filename(filename => "foo.webm"); # -> {}

    *   Example #4:

         check_media_filename(filename => "foo.MP3"); # -> {}

    *   Example #5:

         check_media_filename(filename => "foo.Jpeg"); # -> {}

    This function is not exported by default, but exportable.

    Arguments ('*' denotes required arguments):

    *   filename* => *filename*

    Return value: (bool|hash)

    Return false if no archive suffixes detected. Otherwise return a hash of
    information.

HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Filename-Media>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Filename-Media>.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    <https://rt.cpan.org/Public/Dist/Display.html?Name=Filename-Media>

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

SEE ALSO
    Filename::Ebook. Ebook currently is not included.

    Filename::Audio

    Filename::Video

    Filename::Image

AUTHOR
    perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2020, 2017 by perlancar@cpan.org.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

