Page 1 of 1

Alert plex/emby for one folder

Posted: 26 Jan 2020, 03:24
by geekmaster1
Is there a way to automate plex/emby on just the one folder/movie/tv show change/addition ? sort of like the way sonarr/radarr/lidarr do the 'connect' feature.

not a full scan but just the one folder

here is my:
.rtorrent.rc

Code: Select all

method.set_key=event.download.finished,filebot,"execute={/home/user/bin/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}"
/home/user/bin/rtorrent-postprocess.sh

Code: Select all

#!/bin/sh -xu
filebot -script fn:amc --output "/mnt/mergerfs/media/tv" --action hardlink -non-strict "/mnt/mergerfs/rtorrent/complete" --def ignore="tv-sonarr|radarr|archive" --def skipExtract=n --def deleteAfterExtract=n --def excludeList=/home/user/log/rtorrent/amc.txt --def "animeFormat=/mnt/mergerfs/media/tv//{n}/Season {s}/{n} - {s00e00} - {t}" --def extractFolder="/mnt/mergerfs/rtorrent/extracted" --def clean=y --def subtitles=en "seriesFormat=/mnt/mergerfs/media/tv/{n}{'/Season '+s}/{s+'x'}{e.pad(2)} - {t}" "movieFormat=/mnt/mergerfs/media/movies/{n} ({y})/{n} ({y})" --log-file="/home/user/log/rtorrent/amc-log.txt" &

Re: Alert plex/emby for one folder

Posted: 26 Jan 2020, 07:20
by rednoah
No, I'm not aware of there being a selective rescan feature, at least not via the API.

But if you have a 3rd party tool that can do it, then you can just use --def exec to call it.

Re: Alert plex/emby for one folder

Posted: 26 Jan 2020, 18:29
by kim
maybe do a pre-filter based on xattr ?

Re: Alert plex/emby for one folder

Posted: 26 Jan 2020, 21:01
by rednoah
e.g. I mean something like this:

Code: Select all

--def exec="/path/to/add-media-file.sh {quote f}"
:idea: add-media-file.sh would then be called with the newly processed file path as first argument, with that you could then use curl or any other 3rd party tool update plex/emby/etc with the updated files.


:idea: Alternatively, find /media -mmin -60 is very very very fast at finding recently modified files, so although rescans in HTPC software usually takes a long time, just checking for new files really should not.