lint
This commit is contained in:
parent
846980b689
commit
e8c7ebc8cd
2 changed files with 2 additions and 6 deletions
|
|
@ -107,9 +107,7 @@ class MusicTagsPlugin(Plugin[MusicTagsOptions]):
|
||||||
|
|
||||||
with open(entry.get_download_thumbnail_path(), "rb") as thumb:
|
with open(entry.get_download_thumbnail_path(), "rb") as thumb:
|
||||||
mediafile_img = mediafile.Image(
|
mediafile_img = mediafile.Image(
|
||||||
data=thumb.read(),
|
data=thumb.read(), desc="cover", type=mediafile.ImageType.front
|
||||||
desc="cover",
|
|
||||||
type=mediafile.ImageType.front
|
|
||||||
)
|
)
|
||||||
|
|
||||||
audio_file.images = [mediafile_img]
|
audio_file.images = [mediafile_img]
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,7 @@ def single_song_preset_dict(output_directory):
|
||||||
"preset": "song",
|
"preset": "song",
|
||||||
"download": {"url": "https://www.youtube.com/watch?v=2lAe1cqCOXo"},
|
"download": {"url": "https://www.youtube.com/watch?v=2lAe1cqCOXo"},
|
||||||
"output_options": {"output_directory": output_directory},
|
"output_options": {"output_directory": output_directory},
|
||||||
"music_tags": {
|
"music_tags": {"embed_thumbnail": True},
|
||||||
"embed_thumbnail": True
|
|
||||||
},
|
|
||||||
# download the worst format so it is fast
|
# download the worst format so it is fast
|
||||||
"ytdl_options": {
|
"ytdl_options": {
|
||||||
"format": "worst[ext=mp4]",
|
"format": "worst[ext=mp4]",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue