Skip Menu |
 

This queue is for tickets about the Audio-Scan CPAN distribution.

Report information
The Basics
Id: 51266
Status: open
Priority: 0/
Queue: Audio-Scan

People
Owner: Nobody in particular
Requestors: valdez [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 350b
Hello, would it be possible to add an hint parameter to scan* methods so that it can scan files without extensions? For example: my $data = Audio::Scan->scan('/path/to/file', 'mp3'); I have a huge amount of mp3 files without extension and I would like to scan them without modifying their filename. Thank you vry much! -- Ciao, Valerio
Download (untitled) / with headers
text/plain 551b
On Tue Nov 10 06:05:57 2009, VALDEZ wrote: Show quoted text
> Hello, > > would it be possible to add an hint parameter to scan* methods so that > it can scan files without extensions? > > For example: > > my $data = Audio::Scan->scan('/path/to/file', 'mp3'); > > I have a huge amount of mp3 files without extension and I would like to > scan them without modifying their filename. > > Thank you vry much! >
I suppose that would be easy enough to add, kind of a weird use case though. :) I've never heard of someone having mp3 files without an extension.
Download (untitled) / with headers
text/plain 443b
On Tue Nov 10 07:48:18 2009, AGRUNDMA wrote: Show quoted text
> I suppose that would be easy enough to add, kind of a weird use case > though. :) I've never heard of someone having mp3 files without an > extension.
true, but that's how my process pipeline works :) I move around thousands of files every day and I cannot rely on file extensions. Next step would be adding support for libmagic, that would help to guess file types. Thanks, Valerio
Download (untitled) / with headers
text/plain 650b
On Tue Nov 10 10:43:55 2009, VALDEZ wrote: Show quoted text
> On Tue Nov 10 07:48:18 2009, AGRUNDMA wrote:
> > I suppose that would be easy enough to add, kind of a weird use case > > though. :) I've never heard of someone having mp3 files without an > > extension.
> > true, but that's how my process pipeline works :) I move around > thousands of files every day and I cannot rely on file extensions. Next > step would be adding support for libmagic, that would help to guess file > types. > > Thanks, > > Valerio
Maybe, but I think just working based on file extension is good enough. Magic gets complicated when it has to seek past ID3 tags, etc.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.