Kodi Community Forum
Running tmm cli with specific setting file. - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: TinyMediaManager (https://forum.kodi.tv/forumdisplay.php?fid=204)
---- Thread: Running tmm cli with specific setting file. (/showthread.php?tid=361622)



Running tmm cli with specific setting file. - BZwart - 2021-03-23

Would it be possible to run tmm with the cli and a specific setting file?
My idea is to run tmm cli daily with minimal setting (like update ratings)
 
And say once a week with more fields to update enabled.
Currently, I have tmm cli set to run daily completely hidden, would be nice if that could be a set and forget with various configurations.
 
So something like this:
tinyMediaManager movie -u --scrapeAll --daily.movies.json


RE: Running tmm cli with specific setting file. - mlaggner - 2021-03-23

sorry this won't work. The settings are tied to the database (because the database entries somehow depend on the settings). you could change the /data path via a parameter, but this exchanges the config AND the database. If you can guarantee that tmm itself will not run the same time as the cli runs (this probably will be true since the gui would lock the database anyway), you could copy (exchange) the movies.json in the /data folder prior to CLI and restore if after CLI


Running tmm cli with specific setting file. - BZwart - 2021-03-23

That was my plan B alternative .
I allready made a start with a scrip that checks is tmm isn't running and swapping and later retoring the movie and tvshows json files.


This forum uses Lukasz Tkacz MyBB addons.