MCPcopy
hub / github.com/beetbox/beets / tag_data

Function tag_data

beetsplug/info.py:27–38  ·  view source on GitHub ↗
(lib, args, album=False)

Source from the content-addressed store, hash-verified

25
26
27def tag_data(lib, args, album=False):
28 query = []
29 for arg in args:
30 path = normpath(arg)
31 if os.path.isfile(syspath(path)):
32 yield tag_data_emitter(path)
33 else:
34 query.append(arg)
35
36 if query:
37 for item in lib.items(query):
38 yield tag_data_emitter(item.path)
39
40
41def tag_fields():

Callers

nothing calls this directly

Calls 4

normpathFunction · 0.90
syspathFunction · 0.90
tag_data_emitterFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected