Bug#557114: A few additional thoughts

Kai Wasserbäch debian at carbon-project.org
Thu Nov 19 19:10:52 UTC 2009


Hello again,
after thinking a little bit about the missing format selection, I'm not sure how
to handle that best for clive. While I can extract all available formats with
something like:

> require HTML::TokeParser;
> 
> my $parser = HTML::TokeParser->new(\$content);
> 
> while (my $token = $parser->get_tag("option")) {
>         my $value = $token->[1]{value} || "-";
>         if( $value =~ /^\/file\/(.*?)$/ ) {
>             print "== NEXT OPTION ==\n";
>             print "\tOption value is: $value.\n";
>         }
> }

where $content would be the one available in parsePage (of course the prints
would go away and be replaced by something like my $file = $value).

I'm pretty sure .mov is always the best available format (as it is always the
one listed under »Source format«). But how to handle the rest? (There are (known
to me): flv (Web), 3gp (Mobile Phone), m4v (Portable (iPod)) apart from mov
(Source)).

As I'm not too much into clive, I'm not sure how to best implement a version of
Bliptv.pm which cares for different formats (if available). If you'd like me to
write something, please give me some some feedback on how you would like to have
that.

Thanks,
Kai



-- 

Kai Wasserbäch (Kai Wasserbaech)

E-Mail: debian at carbon-project.org
Jabber (debianforum.de): Drizzt
URL: http://wiki.debian.org/C%C3%B9ran
GnuPG: 0xE1DE59D2      0600 96CE F3C8 E733 E5B6 1587 A309 D76C E1DE 59D2
(http://pgpkeys.pca.dfn.de/pks/lookup?search=0xE1DE59D2&fingerprint=on&hash=on&op=vindex)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091119/4f968dab/attachment.pgp>


More information about the pkg-perl-maintainers mailing list