radec94 / stagger

Automatically exported from code.google.com/p/stagger
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Can't tag a mp3 without existing ID3 header or tags. #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
t = stagger.read_tag(f)
f is a mp3 without tags, it doesn't even have the ID3 header at the beginning 
but it's still a playable mp3.
So I'm trying to tag it anyway but it fails.

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "./script.py", line 123, in <module>
    t = stagger.read_tag(f)
  File "/usr/lib/python3.2/site-packages/stagger/tags.py", line 81, in read_tag
    (cls, offset, length) = detect_tag(file)
  File "/usr/lib/python3.2/site-packages/stagger/tags.py", line 108, in detect_tag
    raise NoTagError("ID3v2 tag not found")
stagger.errors.NoTagError: ID3v2 tag not found

What version of the product are you using? On what operating system?
aur/python3-stagger-svn 106-1
Archlinux x86_64

Please provide any additional information below.

Original issue reported on code.google.com by cys...@gmail.com on 11 Jul 2012 at 12:04

GoogleCodeExporter commented 9 years ago
I haved the same problem  solved by

tag=stagger.default_tag()

Original comment by meilland...@gmail.com on 23 Mar 2014 at 9:00