Batch creation torrents for sub including parent folder

Job ID: 32121510

Budget: €30 – €250 EUR

Hello, i need a batch tool to create 1 torrent per sub but i need to include parent folder in metadata.

Exemple :

Series/Homeland/season 01/Episode 01.mkv

I need to create a torrent for season 01 (per example) but want to include full path in metadata, not only "season 01" folder.

I use torrenttools github project to batch creation of my torrents. Maybe using this tool, a regex pattern could be the solution or a python script, i don't know...

Thank you :)