Add part of file path with bracket
Posted: 04 Apr 2025, 18:43
I use StreamFab to get my downloads. StreamFab organizes downloads by provider. The download folder looks like:
Streamfab
-Provider1
--Show
---Season
----file1
-Provider2
--Show
---Season
----file2
I'd like to use this to tab where episodes came from. I'm trying to use brackets {. but I'm having issues. The without brackets this is working:
When I try to add brackets it breaks the part at the end.
Returns the whole file path plus [-4]
How can i get the -4 part to work to just return the part of the path that I'm looking for? Or is there another way to do this?
Streamfab
-Provider1
--Show
---Season
----file1
-Provider2
--Show
---Season
----file2
I'd like to use this to tab where episodes came from. I'm trying to use brackets {. but I'm having issues. The without brackets this is working:
Code: Select all
{drive}V:\TV\TMDB-Order\30-Stream Rip\{ny}\{'Season '+s00}\{ny} - {s00e00.lower()} - {t} - {f[-4]}
Code: Select all
{drive}V:\TV\TMDB-Order\30-Stream Rip\{ny}\{'Season '+s00}\{ny} - {s00e00.lower()} - {t} - {"{$f[-4]}"}
How can i get the -4 part to work to just return the part of the path that I'm looking for? Or is there another way to do this?