Skip to content
Discussion options

You must be logged in to vote

Thank you, those examples helped greatly!
For anyone wanting a similar solution in the future, the following snippet worked for me:

method.set_key = event.download.inserted_new, route_logic, \
{(branch, \
    ((d.is_multi_file)), \
    ((d.directory.set,(cat,(directory.default),"/",(d.custom1)))), \
    ((d.directory.set,(cat,(directory.default),"/",(d.custom1),"/",(d.name)))) \
)}

This works great with something like sonarr / radarr setting the custom1 tag, and cleanly creates folders for single-file torrents.

Thanks for all the help!

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rakshasa
Comment options

Comment options

You must be logged in to vote
1 reply
@vidarrio
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vidarrio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants