no inputstream?

castironpi castironpi at gmail.com
Thu May 15 09:51:38 EDT 2008


On May 15, 8:37 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> On Thu, 15 May 2008 06:08:35 -0700, max wrote:
> > i currently have locations of the mp3s in question as strings, which
> > works for parsing local files, but gives me a "No such file or
> > directory" error when it tries to process URLs.  it seems terribly
> > inefficient to download each mp3 just to get at that small tag data,
> > and i assume there's a way to do this with file() or open() or
> > something, i just can't get it to work.
>
> You can use `urllib2.urlopen()` to open URLs as files.  But if you deal
> with ID3 V1 tags you'll have to download the file anyway because those are
> in the last 128 bytes of an MP3 file.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

Just don't import time.  What would you do with an autolocking timer,
such as time.sleep( ) on a thread?  I am tongue tied in the presence
of a lady.



More information about the Python-list mailing list