v2.27 - New ignoreInstrumentalRelease option
#159 - Settting ignoreInstrumentalRelease to true in the config will cause the script to skip any release that has the word "Instrumental" in the title or disambiguation... This is untested, but should work....
This commit is contained in:
parent
4fba19499d
commit
ebd5eb7757
1 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
scriptVersion="2.26"
|
||||
scriptVersion="2.27"
|
||||
scriptName="Audio"
|
||||
|
||||
### Import Settings
|
||||
|
@ -35,6 +35,10 @@ verifyConfig () {
|
|||
deezerClientTestDownloadId="197472472"
|
||||
fi
|
||||
|
||||
if [ -z "$ignoreInstrumentalRelease" ]; then
|
||||
ignoreInstrumentalRelease="false"
|
||||
fi
|
||||
|
||||
audioPath="$downloadPath/audio"
|
||||
|
||||
}
|
||||
|
@ -1272,6 +1276,15 @@ SearchProcess () {
|
|||
albumTitleSearch="$(jq -R -r @uri <<<"${lidarrAlbumReleaseTitleSearchClean}")"
|
||||
#echo "Debugging :: $loopCount :: $releaseProcessCount :: $lidarrArtistForeignArtistId :: $lidarrReleaseTitle :: $lidarrAlbumReleasesMinTrackCount-$lidarrAlbumReleasesMaxTrackCount :: $lidarrAlbumReleaseTitleFirstWord :: $albumArtistNameSearch :: $albumTitleSearch"
|
||||
|
||||
|
||||
# ignore instrumental releases
|
||||
if [ "$ignoreInstrumentalRelease" == "true" ]; then
|
||||
if echo "$lidarrReleaseTitle" | grep -i "instrumental" | read; then
|
||||
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Instrumental Release Found, Skipping..."
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
# Skip Various Artists album search that is not supported...
|
||||
if [ "$lidarrArtistForeignArtistId" != "89ad4ac3-39f7-470e-963a-56509c546377" ]; then
|
||||
|
||||
|
|
Loading…
Reference in a new issue