Skip to content
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

Server_file type parameter issue. #702

Open
kodifan opened this issue Oct 1, 2023 · 2 comments
Open

Server_file type parameter issue. #702

kodifan opened this issue Oct 1, 2023 · 2 comments
Labels

Comments

@kodifan
Copy link

kodifan commented Oct 1, 2023

Hello probably it has been answered somewhere but i cannot find it:)
I want to create one script that does some magic with mkv files on my server (mainly subtitle manipulation on tv shows)
I want to be able to either change one given file or whole folder with many files
I tried to use Server_file parameter with any file type but it seems that is not working as expected (its not intended to work with recursive option which i want to use)
Anyway i thought that i can use two parameters:

  1. folder (required)
  2. file
    And when i do not choose any specific file script will run for all files in folder, but when a file is chosen - will run only for that specific file in folder.
    But I cant pass a folder name from parameter 1 to configuration of parameter 2
    How to achieve such configuration ? Is it even possible ?
@bugy
Copy link
Owner

bugy commented Oct 2, 2023

Hi @kodifan, why can't you pass parameter 1 to parameter 2? How are you trying to do it?

Also, may be you can use "recursive_file" feature instead: https://github.com/bugy/script-server/wiki/Script-config#file_recursive
A user would be able to select either a file or a folder from the dialog

@bugy bugy added the question label Oct 2, 2023
@kodifan
Copy link
Author

kodifan commented Oct 2, 2023

Hi @kodifan, why can't you pass parameter 1 to parameter 2? How are you trying to do it?

Also, may be you can use "recursive_file" feature instead: https://github.com/bugy/script-server/wiki/Script-config#file_recursive A user would be able to select either a file or a folder from the dialog

Why cant I pass ?? Because i dont know how to do it :) To be clear - i dont want to pass it in bash script that i wrote. I want to pass it from one parameter configuration (folder) to second parameter file as File directory field.

As I said recursive is kind not working to me for both files and directory. No mater what I tried one of those two think do not work. Try it your self. You cant select either a folder or a file when recursive option is enabled. If there is a some trick please share runner config with i will try it myslef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants