|
@@ -51,13 +51,13 @@ class ID3(_mutagen):
|
|
|
self._mutagen_file.tags.add(tag)
|
|
|
return tag
|
|
|
|
|
|
- def get_uuid(self):
|
|
|
+ def get_track_uuid(self):
|
|
|
for ufid in self._mutagen_file.tags.getall('UFID'):
|
|
|
if ufid.owner == self._UFID_OWNER_ID:
|
|
|
return ufid.data
|
|
|
return None
|
|
|
|
|
|
- def set_uuid(self, uuid):
|
|
|
+ def set_track_uuid(self, uuid):
|
|
|
|
|
|
tag = mutagen.id3.UFID(owner=self._UFID_OWNER_ID, data=uuid)
|
|
|
self._mutagen_file.tags.add(tag)
|
|
@@ -127,11 +127,11 @@ class MP4(_mutagen):
|
|
|
self._mutagen_file.tags['----:' + tag_label] = [tag]
|
|
|
return tag
|
|
|
|
|
|
- def get_uuid(self):
|
|
|
+ def get_track_uuid(self):
|
|
|
try:
|
|
|
return self._get_free_uuid(self._UUID_TAG_KEY)
|
|
|
except KeyError:
|
|
|
return None
|
|
|
|
|
|
- def set_uuid(self, uuid):
|
|
|
+ def set_track_uuid(self, uuid):
|
|
|
return self._set_free_uuid(self._UUID_TAG_KEY, uuid)
|