Giter Club home page Giter Club logo

docker-amd's People

Contributors

calm3285 avatar fuzxi avatar jabster28 avatar jeret15 avatar randomninjaatk avatar spacetech avatar telans avatar tempestnano avatar whatsthestoryglory avatar zobe123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-amd's Issues

Can we have a manual no docker setup guide?

I know that Docker is a powerful tool etc, but sadly I can't use it.

Are they any manual instructions like the old repo had?
Thank you in advance, I appreciate your work :)

Option to disable embeded covers

At the moment I script covers removal as to save some precious space in my large library.
An option to disable embeded covers would be nice :)

Requesting missing albums on Lidarr 1.0.0.2226 fails

Docker-AMD used to work perfectly until approximately couple of days ago (everything is automated, so I don't check frequently).

Setup:
Lidarr nightly running natively on a Windows 10 host.
docker-AMD running under a Docker image under the same Windows 10 host (using Docker desktop)

Running the latest version of docker-AMD with Lidarr 1.0.0.2226 (nightly) fails with "http 1.1/ error 500" on missing, but not on cutoff:
image

Running only the missing album fetching returns:
image

The script in use for the API access:

#!/usr/bin/env bash
LidarrUrl="http://192.168.50.100:8686"
LidarrAPIkey="421843250ee14d898baec3220ee99de8"
amount=1000000000
curl --header "X-Api-Key:"${LidarrAPIkey} --request GET  "${LidarrUrl}/api/v1/wanted/missing/?page=1&pagesize=${amount}&includeArtist=true&monitored=true&sortDir=desc&sortKey=releaseDate" -o "temp-lidarr-missing.json"

Use tidal-dl as a downloader

I set this up to see if it was possible to use tidal-dl as a downloader compared to deezer and after looking, it doesn't appear to be possible.

I then saw that you are using tidal-media-downloader in amvd but it only offers music videos, not music as well.

Would it be possible to implement that or port it into amd?

Stuck after "Tagged"

I don't know what's happening here so I'll attach the log

2020-10-20 02:00:22 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: SEARCHING...
2020-10-20 02:00:22 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: DOWNLOADING :: It's The Girls :: https://deezer.com/album/8940057...
INFO:deemix:Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29 - Python 3.8.5, deemix 1.5.17
INFO:deemix:Generating queue item for: https://deezer.com/album/8940057
INFO:deemix:[album_8940057_9] Added to queue.
INFO:deemix:[album_8940057_9] Started downloading.
INFO:deemix:[Bette Midler - Be My Baby] Getting the tags
INFO:deemix:[Bette Midler - Be My Baby] Getting lyrics
INFO:deemix:[Bette Midler - Be My Baby] Getting extra track infos
INFO:deemix:[Bette Midler - Be My Baby] Getting the album cover
INFO:deemix:[Bette Midler - Be My Baby] Downloading the track
INFO:deemix:[Bette Midler - Be My Baby] downloading 25047198 bytes
INFO:deemix:[Bette Midler - Be My Baby] Applying tags to the track
INFO:deemix:[Bette Midler - Be My Baby] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/101 - Be My Baby.flac
INFO:deemix:[Bette Midler - One Fine Day] Getting the tags
INFO:deemix:[Bette Midler - One Fine Day] Getting lyrics
INFO:deemix:[Bette Midler - One Fine Day] Getting extra track infos
INFO:deemix:[Bette Midler - One Fine Day] Getting the album cover
INFO:deemix:[Bette Midler - One Fine Day] Downloading the track
INFO:deemix:[Bette Midler - One Fine Day] downloading 22652866 bytes
INFO:deemix:[Bette Midler - One Fine Day] Applying tags to the track
INFO:deemix:[Bette Midler - One Fine Day] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/102 - One Fine Day.flac
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Getting the tags
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Getting lyrics
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Getting extra track infos
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Getting the album cover
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Downloading the track
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] downloading 15957739 bytes
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Applying tags to the track
INFO:deemix:[Bette Midler - Bei Mir Bist Du Schon] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/103 - Bei Mir Bist Du Schon.flac
INFO:deemix:[Bette Midler - Baby It's You] Getting the tags
INFO:deemix:[Bette Midler - Baby It's You] Getting lyrics
INFO:deemix:[Bette Midler - Baby It's You] Getting extra track infos
INFO:deemix:[Bette Midler - Baby It's You] Getting the album cover
INFO:deemix:[Bette Midler - Baby It's You] Downloading the track
INFO:deemix:[Bette Midler - Baby It's You] downloading 19686817 bytes
INFO:deemix:[Bette Midler - Baby It's You] Applying tags to the track
INFO:deemix:[Bette Midler - Baby It's You] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/104 - Baby It's You.flac
INFO:deemix:[Bette Midler - Tell Him] Getting the tags
INFO:deemix:[Bette Midler - Tell Him] Getting extra track infos
INFO:deemix:[Bette Midler - Tell Him] Getting the album cover
INFO:deemix:[Bette Midler - Tell Him] Downloading the track
INFO:deemix:[Bette Midler - Tell Him] downloading 21730859 bytes
INFO:deemix:[Bette Midler - Tell Him] Applying tags to the track
INFO:deemix:[Bette Midler - Tell Him] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/105 - Tell Him.flac
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Getting the tags
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Getting extra track infos
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Getting the album cover
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Downloading the track
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] downloading 21580137 bytes
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Applying tags to the track
INFO:deemix:[Bette Midler - He's Sure the Boy I Love (duet with Darlene Love)] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/106 - He's Sure the Boy I Love (duet with Darlene Love).flac
INFO:deemix:[Bette Midler - Mr. Sandman] Getting the tags
INFO:deemix:[Bette Midler - Mr. Sandman] Getting lyrics
INFO:deemix:[Bette Midler - Mr. Sandman] Getting extra track infos
INFO:deemix:[Bette Midler - Mr. Sandman] Getting the album cover
INFO:deemix:[Bette Midler - Mr. Sandman] Downloading the track
INFO:deemix:[Bette Midler - Mr. Sandman] downloading 16799860 bytes
INFO:deemix:[Bette Midler - Mr. Sandman] Applying tags to the track
INFO:deemix:[Bette Midler - Mr. Sandman] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/107 - Mr. Sandman.flac
INFO:deemix:[Bette Midler - Come and Get These Memories] Getting the tags
INFO:deemix:[Bette Midler - Come and Get These Memories] Getting lyrics
INFO:deemix:[Bette Midler - Come and Get These Memories] Getting extra track infos
INFO:deemix:[Bette Midler - Come and Get These Memories] Getting the album cover
INFO:deemix:[Bette Midler - Come and Get These Memories] Downloading the track
INFO:deemix:[Bette Midler - Come and Get These Memories] downloading 23672490 bytes
INFO:deemix:[Bette Midler - Come and Get These Memories] Applying tags to the track
INFO:deemix:[Bette Midler - Come and Get These Memories] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/108 - Come and Get These Memories.flac
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Getting the tags
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Getting lyrics
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Getting extra track infos
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Getting the album cover
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Downloading the track
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] downloading 23074107 bytes
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Applying tags to the track
INFO:deemix:[Bette Midler - Too Many Fish in the Sea] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/109 - Too Many Fish in the Sea.flac
INFO:deemix:[Bette Midler - Teach Me Tonight] Getting the tags
INFO:deemix:[Bette Midler - Teach Me Tonight] Getting lyrics
INFO:deemix:[Bette Midler - Teach Me Tonight] Getting extra track infos
INFO:deemix:[Bette Midler - Teach Me Tonight] Getting the album cover
INFO:deemix:[Bette Midler - Teach Me Tonight] Downloading the track
INFO:deemix:[Bette Midler - Teach Me Tonight] downloading 22578496 bytes
INFO:deemix:[Bette Midler - Teach Me Tonight] Applying tags to the track
INFO:deemix:[Bette Midler - Teach Me Tonight] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/110 - Teach Me Tonight.flac
INFO:deemix:[Bette Midler - Waterfalls] Getting the tags
INFO:deemix:[Bette Midler - Waterfalls] Getting lyrics
INFO:deemix:[Bette Midler - Waterfalls] Getting extra track infos
INFO:deemix:[Bette Midler - Waterfalls] Getting the album cover
INFO:deemix:[Bette Midler - Waterfalls] Downloading the track
INFO:deemix:[Bette Midler - Waterfalls] downloading 22473289 bytes
INFO:deemix:[Bette Midler - Waterfalls] Applying tags to the track
INFO:deemix:[Bette Midler - Waterfalls] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/111 - Waterfalls.flac
INFO:deemix:[Bette Midler - You Can't Hurry Love] Getting the tags
INFO:deemix:[Bette Midler - You Can't Hurry Love] Getting lyrics
INFO:deemix:[Bette Midler - You Can't Hurry Love] Getting extra track infos
INFO:deemix:[Bette Midler - You Can't Hurry Love] Getting the album cover
INFO:deemix:[Bette Midler - You Can't Hurry Love] Downloading the track
INFO:deemix:[Bette Midler - You Can't Hurry Love] downloading 21816890 bytes
INFO:deemix:[Bette Midler - You Can't Hurry Love] Applying tags to the track
INFO:deemix:[Bette Midler - You Can't Hurry Love] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/112 - You Can't Hurry Love.flac
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Getting the tags
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Getting lyrics
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Getting extra track infos
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Getting the album cover
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Downloading the track
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] downloading 22999347 bytes
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Applying tags to the track
INFO:deemix:[Bette Midler - Give Him a Great Big Kiss] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/113 - Give Him a Great Big Kiss.flac
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Getting the tags
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Getting lyrics
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Getting extra track infos
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Getting the album cover
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Downloading the track
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] downloading 14772930 bytes
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Applying tags to the track
INFO:deemix:[Bette Midler - Will You Still Love Me Tomorrow] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/114 - Will You Still Love Me Tomorrow.flac
INFO:deemix:[Bette Midler - It's the Girl] Getting the tags
INFO:deemix:[Bette Midler - It's the Girl] Getting lyrics
INFO:deemix:[Bette Midler - It's the Girl] Getting extra track infos
INFO:deemix:[Bette Midler - It's the Girl] Getting the album cover
INFO:deemix:[Bette Midler - It's the Girl] Downloading the track
INFO:deemix:[Bette Midler - It's the Girl] downloading 18207320 bytes
INFO:deemix:[Bette Midler - It's the Girl] Applying tags to the track
INFO:deemix:[Bette Midler - It's the Girl] Track download completed
/downloads-amd/amd/dlclient/Bette Midler (427)/115 - It's the Girl.flac
INFO:deemix:[album_8940057_9] Finished downloading.
All done!
2020-10-20 02:03:52 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: DOWNLOAD :: success
2020-10-20 02:03:53 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: Artwork Extracted
/downloads-amd/amd/dlclient/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"

The FLAC file could not be opened.  Most likely the file does not exist
or is not readable.
/downloads-amd/amd/dlclient/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"

The FLAC file could not be opened.  Most likely the file does not exist
or is not readable.
/downloads-amd/amd/dlclient/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"

The FLAC file could not be opened.  Most likely the file does not exist
or is not readable.
/downloads-amd/amd/dlclient/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"

The FLAC file could not be opened.  Most likely the file does not exist
or is not readable.
/downloads-amd/amd/dlclient/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"

The FLAC file could not be opened.  Most likely the file does not exist
or is not readable.
2020-10-20 02:03:53 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: FIXING TAGS :: *.flac fixed...
2020-10-20 02:03:53 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: CONVERSION :: Converting: 15 Tracks (Target Format: AAC (256))
/downloads-amd/amd/dlclient/*.flac: No such file or directory
2020-10-20 02:03:54 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: CONVERSION :: ERROR :: Coversion Failed: *, performing cleanup...
rm: cannot remove '/downloads-amd/amd/dlclient/*.temp.m4a': No such file or directory
/config/scripts/download.bash: line 541: continue: only meaningful in a `for', `while', or `until' loop
2020-10-20 02:03:54 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: CONVERSION :: cache deemix logs scripts :: Tagging
Traceback (most recent call last):
  File "/config/scripts/tag.py", line 44, in <module>
    bpm = int(args.songbpm)
ValueError: invalid literal for int() with base 10: ''
2020-10-20 02:03:54 :: 2 of 24 :: Bette Midler :: 2014 :: Album :: It’s the Girls :: CONVERSION :: cache deemix logs scripts :: Tagged

I also don't want items to be logged as downloaded before amd converts them.
Perhaps you could add converted.log?

Not finding artists in artist mode

Hi. I am playing around with the docker-compose file and for now it looks pretty good, except one thing:

2020-10-30 17:38:19 :: 3 of 4 :: ARTIST_NAME_HERE :: ERROR :: Deezer Artist ID not found...

The artist is available on deezer. Other artists are working fine. Any idea?

"ERROR:DOWNLOADS setting invalid", "Expected Valid Setting: /your/path/to/music/downloads

Running in a Docker container on Synology NAS. Script infinitely loops attempting to restart itself, giving the errors in the title. My relevant parameters are as follows:

Mounted volumes:
docker/Media/Music : /music Music collection
docker/data : /data Download location for Transmission client
docker/amd/config : /config AMD config location

I have attempted mounting folders in docker/Media/Music/downloads : /downloads, as well as a folder named docker/downloads : /downloads. Both of these configurations failed to rectify the error. My variables are based on the examples given in the README.

What exactly am I doing wrong? The only variables I omitted are the Plex ones.

Importing 0 tracks?

It looks like it is seeing the tracks and reading them but when it imports it says importing 0 tracks?

10:11:32.4|Info|RootFolderWatchingService|Watching directory /data/media/music/ 20-8-31 10:12:07.8|Info|ImportDecisionMaker|Reading file 1/10 20-8-31 10:12:07.9|Info|ImportDecisionMaker|Reading file 2/10 20-8-31 10:12:07.9|Info|ImportDecisionMaker|Reading file 3/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 4/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 5/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 6/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 7/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 8/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 9/10 20-8-31 10:12:08.0|Info|ImportDecisionMaker|Reading file 10/10 20-8-31 10:12:08.0|Info|TrackGroupingService|Grouping 10 tracks 20-8-31 10:12:08.0|Info|IdentificationService|Identifying album 1/1 20-8-31 10:12:08.2|Info|ImportApprovedTracks|Importing 0 tracks 20-8-31 10:12:11.5|Info|ImportDecisionMaker|Reading file 1/15 20-8-31 10:12:11.5|Info|ImportDecisionMaker|Reading file 2/15 20-8-31 10:12:11.5|Info|ImportDecisionMaker|Reading file 3/15 20-8-31 10:12:11.5|Info|ImportDecisionMaker|Reading file 4/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 5/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 6/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 7/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 8/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 9/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 10/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 11/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 12/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 13/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 14/15 20-8-31 10:12:11.6|Info|ImportDecisionMaker|Reading file 15/15 20-8-31 10:12:11.6|Info|TrackGroupingService|Grouping 15 tracks 20-8-31 10:12:11.6|Info|IdentificationService|Identifying album 1/1 20-8-31 10:12:11.8|Info|ImportApprovedTracks|Importing 0 tracks

deemix config file

where is the deemix config file?
it's better if it werein the /config folder

DockStarter

I see you docker image is in Dockstarter but cant seem to get it to run , is this something you can look at ?

track error

is this error known? something that can be solved? thanks

INFO:deemix:[The Isley Brothers - Move Over and Let Me Dance] Getting the tags
INFO:deemix:[The Isley Brothers - Move Over and Let Me Dance] Fallback to lower bitrate
INFO:deemix:[The Isley Brothers - Move Over and Let Me Dance] Getting the album cover
INFO:deemix:[The Isley Brothers - Move Over and Let Me Dance] Downloading the track
WARNING:deemix:[The Isley Brothers - Move Over and Let Me Dance] Track not available, searching for alternative
ERROR:deemix:[The Isley Brothers - Move Over and Let Me Dance] {"REQUEST_ERROR": "Wrong parameters"}
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 490, in downloadMusic
self.streamTrack(stream, track)
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 651, in streamTrack
request.raise_for_status()
File "/usr/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://e-cdns-proxy-b.dzcdn.net/mobile/1/41f7267184fa67540288fdcd4c69f42dfc97b3737fd49a79b16e574071d8db9aecfe4e8b48f2f0fdfc315d1c6304498fccc2cf9d012e1ba86770ffad10e788166f57e4c04351018eec7420dda57d3fa5

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 716, in downloadWrapper
result = self.download(trackAPI_gw)
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 546, in download
raise e
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 544, in download
trackDownloaded = downloadMusic(track, trackAPI_gw)
File "/usr/lib/python3.8/site-packages/deemix/app/downloadjob.py", line 506, in downloadMusic
newTrack = self.dz.gw.get_track_with_fallback(searchedId)
File "/usr/lib/python3.8/site-packages/deezer/gw.py", line 348, in get_track_with_fallback
body = self.get_track(sng_id)
File "/usr/lib/python3.8/site-packages/deezer/gw.py", line 95, in get_track
return self.api_call('song.getData', {'sng_id': sng_id})
File "/usr/lib/python3.8/site-packages/deezer/gw.py", line 78, in api_call
raise APIError(json.dumps(result_json['error']))
deezer.gw.APIError: {"REQUEST_ERROR": "Wrong parameters"}

find: unrecognized: -iregex BusyBox v1.31.1 () multi-call binary.

Started getting this error in the past couple of days after pulling the latest image.

find: unrecognized: -iregex
BusyBox v1.31.1 () multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'

	-L,-follow	Follow symlinks
	-H		...on command line only
	-xdev		Don't descend directories on other filesystems
	-maxdepth N	Descend at most N levels. -maxdepth 0 applies
			actions to command line arguments only
	-mindepth N	Don't act on first N levels
	-depth		Act on directory *after* traversing it

Actions:
	( ACTIONS )	Group actions for -o / -a
...

How to setup "Lidarr Remote Path Mapping" (moving instead of copying)

First off- I'm loving the latest features you've added into this. You've basically eliminated my need for beets entirely. I'm just having a hang up on one of the newest items though.

When it says-

Configure this to the local volume path for Lidarr to see the downloads folder

I took that as the path for my actual Lidarr library folder. I was mistaken because the log is pulling errors saying it cannot find the folder and it's not moving (or copying) the downloads.

It's probably obvious, but could you try explaining where it's actually suppose to be pathed?

Fresh build on debian not downloading after starting the script

I managed to get the dockerfile built and followed the instructions in the wiki to get my keys and mounts right (I think) and I run the docker exec to actually kick it off. Starts searching albums perfectly fine but when it actually finds one I get
DOWNLOADING :: Hotel Surrender :: https://deezer.com/album/237764282...
Traceback (most recent call last):
File "/scripts/dlclient.py", line 8, in
from deemix.app import deemix
ModuleNotFoundError: No module named 'deemix.app'
2021-07-18 03:50:34 :: 2 of 11547 :: Chet Faker :: 2021 :: Album :: Hotel Surrender :: DOWNLOAD :: ERROR :: No files found

And then it just goes on to search the next album.
All commands are exactly as they are on the wiki's installation page and here's what I use to make the container.
sudo docker run -d --name='docker-amd' -e 'LidarrUrl'='http://192.168.1.156:8686' -e 'LidarrAPIkey'='redacted' -e 'ARL_TOKEN'='redacted' -e 'quality'='320' -v '/media/Quartet/Plex/Sab/music/':'/downloads-amd':'rw' 'docker-amd'

Also as an aside, will this download flacs as well as MP3s with that config?

Doesn't Find anything

Hi, I am not sure how to get this to work. If I add an artist in Lidarr, and then manually go in and run the bash script, AMD sees the artists properly but never finds anything. To reproduce, you can add "Eminem" into lidarr, choose lossless profile, choose existing albums, let it do its updating/searching, then go into AMD and manually run the script.
Example output:

2 of 2 :: MBZDB CACHE :: Eminem :: Caching Musicbrainz Artist Info...
2 of 2 :: MBZDB CACHE :: Eminem :: Caching 398 releases...
2 of 2 :: MBZDB CACHE :: Eminem :: Downloading Releases page 0... (0 - 100 Results)
2 of 2 :: MBZDB CACHE :: Eminem :: Downloading Releases page 1... (100 - 200 Results)
2 of 2 :: MBZDB CACHE :: Eminem :: Downloading Releases page 2... (200 - 300 Results)
2 of 2 :: MBZDB CACHE :: Eminem :: Downloading Releases page 3... (300 - 400 Results)
Sleep 15 seconds to allow processes to complete
############################################ DOWNLOAD AUDIO (WANTED MODE)
Downloading missing list...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 140 0 140 0 0 6666 0 --:--:-- --:--:-- --:--:-- 6666
FINDING MISSING ALBUMS: 0 Found
Downloading cutoff list...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 140 0 140 0 0 3684 0 --:--:-- --:--:-- --:--:-- 3684
FINDING CUTOFF ALBUMS: 0 Found
############################################ DOWNLOAD AUDIO COMPLETE

Restarting AMD is removing the entire downloads

Hi,

Each time AMD restarts (for a server upgrade or any other reason) the entire library is removed. Everything starts from scratch each time.

What did I do wrong ?
Here is my config

amd:
    image: randomninjaatk/amd:latest 
    container_name: amd
    volumes:
      - amd_config:/config
      - /mnt/media/musicamd:/downloads-amd
    environment:
      - PUID=1000
      - PGID=1000
      - AUTOSTART=true
      - SCRIPTINTERVAL=1h
      - DOWNLOADMODE=wanted
      - FALLBACKSEARCH=True
      - LIST=both
      - SearchType=both
      - Concurrency=3
      - EMBEDDED_COVER_QUALITY=80
      - FORMAT=ALAC
      - BITRATE=320
      - ENABLEPOSTPROCESSING=true
      - FORCECONVERT=false
      - requirequality=true
      - MatchDistance=10
      - replaygain=true
      - FolderPermissions=777
      - FilePermissions=777
      - MBRAINZMIRROR=https://musicbrainz.org
      - MBRATELIMIT=1
      - LidarrUrl=http://IP:8686
      - LidarrAPIkey=CORRECT_API_KEY
      - ARL_TOKEN=CORRECT_TOKEN
      - ALBUM_TYPE_FILTER=COMPILE
      - POSTPROCESSTHREADS=1

Lidarr rejecting and not importing

I'm getting lots of albums that Lidarr is rejecting. Yesterday there were over 100;

20-8-16 22:15:57.5|Debug|CloseAlbumMatchSpecification|Album match is not close enough: 0.24035812672176307 vs 0.2 [country, tracks]. Skipping
20-8-16 22:15:57.5|Debug|ImportDecisionMaker|Album rejected for the following reasons: [Permanent] Album match is not close enough: 76.0% vs 80% [country, tracks]

It's usually because tracks are in a different order on MusicBrainz or the track count is different. I have MatchDistance set to 10 in AMD and set Lidarr to automatically switch to the best release.

Is there anything I can do to prevent this or minimise it? If not, how are people dealing with this other than manually moving the albums and attempting to match them. Thanks.

local variable 'result_json' referenced before assignment

I am getting errors when trying to download some tracks, all based around:
"local variable 'result_json' referenced before assignment"
The full error list:
amd | Dropkick Murphys - Middle Finger local variable 'result_json' referenced before assignment
amd | Traceback (most recent call last):
amd | File "/usr/lib/python3.8/site-packages/deemix/downloader.py", line 458, in downloadWrapper
amd | result = self.download(extraData, track)
amd | File "/usr/lib/python3.8/site-packages/deemix/downloader.py", line 254, in download
amd | track = Track().parseData(
amd | File "/usr/lib/python3.8/site-packages/deemix/types/Track.py", line 116, in parseData
amd | self.retriveFilesizes(dz)
amd | File "/usr/lib/python3.8/site-packages/deemix/types/Track.py", line 94, in retriveFilesizes
amd | if len(result_json['error']):
amd | UnboundLocalError: local variable 'result_json' referenced before assignment

Please advise, thanks

Permissions and temp downloads folder

Thanks for the script. I've got it setup and it's downloading and sending Lidarr import notifications, however I don't think I have the DOWNLOADS env variable set correctly and I'm also having permissions issues.

When AMD first creates the downloads folder, it is owned by root and when tracks are downloaded, AMD reports in the log that the folder does not exist;

Screenshot 2020-08-05 at 21 12 41

AMD Log

1 of 46 :: Four Tet :: 4T Recordings :: SEARCHING...
1 of 46 :: Four Tet :: 4T Recordings :: DOWNLOADING :: https://www.deezer.com/album/132511572
mv: cannot stat '/home/user/Docker/media-server/data/direct/lidarr-amd/amd/dlclient/*': No such file or directory
chmod: cannot access '/home/user/Docker/media-server/data/direct/lidarr-amd/amd/import/Four Tet - 4T Recordings (WEB)-132511572-deemix/*': No such file or directory
1 of 46 :: Four Tet :: 4T Recordings :: LIDARR IMPORT NOTIFICATION SENT! :: /home/user/Docker/media-server/data/direct/lidarr-amd/amd/import/Four Tet - 4T Recordings (WEB)-132511572-deemix

Lidarr Log
Folder/File specified for import scan [/home/user/Docker/media-server/data/direct/lidarr-amd/amd/import/Four Tet - 4T Recordings (WEB)-132511572-deemix] doesn't exist.

docker-compose.yml

  lidarr-amd:
    image: randomninjaatk/amd:latest
    container_name: lidarr-amd
    restart: unless-stopped
    network_mode: service:pia-vpn
    depends_on:
      - pia-vpn
    security_opt:
      - no-new-privileges:true
    volumes:
      - /home/user/Docker/media-server/config/lidarr-amd:/config
      - /home/user/Docker/media-server/data/direct/lidarr-amd:/downloads
    environment:
      PUID: 501
      PGID: 999
      TZ: Europe/London
      DOWNLOADS: "/home/user/Docker/media-server/data/direct/lidarr-amd"
      AUTOSTART: "true"
      LidarrUrl: "http://lidarr:8686"
      LidarrAPIkey: "redacted"
      MBRAINZMIRROR: "https://musicbrainz.org"
      MBRATELIMIT: 1
      ARL_TOKEN: "redacted"
      quality: "FLAC"
      FolderPermissions: 766
      FilePermissions: 666

If I CHOWN the download folder with 501:999 the 2 files that show as Binary become folders but the same errors still occur.

Apologies if I'm doing something stupid but any help appreciated. Thanks.

Searching existing and over-writing files

Running lidarr, RNA in dockers. The issue I'm having is that RNA seems to be searching for EVERYTHING in the library, not just missing / wanted items.

With that, it will search and find a 128k mp3, and lidarr will replace an existing flac file, thus downgrading the quality.

Syntax for -e DOWNLOADMODE=artist

Is the intent of this flag to allow users to specify an artist to search for missing albums? If so, what is the syntax? I tired the following, but it started with the first artist alphabetically in the Lidarr library rather than the one specified.

docker exec -it amd /bin/bash -c 'bash /config/scripts/download.bash artist_name'

script starting before the lidarr

hello dear RandomNinja, on my docker the lidarr is a little slow to start, everything is ok but it is a little slow, with that, AMD starting before the lidarr and the error with the following line:

ERROR: Cannot communicate with Lidarr, no response

Please correct errors before attempting to run script again ...

Exiting ...

would it be possible for you to add a condition for the script to automatically restart when this happens?

since already thank you very much

[Feature request] Filtering releases older than X days ?

Hello,

The script is wonderful, so thanks a lot for this :)

I do however have a feature request. Lidarr is often picking up old releases (especially singles) that just have been added to MusicBrainz.
Would it be possible to have a feature that would ignore releases older than x days (or something similar) ?

Thanks,

ARM Architecture Support

This is amazing!!! Can we please get support for ARM architecture to run on raspberry pi? That would be awesome

Using quotes on certain environment variables breaks script

I'm not well versed with any of this, so it's possible this is my own lack of understanding.

Readme suggests that the environment variables within my docker-compose.yml should be as follows

environment:
      - PUID=118
      - PGID=1005
      - TZ=America/Toronto
      - UMASK_SET=002
      - AUTOSTART="true"
      - LidarrUrl="http://lidarr:8686/lidarr/"
      - LidarrAPIkey="redacted"

However the scripts fail to parse the AUTOSTART, LidarrURL, and LidarrAPIkey fields properly if quotes are used. Below is what was needed to make the script operate.

environment:
      - PUID=118
      - PGID=1005
      - TZ=America/Toronto
      - UMASK_SET=002
      - AUTOSTART=true
      - LidarrUrl=http://lidarr:8686/lidarr/
      - LidarrAPIkey=redacted

Search again for previously searched albums

Hi,

I would like the script to search again for albums after a specific amount of time.
I checked the script, if theres a file named after the albumid, it will not be checked again. Ever.
Would it be possible to integrate a mechanism that tries to search for albums again, after, lets say, 3 weeks or 3 months?

As a workaround, its also possible to run a cronjob that runs daily and removes files in the directory where those ignorefiles are stored if they are older than a certain threshold.

Restricting Quality

How do you only download FLAC. If it’s not available in FLAC but is in lower quality like MP3, how do you skip or not download?

errors in Lidarr logs

seeing a lot of these errors in the lodarr logs and I am not sure why they are happening.

image

I am running the latest linuxserver/lidarr:preview image

About
Version 0.7.1.1784
Package Version 0.7.1.1784-ls18 by linuxserver.io
.NET Core Yes
Docker Yes
DB Migration 40
AppData directory /config
Startup directory /app/lidarr/bin
Mode Console

and also running the latest amd image.

cpu usage seems limited in docker

Hi,
The CPU that amd is able to use seems limited to one core.
CPU Usage within the limits for cgroup amd (cgroup_amd.cpu_limit)
So I have 4 cores and it never goes above 25% (100% on one core, but switches between cores)
Is there a reason for this?

Stuck at (Analyzing audio loudness: 0%)

All the files for an entire album seem to have downloaded properly but then i got stuck at (Analyzing audio loudness: 0%) been stuck here at this for about 20m now.

Edit: I do have an error.txt file in the folder with the songs that says

1152196642 | Chris Webby - We Alright | [Errno 2] No such file or directory: '/tmp/deemix-imgs/alb188509252_1200.jpg'

Lidarr does not detect downloads for import

For the past 65 minutes i am trying to make Lidarr connect with your script but i am unable to automatically import anything. Everything goes straight to the amd/import folder. Is there any extra settings i need to make in Lidarr ? I have already applied the "Media Management Settings", also i tried going to Library->import and mapped the amd folder as a root folder. The "-v /downloads-amd" variable is exactly the same as Deluge, and Deluge is detected by Lidarr. I also tried mapping the dl-client folder or the import folder independently. Nothing seems to be able to auto import the songs.

Umask

Why the FolderPermissions and FilePermissions parameters when you can use umask?

Downloads broken

I believe the recent changes at Deezer have broken the ability to download or the d**mix needs to be updated.

I can download FLAC successfully using the latest standalone version of d**mix.

Nothing happens

This sound and looks like such a great script. Easy setup with Docker-compose. All seems to work great. But at some point it stop to do anything. After this message in the log is just stops. I waited for a couple of hours. I don't see anything happening in the cache folder or the dl folder.

2020-12-29 17:24:07 :: 2 of 23800 :: Michael Kiwanuka :: 2019 :: Album :: KIWANUKA :: DOWNLOADING :: KIWANUKA :: https://deezer.com/album/116581812...
INFO:deemix:Linux-4.4.59+-x86_64-with - Python 3.8.5, deemix 2.0.5

Config folders stay empty

Hey, just tried installing this, added it do my docker compose, the container starts without issues but the config folders are not being populated. The config directory gets created but it stays empty except for the deemix folder.

Here's my compose:

 amd:
   image: randomninjaatk/amd 
   container_name: amd
   volumes:
     - /home/user/dockerconfigs/amd:/config
     - /home/user/NASMedia/Downloads/lidarr:/downloads-amd
   environment:
     - PUID=1000
     - PGID=1000
     - AUTOSTART=true
     - SCRIPTINTERVAL=1h
     - DOWNLOADMODE=wanted
     - LIST=both
     - SearchType=both
     - Concurrency=1
     - EMBEDDED_COVER_QUALITY=100
     - FORMAT=FLAC
     - BITRATE=320
     - ENABLEPOSTPROCESSING=true
     - FORCECONVERT=false
     - requirequality=true
     - MatchDistance=10
     - replaygain=true
     - FolderPermissions=766
     - FilePermissions=666
     - MBRAINZMIRROR=https://musicbrainz.org
     - MBRATELIMIT=1
     - LidarrUrl=http://192.168.0.xxx:8686
     - LidarrAPIkey=xxxxxxxxxxx
     - ARL_TOKEN=xxxxxxxxxxxxxxxxx
     - ALBUM_TYPE_FILTER=COMPILE
     - POSTPROCESSTHREADS=1
   restart: unless-stopped

Any idea what could be causing this?

When I try bash it says "bash: /config/scripts/download.bash: No such file or directory"

Edit: I just tried doing "docker exec -it amd /bin/bash" and then "ls" and the only directory showing inside the config folder is "deemix"

Stuck forever when it can't find albumn/LP/Single

I'm not sure if this is an issue with my Lidarr setup or not, but I have it set to download LPs and singles and I have about 400 in my wanted list that can't be found (which isn't an issue I kind of expected it wouldn't grab every random LP and single). My issue is that the AMD docker runs constantly in a loop looking for them and never gives up, so it takes longer and longer to find music that it will be able to download, and it uses a fair amount of CPU in the process (15-20% of my 4 cores 24/7).

Should it track attempts and stop trying after x attempts at the same search? Restarting the container/updating the container could clear the list for when new content becomes available.

Or am I missing something obvious that would resolve this issue without manually removing all of the failed downloads from my wanted list?

Lidarr "Connect" Notifications on import (i.e. Discord)?

Hi there,

is there a way to have Lidarr trigger the Connections set up in the "Connections" tab of Lidarr?
I have a Discord connection set up, but sadly it doesn't get triggered on importing.

For example
2021-03-02 14:36:24 :: 9 of 53 :: xxxx :: 2018 :: Album :: xxxxxxx :: LIDARR IMPORT NOTIFICATION SENT! ::xxxxxxxx (2018)-xxxxxxxx,

in the docker-amd log, but Lidarr never triggers the discord notification.
"On Grab, On Release Import" etc are all enabled.

Invoke Scan When Script Sleeps

Is there a possible way to have the script send a command to scan once the script goes to it's 1 hour sleep. Reason being is that my movies and shows are going over Drive, but the music is on a HDD. So I don't want to have to do full library scans if I can just have the script run a scan on just the Music folder.

Is this possible?

Deezloader alternative?

Hi, I was trying to install this and searching for ARL_TOKEN=ARLTOKEN and the link from the readme is dead. I'm guessing deezloader is no more but I see the latest commit here was 9 days ago. Is this still working? Thanks.

wrong album artwork is sometimes downloaded

The correct artwork is embedded in the file, yet the saved cover file is a mismatch.

I'd say < 5% of the albums suffer from this, and just as an example the artwork for Led Zeppelin's Houses of the Holy was included with America - History America s Greatest Hits.

How to process with Beets container before Lidarr import

Wondering if you are aware of any way to have Beets process the music before it is sent to Lidarr for import. I have beets and Lidarr both running in separate containers from linuxserver and have not been able to find a way to have Lidarr call beets from a container on import. Wondering if there is a way to do it from the amd container.

Not importing to Lidarr

I am using your docker and I'm not sure what I did wrong. It downloads the albums just fine and connects to Lidarr so it is getting the list of what should be downloaded and connecting to deezer since it downloads. But it doesn't seem to import in to Lidarr.

sudo docker run -d
--name lidarr-amd
-e PUID=1000
-e PGID=1000
-e TZ=America/Chicago
-e AUTOSTART=true
-e LidarrUrl=http://192.168.1.10:8686
-e LidarrAPIkey=xxxxxxxxx
-e MBRAINZMIRROR=https://musicbrainz.org
-e MBRATELIMIT=1
-e ARL_TOKEN=xxxxxxxxx
-e LIST=both
-e SearchType=both
-e Concurrency=3
-e quality=320
-e MatchDistance=10
-e FolderPermissions=755
-e FilePermissions=644
-v /home/protektor/docker/lidarr-amd:/config
-v /home/protektor/Downloads/lidarr:/downloads-amd
--network="container:qbittorrentvpn"
--restart unless-stopped
randomninjaatk/amd:latest

That is the exact directory that Lidarr & qBittorrent download in to in my home directory. I also have sonarr and radarr and readarr setup and they all seem to work fine, just AMD isn't importing what it downloads. So I must have something setup incorrectly but I have no idea what that would be. I have also tried just /home/protektor/Downloads which is the same configuration as Lidarr docker but that doesn't seem to work either. Any ideas what I am doing wrong?

Some albums "already downloaded" but not imported into Lidarr?

Hi there, first off I want to say THANK YOU. This makes things so SO easy with Lidarr right now.

I have a few albums in the log that show "already downloaded" but they weren't imported into Lidarr.

I already have them as MP3 V0's but it's not updated to FLAC.

temp-lidarr-cutoff.j 100% |********************************| 457k 0:00:00 ETA
'/scripts/temp-lidarr-cutoff.json' saved
2021-01-20 09:51:52 :: FINDING CUTOFF ALBUMS: 34 Found
2021-01-20 09:51:54 :: 1 of 104 :: Empire of the Sun :: 2016 :: Album :: Two Vines :: SEARCHING...
2021-01-20 09:51:54 :: 1 of 104 :: Empire of the Sun :: 2016 :: Album :: Two Vines :: Already Downloaded

They do not exist in the /downloads-amd/amd/dlclient or /downloads-amd/import

Not sure how to make this re-search for them, or even why it downloaded but didn't import, or why it thinks it downloaded them in the first place?

Also, side question, if something is not avaialble, is there a timeout before it searches again? E.g. what if a new album is coming out, not available yet, but drops in 2 months, but it already searched and said it's not avaialbe, does it re-search once a week, once a day, etc?

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.