mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 15:03:22 +01:00
added docstring for set_fields methods
This commit is contained in:
parent
52d5d2310b
commit
53d0421d43
1 changed files with 5 additions and 1 deletions
|
|
@ -534,6 +534,9 @@ class ImportTask(BaseImportTask):
|
|||
lib.directory)
|
||||
|
||||
def set_fields(self):
|
||||
"""Sets the fields given at CLI or configuration to the specified
|
||||
values.
|
||||
"""
|
||||
set_fields_dict = config['import']['set_fields']
|
||||
for field in set_fields_dict.keys():
|
||||
value = set_fields_dict[field].get()
|
||||
|
|
@ -892,7 +895,8 @@ class SingletonImportTask(ImportTask):
|
|||
self.item.load()
|
||||
|
||||
def set_fields(self):
|
||||
"""Similar to ``ImportTask.set_fields``, but for singleton items.
|
||||
"""Sets the fields given at CLI or configuration to the specified
|
||||
values.
|
||||
"""
|
||||
set_fields_dict = config['import']['set_fields']
|
||||
for field in set_fields_dict.keys():
|
||||
|
|
|
|||
Loading…
Reference in a new issue