![]() Unfortunately i can’t see any environment variable with this information that I could incorporate into my script.įor now i’m just using UTC time which is working well, But if there is a way to solve this it would make my OCD Day. If i use my script it will touch it with 11am the next day due to my different timezone.įrom what i have read the network/time translation is done either somewhere in the back end. ![]() Sonarr post-processing scripts receive environment variables as defined on this page, allowing you to pass that information through to the scripts. The problem i have found is if i use the inbuilt “Change File Date” function it set’s the modified date to local time relative to the network it aired on.įor instance if a show airs at 9pm Local time the inbuilt function will touch the file with 9pm the previous night. You may wish to further alter your setup by setting quality profiles or setting up post-processing so that media is automatically transferred to your Sonarr. This script utilizes the previous clearCache.sh script and the Sickbeard MP4 Automator script from here. This works great and it is touching the files with the local air-date and time relative to my time zone. #Converting Date from DD/MM/YYYY to MM/DD/YYYY so Date doesn't throw invalid date errors.Ĭonvert_date=$(echo "$" We can attach the actual scene name to database instead of the file name which can be pretty cryptic at times. ![]() It does this by default no post processing scripts are needed. I dont see any post processing scripts either. #sonarr_episodefile_path="/mnt/user/Media/TV_Shows/This Is Us/Season 02/This Is Us - S02E07 - The Most Disappointed Man.mkv" Tracks downloads through post processing state (instead of showing as missing until its imported) Gets the file path to the download directly via the api, so the user doesnt have to configure it in Sonarr. Sonarr version (exact version): Mono version (if Sonarr is not running on Windows): OS: Debug logs: Description of issue. #sonarr_episodefile_episodeairdatesutc=" 02:00:00" To get round this I decided to write a simple post processing script to set the modified date of downloaded files to the Local Air date. This wouldn’t normally be an issue but i’m using rclone to store a bunch of media in the cloud and each time it re scans it was downloading some files locally to update the air date. If [[ " $"Įcho " No rar files, deleting folder.So i’ve been encountering the random Mono bug that stops you from setting the modified date of some files. # Test that this is a download event, so we don't run on grab or rename. # For example, a path of "/data/torrents/tv", "torrents" is a good choice. Walkthough Guide created and provided by Justin(BitHawkGaming) Update/change as needed Custom Post Processing Scripts. If I recall you can also use the kodi api to update specific paths of the library. Then you just copy Sonarr.db to its new home, and start Sonarr. # Identifiable portion of path to torrents, so it will only run on torrents. On upgrades (proper in my case) I have always the leftovers of the replaced episode, so now every time a proper comes I trigger a library clean through a sonarr post processing script that executes curl to the kodi api endpoint. I also had the same issue running a different script that would perform the same purpose, however that one was a Shell Script. # The final base directory torrents end up in, for example "tv" from /data/torrents/tv And, Sonarr successfully tests the script in the settings. # Seconds to wait between size checks for in progress unpack Is there a way for me to use sonarr to monitor/find/download files and have it not do any renaming/moving but instead leave that to my script. # In *bytes*, the biggest rar file size limit to prevent video deletion from torrents with unrelated rar files (like subs) Hello, I have a custom script for anime that hashes my files, gets the exact info from anidb and renames/moves my files and builds symlinks based on its config there. # Tune values below to protect your torrents w/ small rar files or non-torrent download client. # Path: /path/to/where/script/is/sonarr_cleanup_packed_torrent.sh Parameters are passed to the script through environment variables (allowing for more flexibility in what we send to the script and not having to worry about a particular order). # In Sonarr, Settings -> Connect add a Custom Script Sonarr can execute a custom script when new episodes are imported or a series is renamed, depending on the which action occurred the parameters will be different. ![]() # Put this script somewhere on your file system like /usr/local/bin and make it executable. # sonarr_episodefile_sourcefolder="/data/torrent/tv/Penny.x264-2HD" sonarr_episodefile_sourcepath="/data/torrent/tv/Penny.x264-2HD/penny.x264-2hd.mkv"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |