Jump to content

Autoscan (Cloudb0x)


Recommended Posts

Posted

Hi There,

Anyone here who gets autoscan from Cloudb0x working with Emby..

Everything seems to be configured correctly , but the autoscan doesn't seem to trigger Emby for a scan on the shares...

 

Anyone an idea?

Posted

fixed it.... there is a typo on the GitHub page for autoscan.... it is working now.

Posted

Thanks for the feedback.

Posted (edited)

I was just wondering.... Before I found "Autoscan" I used my own simple script...... Wondering if Autoscan is so much better than this script.... What would be the selling feature for Autoscan?? (this script is for Radarr, I have a similar script for Sonarr)

 

#!/bin/bash

NOW=$(date +"%d-%m-%Y %H:%M")
LOG_FILE="/logging/radarr/emby_scan.txt"
TMP_FILE="/tmp/tmp.txt"
EMBY_HOST="192.168.1.1"
EMBY_PORT="8096"
EMBY_RADARR_APIKEY="xxxxyyyyzzzzzxxxxyyyzzzzz"

if [ "${radarr_eventtype}" == "Grab" ]; then
  (echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, exiting."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE
  exit
fi

if [ "${radarr_eventtype}" == "HealthIssue" ]; then
  (echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, exiting."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE
  exit
fi

if [ "${radarr_eventtype}" == "Test" ]; then
  (echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, exiting."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE
  exit
fi

(echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, updating Emby Library for ${radarr_movie_title}."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE
curl --data '' http://$EMBY_HOST:$EMBY_PORT/Emby/Library/Refresh?api_key=$EMBY_RADARR_APIKEY

 

Edited by Marc0
Posted

What I see is that on "Delete" the Autoscan product does a poor job on removing all the metadata from Emby.

As the simple script triggers a full removal of the meta data.

 

Autoscan triggers on a interval the library scan, but this script can be placed on crontab too.... so no advantage.

I think I switch back to the simple script.

Posted (edited)

Refined the script a bit

 

#!/bin/bash

NOW=$(date +"%d-%m-%Y %H:%M")
LOG_FILE="/logging/radarr/emby_scan.txt"
TMP_FILE="/tmp/tmp.txt"
EMBY_HOST="192.168.1.1"
EMBY_PORT="8096"
EMBY_RADARR_APIKEY="xxxxyyyyzzzzxxxxyyyyzzzz"

if [ "${radarr_eventtype}" == "Grab" ] || [ "${radarr_eventtype}" == "HealthIssue" ] || [ "${radarr_eventtype}" == "Test" ]; then
  (echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, exiting."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE
  exit
fi

if [ "${radarr_eventtype}" == "" ]; then
    radarr_eventtype="Non-Radarr Triggered"
fi

if [ "${radarr_movie_title}" == "" ]; then
    radarr_movie_title="Non-Radarr trigger"
fi

(echo "$NOW - [Emby Library Scan] Radarr Event Type is ${radarr_eventtype}, updating Emby Library for ${radarr_movie_title}."; cat $LOG_FILE) > $TMP_FILE; mv $TMP_FILE $LOG_FILE

curl --data '' http://$EMBY_HOST:$EMBY_PORT/Emby/Library/Refresh?api_key=$EMBY_RADARR_APIKEY

 

Edited by Marc0

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...