On May 15, 9:51 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 8:37 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> 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.
thanks guys. i guess i just figured there'd be a way to get at those id3 bytes at the end without downloading the whole file. if java can do this, seems like i should just stick with that implementation, no? -- http://mail.python.org/mailman/listinfo/python-list