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
:
15 def newpath(file, target
, pattern
):
16 # Create the tokens dictionary
21 if tokens
["album artist"] == None:
22 tokens
["album artist"] = tokens
["artist"]
23 tokens
["base"] = target
26 ## Handle arguments (TODO)
27 # This will probably the default later one, at least until I
28 # implement %album artist%
29 pattern
= "%base%/%artist%/%album%/%title%"
30 base
= "D:/Eigene Musik"
33 for filepath
in basepath
.walkfiles():
34 if issupportedfile(filepath
):
37 if __name__
== "__main__":