webreaper / sonarrautoimport Goto Github PK
View Code? Open in Web Editor NEWScan video files and submit them to import into Sonarr, Drone-factory style.
Scan video files and submit them to import into Sonarr, Drone-factory style.
Is there a possibility you could add support for auto importing music to Lidarr. The reason I ask is because I am using Automatic Ripping Machine to rip movies, tv and music. So it would be nice to use this script to import everything ripped in to Sonarr, Radarr and Lidarr.
How do I run this as a scheduled task on Synology NAS?
It seems the windows binary v1.5 doesn't accept -dry-run or -v as params, as per readme file excerpt below:
There are also some optional params:
-v Enables verbose logging
-dry-run will scan the folder for video files, but not call the Sonarr API
The command I am using is below with the error output:
SonarrAutoImport -dry-run
[11:21:52.373--INF] === Sonarr Auto Import Log Started ===
[11:21:52.430--INF] LogLevel: Information
[11:21:52.517--ERR] Settings not found: ry-run
I have found that the readme needs updating to reflect 3 things if using windows:
Also, the readme could do with a good description as to the difference between "mappingPath" and "downloadsFolder". This has been provided in a separate issue by @ jortan with thanks.
Originally posted by @jortan in #10 (comment)
downloadsFolder is the path to media files to be processed from the perspective of SonarrAutoImport script
mappingPath is the path to media files to be processed from the perspective of Sonarr
These should point to the same destination. In some scenarios (docker) the same destination might require a different path.
This seems to have been broken (at least for me) for some time - radarr debug log records this when SonarrAutoImport attempts to import a file in to Radarr:
/api/command: 405.MethodNotAllowed (0 ms)
SonarrAutoImport 1.5
Radarr 4.7.5.7809
Needs to be updated to use "/api/v3/command" instead?
I think this is just what I might need for a recently upgraded Sonarr v4 installation.
Edit. Disregard. I didn't notice this was for a Windows installation, My installation runs on Ubuntu. I would need something like a python script.
Thanks for this project, it certainly fills a gap after "drone factory" functionality was deprecated.
Can I suggest a feature to allow delayed processing of files. SonarrAutoImport would enumerate files and then delay processing for the nominated time. This would prevent issues where a file is still being created in the location where it is to be moved from. (I suspect this is one of the reasons why the drone factory was removed in the first place)
plex@ubuntu1804:/datos/script$ SonarrAutoImport "/home/gdrive/Procesado/" API http://localhost:8989/ -dry-run
SonarrAutoImport: command not found
plex@ubuntu1804:/datos/script$
What could be the mistake?
Hopefully a quick question โ what are the steps to run this on either Mac or Docker?
hi
"There is an optional 4th parameter, which is the path to a 'transforms' file. This is a text file whose contents will be of the form"
where create this file.txt ?
example?
SonarrAutoImport "/volume1/video/Downloads" 12345678901234567890123456 http://192.168.1.30:8989 file.txt???
thanks
I get the following error, even though i have libssl installed, any ideas?
This looks like a super handy script but I can t figure out how to install it...
Any chance of a quick install guide?
Looking forward to testing this.
Setting up the setting.json and I just wanted to know what is the difference between the mappingPath and downloadsFolder. Sorry kinda new to Sonarr. Thanks
Output from docker container "mdhiggins/sonarr-sma:preview"
root@a68cec12aa1a:/config/.import# ./SonarrAutoImport -v
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.Globalization.CultureInfo.get_InvariantCulture()
at Serilog.Parsing.PropertyToken..ctor(System.String, System.String, System.String, System.Nullable1<Serilog.Parsing.Alignment>, Serilog.Parsing.Destructuring, Int32) at Serilog.Parsing.MessageTemplateParser.ParsePropertyToken(Int32, System.String, Int32 ByRef) at Serilog.Parsing.MessageTemplateParser+<Tokenize>d__1.MoveNext() at System.Collections.Generic.LargeArrayBuilder
1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddRange(System.Collections.Generic.IEnumerable1<System.__Canon>) at System.Collections.Generic.EnumerableHelpers.ToArray[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable
1<System.__Canon>)
at System.Linq.Enumerable.ToArray[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]
at Serilog.Events.MessageTemplate..ctor(System.String, System.Collections.Generic.IEnumerable1<Serilog.Parsing.MessageTemplateToken>) at Serilog.Parsing.MessageTemplateParser.Parse(System.String) at Serilog.Sinks.SystemConsole.Output.OutputTemplateRenderer..ctor(Serilog.Sinks.SystemConsole.Themes.ConsoleTheme, System.String, System.IFormatProvider) at Serilog.ConsoleLoggerConfigurationExtensions.Console(Serilog.Configuration.LoggerSinkConfiguration, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, Serilog.Core.LoggingLevelSwitch, System.Nullable
1<Serilog.Events.LogEventLevel>, Serilog.Sinks.SystemConsole.Themes.ConsoleTheme)
at SonarrAuto.Logging.LogHandler.InitLogs()
at SonarrAuto.Program.Main(System.String[])
Aborted (core dumped)
First off thanks for this fantastic tool its literally the only thing that I have found that actually replaces drone factory properly. Would you consider implementing the scan specified directory every X minutes and import feature that drone factory had? I always found it easier to use that feature instead of setting up a cronjob and it would be great you are able to.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.