mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-22 23:55:46 +00:00
PICARD-1043: Write showmovement only to MP4
Do not write the iTunes specific showmovement tag to formats other than MP4. iTunes does not support this for other formats, and there is no standard way to write this.
This commit is contained in:
@@ -215,6 +215,7 @@ class APEv2File(File):
|
||||
'podcast',
|
||||
'podcasturl',
|
||||
'show',
|
||||
'showmovement',
|
||||
'showsort',
|
||||
}
|
||||
return bool(name) and name not in unsupported_tags
|
||||
|
||||
@@ -527,7 +527,8 @@ class ID3File(File):
|
||||
|
||||
@classmethod
|
||||
def supports_tag(cls, name):
|
||||
return ((name and not name.startswith("~"))
|
||||
unsupported_tags = {'showmovement'}
|
||||
return ((name and not name.startswith("~") and name not in unsupported_tags)
|
||||
or name in ("~rating", "~length")
|
||||
or name.startswith("~id3"))
|
||||
|
||||
|
||||
@@ -276,7 +276,8 @@ class VCommentFile(File):
|
||||
|
||||
@classmethod
|
||||
def supports_tag(cls, name):
|
||||
return bool(name)
|
||||
unsupported_tags = {'showmovement'}
|
||||
return bool(name) and name not in unsupported_tags
|
||||
|
||||
|
||||
class FLACFile(VCommentFile):
|
||||
|
||||
Reference in New Issue
Block a user