5 from tag_wrapper
import tag
7 ACCEPTEXTS
= [".ogg"] # Keep it simple for now
9 def issupportedfile(name
):
10 for ext
in ACCEPTEXTS
:
11 if os
.path
.splitext(name
)[1] == ext
:
16 ## Handle arguments (TODO)
17 # This will probably the default later one, at least until I
18 # implement %album artist%
19 pattern
= "%base%/%artist%/%album%/%title%.%ext%"
20 base
= "D:/Eigene Musik"
23 for filepath
in basepath
.walkfiles():
24 if issupportedfile(filepath
):
29 print "Error reading tags"
33 if __name__
== "__main__":