Wierd issue with Pushover notifications in AMC

Any questions? Need some help?
Post Reply
xoxojackie
Posts: 2
Joined: 15 Dec 2013, 03:10

Wierd issue with Pushover notifications in AMC

Post by xoxojackie » 31 Jan 2018, 02:19

edit:nevermind, I am dumb!

10 seconds after submitting this, I figured out I was using ut_title on the away machine but ut_name instead at home. Changing that solved my problem. Guess I needed to take the time to write it out to see the difference. I feel like an idiot, please disregard this post.


First off, I love FileBot. I’ve been using it for over five years now, in different ways on different platforms (with donations and purchases along the way!) and its never failed to do it’s job perfectly.

That said, I’m having a trivial yet really irritating issue with Pushover notifications in the AMC script.

I run FileBot both on a remote machine as part of a larger Deluge execute script, and on a local server as part of a syncing script, and there’s a difference in the Pushover notifications I get from each even though they’re both running the same version of FileBot ( with nearly identical arguments when it comes to the inputs.

On the remote machine, I get a single small message for each release: “FileBot processes 22 files: Bernie.Mac.S01.Whatever.Release.Info”. On the home machine, though, I get the same title but instead of the whole release name I get a list of every file processed, often taking up several messages.

It’s clear in this sceenshot:

https://i.imgur.com/Rzcy2qT.jpg

The bottom notification is from the remote machine and is nice and concise; above it are several notifications from the home machine that are downright unwieldy.

Here are the relevant parts of the script on the remote machine

Code: Select all

#!/bin/bash

torrent_id=$1
torrent_name=$2
torrent_path=$3

filebot-amc() {
   case "$label_plus" in
      *tv*|*movie*|*anime*)
         filebot -script fn:amc --output "$sb_media" \
            --action symlink -non-strict --conflict override \
            --log-file="$ks_dir/logs/away-filebot-amc.log" \
            --def pushover="$pushover_key:$pushover_sb_api" \
            --def extractFolder="$ks_dir/.extracts" \
            minLengthMS=1000 \
            --def seriesFormat="$sb_fb_series" \
            movieFormat="$sb_fb_movies" \
            animeFormat="$sb_fb_anime" \
            ut_dir="$torrent_path/$torrent_name" ut_title="$torrent_name" \
            ut_kind="multi" ut_label="$label_plus"
   esac
}
And my upteenth try to get the notifications normal on my home machine

Code: Select all

filebot-amc() {
   run_on_dir=$1
   run_with_label=$2
   run_on_name=$3

   filebot -script fn:amc --output "$home_media" \
      --action copy -non-strict --conflict override \
      --log-file="$ks_dir/logs/home-filebot-amc.log" \
      --def pushover="$pushover_key:$pushover_home_api" \
      --def extractFolder="$ks_dir/.extracts" \
      --def clean=y minLengthMS=1000 \
      --def seriesFormat="$home_fb_series" \
      ut_label="$run_with_label" ut_dir="$run_on_dir" \
      ut_name="$run_on_name"
}

run-filebot-if-needed() {
   if [[ -e "$incoming/Filebot/TV" ]]; then
      for media in "$incoming/Filebot/TV/"*; do
         filebot-amc "$media" "TV" "$(basename $media)"
      done
   fi
}
The loop was not the first thing I tried (just running on the whole directory was obviously first), but with the weird notifications I decided to try replicating the arguments used on the remote box. I also attempted to use find and -exec with no luck shortening the notifications.

The remote arguments

Code: Select all

Run script [fn:amc] at [Tue Jan 30 23:03:50 CET 2018]
Parameter: pushover = *****
Parameter: extractFolder = /home/thewiz/Scripts/Kitchen-Sync/.extracts
Parameter: minLengthMS = 1000
Parameter: seriesFormat = {plex}
Parameter: movieFormat = {plex}
Parameter: animeFormat = {plex}
Parameter: ut_dir = /home/thewiz/Downloads/The.Bernie.Mac.Show.S01.NF.WEB-DL.DDP2.0.x264-RTN
Parameter: ut_title = The.Bernie.Mac.Show.S01.NF.WEB-DL.DDP2.0.x264-RTN
Parameter: ut_kind = multi
Parameter: ut_label = tv shows
Look a lot like the home arguments

Code: Select all

Run script [fn:amc] at [Wed Jan 31 02:55:41 CET 2018]
Parameter: pushover = *****
Parameter: extractFolder = /home/thewiz/Scripts/Kitchen-Sync/.extracts
Parameter: clean = y
Parameter: minLengthMS = 1000
Parameter: seriesFormat = TV Shows/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t} [{source}-{vf}]
Parameter: ut_label = TV
Parameter: ut_dir = /home/thewiz/Incoming/Filebot/TV/The.Bernie.Mac.Show.S01.NF.WEB-DL.DDP2.0.x264-RTN
Parameter: ut_name = The.Bernie.Mac.Show.S01.NF.WEB-DL.DDP2.0.x264-RTN
Yet the notifications are very different.

Full logs for remote: https://pastebin.com/j8teka19 and home: https://pastebin.com/gyMYSSJr

I know this is a long post, and that it seems trivial, but I just don’t understand why I can’t replicate those same nice notifications on the home machine. It’s crazy annoying to get 3+ notifications for the same release, but I want to know when things are available on my HTPC.

Thanks for any guidance.

Oh, and for good measure

Remote sysinfo:

Code: Select all

↯ filebot -script fn:sysinfo
FileBot 4.7.14 (r5241)
JNA Native: 5.2.0
MediaInfo: 0.7.99
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.12
JRE: OpenJDK Runtime Environment 1.8.0_151
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 18 MB Used Memory
OS: Linux (amd64)
Package: PORTABLE
uname: Linux Avalon-v2 4.12.14-041214-generic #201709200843 SMP Wed Sep 20 12:46:23 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Home sysinfo:

Code: Select all

↯ filebot -script fn:sysinfo
FileBot 4.7.14 (r5256)
JNA Native: 5.2.0
MediaInfo: 0.7.99
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.12
JRE: OpenJDK Runtime Environment 1.8.0_151
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 18 MB Used Memory
OS: Linux (amd64)
Package: PORTABLE
uname: Linux Merlin 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests