Help with Sweeper

free30

Member
Hello.

I have three rules in sweeper but something is not working.

Basically the first is series filer, then I what to move all single recordings to /New, and then move all series that haven't been filed to /New.
Heres my raw text setup.
Can anyone see why its not moving series recordings that are not filed to /New/New ??

# Emulate Seriesfiler
folder series "" action {fileunder ""}
# File Every single recording
age {<= 3} action {movecreate {/media/My Video/New/New}}
# File every series recording
folder series "" age {<= 3} action {movecreate {/media/My Video/New/New}}

Thanks for any advise.
Hope you're all have a good weekend planned.
 
Last edited:
OP
free30

free30

Member
Thanks!

Still not happening....
Any other guidance?

# Emulate Seriesfiler
folder series "" action {fileunder ""}
# File Every single recording
age {>= 3} action {movecreate {/media/My Video/New/New}}
# File every series recording
folder series "" age {>= 3} action {fileundercreate {/media/My Video/New/New}}

02/06/2022 08:29 - --- SWEEP(0) STARTING FOR /media/My Video ---
02/06/2022 08:29 -
02/06/2022 08:29 - -- FOLDER RULES --
02/06/2022 08:29 - 02/06/2022 08:29 -
02/06/2022 08:29 - ==== folder /media/My Video/The Story of Welsh Art ====
02/06/2022 08:29 -
02/06/2022 08:29 - --- Considering /media/My Video/The Story of Welsh Art/The Story of Welsh Art_20220601_2000.ts
02/06/2022 08:29 - Processing [series {} action {fileunder ""}]
02/06/2022 08:29 - series()
02/06/2022 08:29 - MATCH
02/06/2022 08:29 - action(fileunder "")
02/06/2022 08:29 - ACTION: fileunder() [1]
02/06/2022 08:29 - - searching for The Story of Welsh Art under /media/My Video
02/06/2022 08:29 - =
02/06/2022 08:29 - Did not find directory.
02/06/2022 08:29 -
02/06/2022 08:29 - ==== folder /media/My Video/New ====
02/06/2022 08:29 -
02/06/2022 08:29 - No usable recordings in folder.
02/06/2022 08:29 -
02/06/2022 08:29 - ==== folder /media/My Video/(New and Unwatched) ====
02/06/2022 08:29 -
02/06/2022 08:29 - --- Considering /media/My Video/(New and Unwatched)/Great British Railway Journeys_20220602_0116.ts
02/06/2022 08:29 - Processing [series {} action {fileunder ""}]
02/06/2022 08:29 - series()
02/06/2022 08:29 - Not series folder (nofile).
02/06/2022 08:29 - Nomatch
02/06/2022 08:29 - Processing [series {} age {<= 3} action {fileundercreate {/media/My Video/New/New}}]
02/06/2022 08:29 - series()
02/06/2022 08:29 - Not series folder (nofile).
02/06/2022 08:29 - Nomatch
02/06/2022 08:29 -
02/06/2022 08:29 - ==== folder /media/My Video/Abigail's Party_ Play For Today ====
02/06/2022 08:29 -
02/06/2022 08:29 - --- Considering /media/My Video/Abigail's Party_ Play For Today/Abigail's Party_ Play For Today_20220601_2201.ts
02/06/2022 08:29 - Processing [series {} action {fileunder ""}]
02/06/2022 08:29 - series()
02/06/2022 08:29 - MATCH
02/06/2022 08:29 - action(fileunder "")
02/06/2022 08:29 - ACTION: fileunder() [1]
02/06/2022 08:29 - - searching for Abigail's Party_ Play For Today under /media/My Video
02/06/2022 08:29 - =
02/06/2022 08:29 - Did not find directory.
02/06/2022 08:29 -
02/06/2022 08:29 - ==== folder /media/My Video/Collection ====
02/06/2022 08:29 -
02/06/2022 08:29 - No usable recordings in folder.
 
OP
free30

free30

Member
So I thought I'd wait 3 hours before filing away... always get greater and lesser than confused.
But even if I delete this condition still will not file away series recordings.
 

Black Hole

May contain traces of nut
Yes, but your quoted code does not match the log. Was your code modified before or after the logged run?

Was it your expectation that both Great British Railway Journeys and Abigail's Party would be moved?

Personally, I don't bother with sweeper much and just use flatview.
 
OP
free30

free30

Member
I was expecting both to be moved.
Yes I use Flatview but still want to file recordings.
Sorry not sure which way around so here again my text and the response.
😃


# Emulate Seriesfiler
folder series "" action {fileunder ""}
# File Every single recording
action {movecreate {/media/My Video/New/New}}
# File every series recording
folder series "" action {fileundercreate {/media/My Video/New/New}}

02/06/2022 09:28 - --- SWEEP(0) STARTING FOR /media/My Video ---
02/06/2022 09:28 -
02/06/2022 09:28 -
02/06/2022 09:28 - -- FOLDER RULES --
02/06/2022 09:28 -
02/06/2022 09:28 -
02/06/2022 09:28 - ==== folder /media/My Video/The Story of Welsh Art ====
02/06/2022 09:28 -
02/06/2022 09:28 - --- Considering /media/My Video/The Story of Welsh Art/The Story of Welsh Art_20220601_2000.ts
02/06/2022 09:28 - Processing [series {} action {fileunder ""}]
02/06/2022 09:28 - series()
02/06/2022 09:28 - MATCH
02/06/2022 09:28 - action(fileunder "") 02/06/2022 09:28 - ACTION: fileunder() [1] 02/06/2022 09:28 - - searching for The Story of Welsh Art under /media/My Video
02/06/2022 09:28 - =
02/06/2022 09:28 - Did not find directory.
02/06/2022 09:28 -
02/06/2022 09:28 - ==== folder /media/My Video/New ====
02/06/2022 09:28 -
02/06/2022 09:28 - No usable recordings in folder.
02/06/2022 09:28 -
02/06/2022 09:28 - ==== folder /media/My Video/(New and Unwatched) ====
02/06/2022 09:28 -
02/06/2022 09:28 - --- Considering /media/My Video/(New and Unwatched)/Great British Railway Journeys_20220602_0116.ts 02/06/2022 09:28 - Processing [series {} action {fileunder ""}]
02/06/2022 09:28 - series()
02/06/2022 09:28 - Not series folder (nofile).
02/06/2022 09:28 - Nomatch
02/06/2022 09:28 - Processing [series {} action {fileundercreate {/media/My Video/New/New}}]
02/06/2022 09:28 - series()
02/06/2022 09:28 - Not series folder (nofile).
02/06/2022 09:28 - Nomatch
02/06/2022 09:28 -
02/06/2022 09:28 - ==== folder /media/My Video/Abigail's Party_ Play For Today ====
02/06/2022 09:28 - 02/06/2022 09:28 - --- Considering /media/My Video/Abigail's Party_ Play For Today/Abigail's Party_ Play For Today_20220601_2201.ts
02/06/2022 09:28 - Processing [series {} action {fileunder ""}]
02/06/2022 09:28 - series()
02/06/2022 09:28 - MATCH
02/06/2022 09:28 - action(fileunder "")
02/06/2022 09:28 - ACTION: fileunder() [1]
02/06/2022 09:28 - - searching for Abigail's Party_ Play For Today under /media/My Video
02/06/2022 09:28 - =
02/06/2022 09:28 - Did not find directory.
02/06/2022 09:28 -
02/06/2022 09:28 - ==== folder /media/My Video/Collection ====
02/06/2022 09:28 -
02/06/2022 09:28 - No usable recordings in folder.
 

Black Hole

May contain traces of nut
Perhaps you can explain what steps you expect the processing to take? Take a look at the GUI representation, and post a snapshot of it. Note there is also a debug mode in the GUI.

Something to be aware of is that the processing of rules is per target entity found, and later rules are only processed if all previous rules have failed their condition.
 
OP
free30

free30

Member
Thanks again.

So I'd like
1. series filer,
2. then I what to move all single recordings to /media/My Video/New/New,
3. and then move all series that haven't been filed to /media/My Video//New/New.

So, for instance, I expect it to move "/media/My Video/The Story of Welsh Art/The Story of Welsh Art_20220601_2000.ts" to "/media/My Video/New/New/The Story of Welsh Art/"
but its not.

"debug mode" ? do you mean the 'test config'. This seems to be the same as running it but with out any action.

sweeper.jpg
1
 

Black Hole

May contain traces of nut
So, for instance, I expect it to move "The Story of Welsh Art_20220601_2000.ts" to "/media/My Video/New/New/The Story of Welsh Art/"
Go through the steps. What appears to be happening is it looks for a suitable target folder and finds none. Is there one? Having not found one, processing stops for that entity. It won't go on to the third rule where a folder will be created.
 
OP
free30

free30

Member
Ok thanks.
No there are no series folders for it to add the recordings to so it needs to move and create a folder under /New/New.

So its only processing the first rule.
Is there a way to get it to move through the rules.
Am missing something...
 

Black Hole

May contain traces of nut
Am missing something...
You need the rules in the opposite order, and you can consider folder rules separate from recording rules. The catch-all type rules (which match everything) should come last. In fact, do you need the first rule at all (I'm not sure exactly what the difference is between "merge" and "move")?
 
OP
free30

free30

Member
Thanks

So I think I've got it.
I have had this working before but lost the code. I will make sure I remember this, this time.
The time condition is to allow it to file series's with folders already created, first. Then file the ones without a folders into /new,
even though the 'file all' rule comes first. Bit confusing but I think I've got it working... Time will tell as I hope it doesn't just create folders for series's with folders already somewhere else.

# File Every single recording
age {>= 3} action {movecreate {/media/My Video/New/New}}
# File every series recording
folder series "" age {>= 3} action {movecreate {/media/My Video/New/New}}
# Emulate Seriesfiler
folder series "" action {fileunder ""}


Thank you so much for your support
 
Last edited:

Luke

Well-Knwοn Мember
# File Every single recording
age {>= 3} action {movecreate {/media/My Video/New/New}}
# File every series recording
folder series "" age {>= 3} action {movecreate {/media/My Video/New/New}}
# Emulate Seriesfiler
folder series "" action {fileunder ""}
Last time you were asking about this you said that you had changed the timings of my 'new series filing' rule to '24 hours old' (from 10 hours old), to prevent it filing recordings that you want 'seriesfiler' to move. Do you now keep your Humax on all the time?
I've changed the timings of my 'new series filing' rule to '24 hours old' to prevent it filing recordings I want 'seriesfiler' to move.
Based on your 2017 posts it looks as though your first working version was:
# File Every single recording
age {>= 6} action {move {/media/My Video/New/Programs and Mini Series}}
# File every series recording
folder series "" age {>= 24} action {fileundercreate {/media/My Video/New/Programs and Mini Series}}
# Emulate Seriesfiler
folder series "" action {fileunder ""}

You probably don't need the age on the single recording rule, but you did have that previously as well.
 
OP
free30

free30

Member
Well that's a little embarrassing. Sorry. It was five years ago.

Thank you so very much....again
 

Black Hole

May contain traces of nut
folder series "" age {>= 3} action {movecreate {/media/My Video/New/New}}
You've gone back to movecreate instead of fileundercreate. Does that work? If so, what's the point of fileundercreate? You had the latter in 2017 (according to Luke).
 
OP
free30

free30

Member
You've gone back to movecreate instead of fileundercreate. Does that work? If so, what's the point of fileundercreate? You had the latter in 2017 (according to Luke).
Yes I needed Fileundercreate.

With movecreate it put them into the \New folder but not in subfolders. With Fileundercreate it filled them under /New with subfolders for each series.

Sorry I miss your question last week.
 
Top