New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--cli-config only works in test mode #1299
Comments
hmm, i think this has more to do than daemon running than test mode. can you try without daemon running? |
Yes, I confirm that it works as expected WITHOUT the daemon running. Is there any way around this? |
It is a bug, just not related to test mode. It should invoke config reload when used, I'll try to fix soon. |
Thanks a lot I would appreciate it! I could also try to give it a try myself but I am not familiar with the code. ...perhaps with some guidance I could manage it. |
Great! Thanks, it seems to be working now. |
You know I haven't done anything yet, right? Also, what exactly are you using this for? |
I just tried those two lines you changed. Even if hacky, it works. I am trying to do something similar to this: http://flexget.com/Cookbook/CLISearch |
Yeah, it'll work but not very polished yet. Shouldn't cause any harmful side effects thought. Also, as a rule of thumb, any time you want to pass a value to the input of a task, you could use the |
Allow config changing plugins to operate while daemon is running. Fixes #1299
I reverted the fix for this as it was causing issues. The real fix to this need to be a new way to pass options to daemon without any hacks, and honestly that seems like too much work just to get this plugin to work in daemon mode. |
Expected behaviour:
Passing configuration parameters to
flexget execute
from the command line with--cli-config
should work in normal (non-test) mode. The values passed through the command line should be replaced in the configuration variables the same way the are in test mode.Actual behaviour:
It works as expected as long as the
--test
flag is used. Without the--test
flag variables in the configuration are not replaced by the values passed with--cli-config
, instead, the literal variable name is used, i.e.$variable
.Steps to reproduce:
flexget --test execute --tasks test --cli-config variable=foobar -v --dump
flexget execute --tasks test --cli-config variable=foobar -v --dump
Config:
Log:
Test mode log:
The output is as expected. See how $variable is evaluated to 'foobar' in the entry title:
Normal mode log:
Incorrect behaviour. $variable is not evaluated in the entry title:
Additional information:
The text was updated successfully, but these errors were encountered: