mirror of
https://github.com/beetbox/beets.git
synced 2025-12-12 19:42:23 +01:00
- changes to mediafile.py. Provides a delete method which allows the user
to remove all audio metadata from the mutagen call "delete" example : mediafileobject.delete()
This commit is contained in:
parent
70b528ed81
commit
2396e3bb43
1 changed files with 4 additions and 0 deletions
|
|
@ -903,6 +903,10 @@ class MediaFile(object):
|
|||
def save(self):
|
||||
self.mgfile.save()
|
||||
|
||||
def delete(self):
|
||||
"""Removes current metadata information associated with the path/file."""
|
||||
self.mgfile.delete()
|
||||
|
||||
|
||||
# Field definitions.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue