Ajout des fonctionnalitée pour nextcloud
This commit is contained in:
@@ -15,6 +15,7 @@ from mutagen.flac import FLAC, Picture
|
||||
from mutagen.mp3 import MP3
|
||||
from mutagen.id3 import PictureType, TIT2, TALB, TPE1, TRCK, TDRC, TPOS, APIC, TPE2
|
||||
from mutagen import MutagenError
|
||||
from deezer_downloader.update_nextcloud_files import call_scan
|
||||
|
||||
|
||||
# BEGIN TYPES
|
||||
@@ -244,6 +245,8 @@ def download_song(song: dict, output_file: str) -> None:
|
||||
print(f"Warning: Could not write metadata to file: {e}")
|
||||
except Exception as e:
|
||||
raise DeezerApiException(f"Could not write song to disk: {e}") from e
|
||||
|
||||
call_scan(output_file)
|
||||
print("Download finished: {}".format(output_file))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user