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

Give subfolder(s) path into config overrides subject name #83

Open
scriptzteam opened this issue Dec 27, 2020 · 4 comments
Open

Give subfolder(s) path into config overrides subject name #83

scriptzteam opened this issue Dec 27, 2020 · 4 comments

Comments

@scriptzteam
Copy link

scriptzteam commented Dec 27, 2020

Hi, it is possible to have in config subfolder(s) path? I overwrite it into nzb subject name after upload but need give subject names back subfolders path

overrides: {
                // here you can override values for NZB <file> entries.....

thx!

@animetosho
Copy link
Owner

What do you mean by "subfolder(s) path" - the full path of the file as specified in the command line? If so, --filename "{filename}" can be used to preserve the full filename, as specified.

In functions, you can manipulate the filename as you like, via require('path').basename( ... ) and similar.

@scriptzteam
Copy link
Author

scriptzteam commented Dec 28, 2020

i mean when i upload sampledir:

sampledir:
file_1.txt
/sub_dir/file2_.txt
/sub_dir1/file3_.txt

All those getting removed sub_dir names in subject name so became for example file3_.txt, i want that file3_.txt after download ends in /sub_dir1/

@animetosho
Copy link
Owner

If I understand you correctly, --filename "{filename}" is what you want.
Otherwise, I'm confused as to what you're exactly after.

@nonspin
Copy link

nonspin commented Jan 1, 2021

I don't think nyuu touches the FS - or the structure for that matter.
RAR&ZIP are capable of flattening a directory - pulling all files from a sub_dir to
the work_dir.

Not sure if ParPar (or any other Par2) has such feature and 'restore(s)' the files to root flattened..

Since i'm somewhat confused what you mean ... here's a wild one:
You aren't trying to submit "/" in --subject ? I think it'll break 'zeh serf'

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

No branches or pull requests

3 participants