Skip to content

Instantly share code, notes, and snippets.

@koffienl
Created December 29, 2024 08:36
Show Gist options
  • Save koffienl/c226a3562f6f53eb4f2671d96f7d8865 to your computer and use it in GitHub Desktop.
Save koffienl/c226a3562f6f53eb4f2671d96f7d8865 to your computer and use it in GitHub Desktop.
Delete Mp4 Older Than X Day
<TaskerData sr="" dvi="1" tv="6.3.13">
<Task sr="task5">
<cdate>1541493102713</cdate>
<edate>1734326803269</edate>
<id>5</id>
<nme>Delete Mp4 Older Than X Days</nme>
<pri>100</pri>
<Share sr="Share">
<b>false</b>
<d>Delete files older than x days</d>
<p>false</p>
<t></t>
</Share>
<Action sr="act0" ve="7">
<code>412</code>
<Str sr="arg0" ve="3">DCIM/Camera</Str>
<Str sr="arg1" ve="3">*.mp4</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="6"/>
<Str sr="arg5" ve="3">%list</Str>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%count</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>300</code>
<label>start loop</label>
</Action>
<Action sr="act3" ve="7">
<code>888</code>
<Str sr="arg0" ve="3">%count</Str>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>342</code>
<Int sr="arg0" val="1"/>
<Str sr="arg1" ve="3">%list(%count)</Str>
<Str sr="arg2" ve="3">%date</Str>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="1"/>
</Action>
<Action sr="act5" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%days</Str>
<Str sr="arg1" ve="3">90</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%period</Str>
<Str sr="arg1" ve="3">%TIMES-(%days*24*60*60)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>406</code>
<Str sr="arg0" ve="3">%list(%count)</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%date</lhs>
<op>6</op>
<rhs>%period</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="7">
<code>135</code>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="11"/>
<Str sr="arg2" ve="3">start loop</Str>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%count</lhs>
<op>6</op>
<rhs>%list(#)</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>300</code>
<label>end loop</label>
</Action>
</Task>
</TaskerData>
Delete Jpg Older Than X Days
<TaskerData sr="" dvi="1" tv="6.3.13">
<Task sr="task4">
<cdate>1541493102713</cdate>
<edate>1735422813688</edate>
<id>4</id>
<nme>Delete Jpg Older Than X Days</nme>
<pri>100</pri>
<Share sr="Share">
<b>false</b>
<d>Delete files older than x days</d>
<p>false</p>
<t></t>
</Share>
<Action sr="act0" ve="7">
<code>412</code>
<Str sr="arg0" ve="3">DCIM/Camera</Str>
<Str sr="arg1" ve="3">*.jpg</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="6"/>
<Str sr="arg5" ve="3">%list</Str>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%count</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>300</code>
<label>start loop</label>
</Action>
<Action sr="act3" ve="7">
<code>888</code>
<Str sr="arg0" ve="3">%count</Str>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>342</code>
<Int sr="arg0" val="1"/>
<Str sr="arg1" ve="3">%list(%count)</Str>
<Str sr="arg2" ve="3">%date</Str>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="1"/>
</Action>
<Action sr="act5" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%days</Str>
<Str sr="arg1" ve="3">90</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%period</Str>
<Str sr="arg1" ve="3">%TIMES-(%days*24*60*60)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>406</code>
<Str sr="arg0" ve="3">%list(%count)</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%date</lhs>
<op>6</op>
<rhs>%period</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="7">
<code>135</code>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="11"/>
<Str sr="arg2" ve="3">start loop</Str>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%count</lhs>
<op>6</op>
<rhs>%list(#)</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>300</code>
<label>end loop</label>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment