![]() batch script waits for 3 hours (full seasons sometimes take a long time to import) then deletes new files, moves original files back, and resumes torrent.Sonarr detects the video files and processes the import.once all video files are processed, the new files are moved into the original download folder.batch script then optimizes the video files to my specifications and moves the originals to a temporary postprocess holding folder.When download is complete, client executes a batch script that pauses torrent to unlock files, then moves all possible video files to a scratch folder to be processed (this is to avoid Sonarr grabbing them first).Sonarr finds show and adds to bittorrent client.I finally managed to get this to work through some scripting without having to rely on the Drone Factory. ![]() this is why I needed to do my file processing post download but pre-import as it would not make sense to grab a file, upload it, download it, process it, then upload it again. I am using Sonarr with Google file stream to import my files into my Plex Cloud server. Sonarr/Sonarr Issue: Ability to execute a script before import (Pre-import script) I see an open request for this type of handling, but other than waiting, is there another way to do this today? I use it very rarely nowadays, so constantly scanning that folder doesn’t make much sense. I did try to use completed download handling in my downloader, but I get a directory, and I will and up doing similar cleanup as Sonarr to files in the folder, I could make it work, but much cleaner if I can get a shot at the file in Sonarr. I set the new output file name (maybe environment variable, or maybe staging folder with whatever file is left in folder).I process the file, this may change the extension, and it may change the media contents.My script is called with the input file name.File is successfully downloaded from downloader.an MP4 file will be converted to a MKV, or a MPEG2 video stream will be converted to H264. At least set it to something else than the torrent watch folder. I think you don’t require the drone factory, unless you use it for something else, and it can be disabled safely. Watch folder should be the folder where uTorrent moves completed downloads. ![]() Today my app listens for file change notifications in the output folder, and then processes modified files.īecause I modify the file after it has been imported into Sonarr, and my media library, the media details in Sonarr are not accurate, and I need to dance around in-use files, e.g. Torrent folder should be the dropbox folder where uTorrent watches for. ![]() With process, I mean I remux or re-encode to H264 MKV (so that I can direct play on my playback devices), I set unknown language tracks to English (so that subtitle handling works correctly), I remove any subtitle or audio tracks other than English (to save space), etc. Hi, I wrote an app that will process media files so that they behave well in my various media players, and I would like Sonarr to call this app, after download, but before importing the media file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |