Jump to content

Plugin: EmbyCredits, detect end credits and add auto skip.


Go to solution Solved by yocker,

Recommended Posts

Posted

I’m running into an issue on the latest version where I’m no longer able to save the tesseract api endpoint when using a docker container name (for example, http://tesseract-ocr:8100). I now get an error message saying that only localhost and local network addresses are allowed.

spk2010
Posted
On 3/13/2026 at 1:22 PM, yocker said:

@spk2010@DarWunI finished and added the "fix" to Emby deleting the time stamps. Hopefully this will fix all the problems with Emby doing that until the devs look into the problem.

I've been testing the new version since the day you posted it and I still have the same problem, the CreditsStart mark disappears when I click the "Next Episode" button. It's not a problem for me because I restore backups with Cron, but if you need any proof or logs just ask me.

  • Like 1
yocker
Posted
5 hours ago, spk2010 said:

I've been testing the new version since the day you posted it and I still have the same problem, the CreditsStart mark disappears when I click the "Next Episode" button. It's not a problem for me because I restore backups with Cron, but if you need any proof or logs just ask me.

New version in the test phase right now.

Btw. mind sharing the cron job?

yocker
Posted (edited)

Also just noticed that a metadata refresh makes it so Emby's own intro detection wont run on the series that had the metadata refreshed.

The devs might need to look at that one.

Edited by yocker
Posted
28 minutes ago, yocker said:

Btw. mind sharing the cron job?

credits_detector_backup+scan.sh:

#!/bin/bash

API_KEY="XXXXXXXXXXXXXXXXXX"
EMBY_URL="http://localhost:8096"
BACKUP_FILE="/home/pi/emby_backup/credits_detector_backup.json"
LIBRARY_ID="242"

echo "=== RESTAURANT BACKUP ==="

if [ ! -f "$BACKUP_FILE" ]; then
    echo "No hi ha backup, en creo un inicial..."
    curl -s -X POST "$EMBY_URL/emby/CreditsDetector/ExportCreditsBackup?api_key=$API_KEY" \
        -o "$BACKUP_FILE"
    echo "Backup inicial creat"
else
    jq -Rs '{JsonData: ., OverwriteExisting: false}' "$BACKUP_FILE" > "${BACKUP_FILE}.ready"

    curl -s -X POST "$EMBY_URL/emby/CreditsDetector/ImportCreditsBackup?api_key=$API_KEY" \
        -H "Content-Type: application/json" \
        --data @"${BACKUP_FILE}.ready"

    rm -f "${BACKUP_FILE}.ready"
    echo "Restauració feta"
fi

echo
echo "=== INICIANT ESCANEIG ==="

curl -s -X POST "$EMBY_URL/emby/CreditsDetector/StartDetection?api_key=$API_KEY" \
    -H "Content-Type: application/json" \
    -d "{\"LibraryId\":\"$LIBRARY_ID\",\"SkipExistingMarkers\":true}"

echo

URL="$EMBY_URL/emby/CreditsDetector/GetProgress?api_key=$API_KEY"

while true; do
    STATUS=$(curl -s "$URL")

    RUNNING=$(echo "$STATUS" | jq -r '.IsRunning')
    DONE=$(echo "$STATUS" | jq '.ProcessedItems')
    SKIPPED=$(echo "$STATUS" | jq '.SkippedItems')
    TOTAL=$(echo "$STATUS" | jq '.TotalItems')
    CURRENT=$(echo "$STATUS" | jq -r '.CurrentItem')

    echo "Processats: $DONE | Saltats: $SKIPPED | Total: $TOTAL"
    echo "Actual: $CURRENT"

    [ "$RUNNING" = "false" ] && break

    sleep 10
done

echo
echo "=== ESCANEIG ACABAT ==="
echo

echo "=== CREANT BACKUP FINAL ==="

curl -s -X POST "$EMBY_URL/emby/CreditsDetector/ExportCreditsBackup?api_key=$API_KEY" \
    -o "$BACKUP_FILE"

echo "Backup guardat a: $BACKUP_FILE"

 

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...