mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-29 11:06:14 +00:00
parent
a7b779072e
commit
97f9258de9
|
@ -117,6 +117,7 @@ DEFAULT_SETTINGS = {
|
||||||
"copyright": False,
|
"copyright": False,
|
||||||
"composer": False,
|
"composer": False,
|
||||||
"involvedPeople": False,
|
"involvedPeople": False,
|
||||||
|
"source": False,
|
||||||
"savePlaylistAsCompilation": False,
|
"savePlaylistAsCompilation": False,
|
||||||
"useNullSeparator": False,
|
"useNullSeparator": False,
|
||||||
"saveID3v1": True,
|
"saveID3v1": True,
|
||||||
|
|
|
@ -94,6 +94,10 @@ def tagID3(stream, track, save):
|
||||||
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
|
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
|
||||||
tag.add(TCMP(text="1"))
|
tag.add(TCMP(text="1"))
|
||||||
|
|
||||||
|
if save['source']:
|
||||||
|
tag.add(TXXX(desc="SOURCE", text='Deezer'))
|
||||||
|
tag.add(TXXX(desc="SOURCEID", text=str(track.id)))
|
||||||
|
|
||||||
if save['cover'] and track.album['picPath']:
|
if save['cover'] and track.album['picPath']:
|
||||||
|
|
||||||
descEncoding = Encoding.LATIN1
|
descEncoding = Encoding.LATIN1
|
||||||
|
@ -191,6 +195,10 @@ def tagFLAC(stream, track, save):
|
||||||
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
|
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
|
||||||
tag["COMPILATION"] = "1"
|
tag["COMPILATION"] = "1"
|
||||||
|
|
||||||
|
if save['source']:
|
||||||
|
tag["SOURCE"] = 'Deezer'
|
||||||
|
tag["SOURCEID"] = str(track.id)
|
||||||
|
|
||||||
if save['cover'] and track.album['picPath']:
|
if save['cover'] and track.album['picPath']:
|
||||||
image = Picture()
|
image = Picture()
|
||||||
image.type = PictureType.COVER_FRONT
|
image.type = PictureType.COVER_FRONT
|
||||||
|
|
Loading…
Reference in a new issue