Add Metadata Fix for other Sources
This commit is contained in:
@@ -235,6 +235,8 @@ class iTunesPlugin(BeetsPlugin):
|
|||||||
|
|
||||||
def apply_itunes_metadata(self, session, task):
|
def apply_itunes_metadata(self, session, task):
|
||||||
for item in task.imported_items():
|
for item in task.imported_items():
|
||||||
|
if item.data_source != 'iTunes':
|
||||||
|
continue
|
||||||
info = task.match.mapping[item]
|
info = task.match.mapping[item]
|
||||||
for tag in ['genre', 'title_sort', 'album_sprt', 'itunes_content_id', 'itunes_artist_id', 'itunes_advisory']:
|
for tag in ['genre', 'title_sort', 'album_sprt', 'itunes_content_id', 'itunes_artist_id', 'itunes_advisory']:
|
||||||
item[tag] = getattr(info, tag, None)
|
item[tag] = getattr(info, tag, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user