/setvar key=emptySwipesCount 0 |
/swipes-list |
/foreach list={{pipe}} {:
/if left={{item}} right={{noop}} rule=eq {:
/incvar emptySwipesCount
:} |
/if left={{item}} right="Proxy error" rule=in {:
/incvar emptySwipesCount
:}
:} |
/echo emptySwipesCount: {{getvar::emptySwipesCount}} |
/setvar key=i 0 |
/swipes-go 0 |
/while left=i right=emptySwipesCount rule=lt {:
/setvar key=j 0 |
/swipes-count |
/while left=j right={{pipe}} rule=lt {:
/swipes-get {{getvar::j}} |
/setvar key=currentSwipe {{pipe}} |
/if left=currentSwipe right={{noop}} rule=eq {:
/add j 1 |
/delswipe {{pipe}} |
/swipes-go 0 |
/break
:} |
/if left=currentSwipe right="Proxy error" rule=in {:
/add j 1 |
/delswipe {{pipe}} |
/swipes-go 0 |
/break
:} |
/incvar j
:} |
/incvar i
:} |
/echo Removed bad swipes
stscript to remove empty swipes
updated to also remove messages with "Proxy error" for all the dead key errors