Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.51 KB | None | 0 0
  1. <TaskerData sr="" dvi="1" tv="5.1m">
  2. <Task sr="task7">
  3. <cdate>1495494448468</cdate>
  4. <edate>1516778793301</edate>
  5. <id>7</id>
  6. <nme>Check Humble Bundle Game Deals</nme>
  7. <pri>100</pri>
  8. <Action sr="act0" ve="7">
  9. <code>118</code>
  10. <label>Check Humble Bundle desktop website</label>
  11. <Str sr="arg0" ve="3">https://www.humblebundle.com</Str>
  12. <Str sr="arg1" ve="3"/>
  13. <Str sr="arg2" ve="3"/>
  14. <Str sr="arg3" ve="3"/>
  15. <Str sr="arg4" ve="3">Mozilla/5.0</Str>
  16. <Int sr="arg5" val="10"/>
  17. <Str sr="arg6" ve="3"/>
  18. <Str sr="arg7" ve="3"/>
  19. <Int sr="arg8" val="0"/>
  20. </Action>
  21. <Action sr="act1" ve="7">
  22. <code>129</code>
  23. <label>Get game bundle info (manual scrape/may break)</label>
  24. <Str sr="arg0" ve="3">var gamebundlecount = 0;
  25. var gamebundlename = new Array();
  26. var gamebundledesc = new Array();
  27. var gamebundleurl = new Array();
  28. var baseurl = "https://www.humblebundle.com";
  29.  
  30. var humblejson = global('HTTPD').match(/productTiles = ([^]+?);\n/)[1];
  31.  
  32. var humbleobj = JSON.parse(humblejson);
  33.  
  34. for (var i = 0; i &lt; humbleobj.length; i++)
  35. {
  36. if (humbleobj[i].tile_stamp === "games")
  37. {
  38. gamebundlecount++;
  39.  
  40. gamebundlename[gamebundlecount - 1] = humbleobj[i].tile_name;
  41.  
  42. gamebundledesc[gamebundlecount - 1] = humbleobj[i].marketing_blurb;
  43.  
  44. gamebundleurl[gamebundlecount - 1] = baseurl + humbleobj[i].product_url;
  45. }
  46. }</Str>
  47. <Str sr="arg1" ve="3"/>
  48. <Int sr="arg2" val="1"/>
  49. <Int sr="arg3" val="45"/>
  50. </Action>
  51. <Action sr="act10" ve="7">
  52. <code>39</code>
  53. <label>Iterate through game bundles</label>
  54. <Str sr="arg0" ve="3">%item</Str>
  55. <Str sr="arg1" ve="3">1:%gamebundlecount</Str>
  56. <ConditionList sr="if">
  57. <Condition sr="c0" ve="3">
  58. <lhs>%gamebundlecount</lhs>
  59. <op>1</op>
  60. <rhs>0</rhs>
  61. </Condition>
  62. </ConditionList>
  63. </Action>
  64. <Action sr="act11" ve="7">
  65. <code>37</code>
  66. <label>Bundle not in last bundles</label>
  67. <ConditionList sr="if">
  68. <Condition sr="c0" ve="3">
  69. <lhs>%lastbundles()</lhs>
  70. <op>5</op>
  71. <rhs>%gamebundlename(%item)</rhs>
  72. </Condition>
  73. </ConditionList>
  74. </Action>
  75. <Action sr="act12" ve="7">
  76. <code>30</code>
  77. <label>Don't spam the server</label>
  78. <Int sr="arg0" val="0"/>
  79. <Int sr="arg1" val="5"/>
  80. <Int sr="arg2" val="0"/>
  81. <Int sr="arg3" val="0"/>
  82. <Int sr="arg4" val="0"/>
  83. </Action>
  84. <Action sr="act13" ve="7">
  85. <code>118</code>
  86. <label>Get indiv bundle source</label>
  87. <Str sr="arg0" ve="3">%gamebundleurl(%item)</Str>
  88. <Str sr="arg1" ve="3"/>
  89. <Str sr="arg2" ve="3"/>
  90. <Str sr="arg3" ve="3"/>
  91. <Str sr="arg4" ve="3">Mozilla/5.0</Str>
  92. <Int sr="arg5" val="10"/>
  93. <Str sr="arg6" ve="3"/>
  94. <Str sr="arg7" ve="3"/>
  95. <Int sr="arg8" val="0"/>
  96. </Action>
  97. <Action sr="act14" ve="7">
  98. <code>129</code>
  99. <label>Get indiv bundle info</label>
  100. <Str sr="arg0" ve="3">var http = document.createElement('html'); http.innerHTML = global('HTTPD');
  101.  
  102. var tiers = http.getElementsByClassName("dd-image-box-list");
  103.  
  104. var prices = http.getElementsByClassName("hr-payment-tier-heading-text");
  105.  
  106. var gamesarray = new Array();
  107.  
  108. var notificationtext = "";
  109.  
  110. for (var i = 0; i &lt; tiers.length; i++)
  111. {
  112. var games = tiers[i].getElementsByClassName("dd-image-box-caption");
  113.  
  114. var gameslist = "&lt;b&gt;" + prices[i].innerText + ": &lt;/b&gt;";
  115.  
  116. for (var j = 0; j &lt; games.length; j++)
  117. {
  118. var gamename = games[j].innerText;
  119. gamename = gamename.trim();
  120. gameslist += gamename;
  121.  
  122. if (j &lt; (games.length - 1))
  123. {
  124. gameslist += ", ";
  125. }
  126. }
  127.  
  128. if (i &lt; (tiers.length - 1))
  129. {
  130. gameslist += "&lt;br&gt;";
  131. }
  132.  
  133. gamesarray[i] = gameslist;
  134. }
  135.  
  136. for (var i = 0; i &lt; gamesarray.length; i++)
  137. {
  138. notificationtext += gamesarray[i];
  139. }</Str>
  140. <Str sr="arg1" ve="3"/>
  141. <Int sr="arg2" val="1"/>
  142. <Int sr="arg3" val="45"/>
  143. </Action>
  144. <Action sr="act15" ve="7">
  145. <code>166160670</code>
  146. <label>Notify user about the new bundle</label>
  147. <Bundle sr="arg0">
  148. <Vals sr="val">
  149. <ActionIconString1>&lt;null&gt;</ActionIconString1>
  150. <ActionIconString1-type>java.lang.String</ActionIconString1-type>
  151. <ActionIconString2>&lt;null&gt;</ActionIconString2>
  152. <ActionIconString2-type>java.lang.String</ActionIconString2-type>
  153. <ActionIconString3>&lt;null&gt;</ActionIconString3>
  154. <ActionIconString3-type>java.lang.String</ActionIconString3-type>
  155. <ActionIconString4>&lt;null&gt;</ActionIconString4>
  156. <ActionIconString4-type>java.lang.String</ActionIconString4-type>
  157. <ActionIconString5>&lt;null&gt;</ActionIconString5>
  158. <ActionIconString5-type>java.lang.String</ActionIconString5-type>
  159. <AppendTexts>false</AppendTexts>
  160. <AppendTexts-type>java.lang.Boolean</AppendTexts-type>
  161. <BackgroundColor>#FFB71C1C</BackgroundColor>
  162. <BackgroundColor-type>java.lang.String</BackgroundColor-type>
  163. <BadgeType>&lt;null&gt;</BadgeType>
  164. <BadgeType-type>java.lang.String</BadgeType-type>
  165. <Button1UnlockScreen>false</Button1UnlockScreen>
  166. <Button1UnlockScreen-type>java.lang.Boolean</Button1UnlockScreen-type>
  167. <Button2UnlockScreen>false</Button2UnlockScreen>
  168. <Button2UnlockScreen-type>java.lang.Boolean</Button2UnlockScreen-type>
  169. <Button3UnlockScreen>false</Button3UnlockScreen>
  170. <Button3UnlockScreen-type>java.lang.Boolean</Button3UnlockScreen-type>
  171. <Button4UnlockScreen>false</Button4UnlockScreen>
  172. <Button4UnlockScreen-type>java.lang.Boolean</Button4UnlockScreen-type>
  173. <Button5UnlockScreen>false</Button5UnlockScreen>
  174. <Button5UnlockScreen-type>java.lang.Boolean</Button5UnlockScreen-type>
  175. <ChronometerCountDown>false</ChronometerCountDown>
  176. <ChronometerCountDown-type>java.lang.Boolean</ChronometerCountDown-type>
  177. <Colorize>false</Colorize>
  178. <Colorize-type>java.lang.Boolean</Colorize-type>
  179. <GroupAlertBehaviour>&lt;null&gt;</GroupAlertBehaviour>
  180. <GroupAlertBehaviour-type>java.lang.String</GroupAlertBehaviour-type>
  181. <GroupKey>&lt;null&gt;</GroupKey>
  182. <GroupKey-type>java.lang.String</GroupKey-type>
  183. <IconExpanded>&lt;null&gt;</IconExpanded>
  184. <IconExpanded-type>java.lang.String</IconExpanded-type>
  185. <IsGroupSummary>false</IsGroupSummary>
  186. <IsGroupSummary-type>java.lang.Boolean</IsGroupSummary-type>
  187. <MediaLayout>false</MediaLayout>
  188. <MediaLayout-type>java.lang.Boolean</MediaLayout-type>
  189. <NotificationChannelBypassDnd>false</NotificationChannelBypassDnd>
  190. <NotificationChannelBypassDnd-type>java.lang.Boolean</NotificationChannelBypassDnd-type>
  191. <NotificationChannelDescription>&lt;null&gt;</NotificationChannelDescription>
  192. <NotificationChannelDescription-type>java.lang.String</NotificationChannelDescription-type>
  193. <NotificationChannelId>&lt;null&gt;</NotificationChannelId>
  194. <NotificationChannelId-type>java.lang.String</NotificationChannelId-type>
  195. <NotificationChannelImportance>&lt;null&gt;</NotificationChannelImportance>
  196. <NotificationChannelImportance-type>java.lang.String</NotificationChannelImportance-type>
  197. <NotificationChannelName>&lt;null&gt;</NotificationChannelName>
  198. <NotificationChannelName-type>java.lang.String</NotificationChannelName-type>
  199. <NotificationChannelShowBadge>false</NotificationChannelShowBadge>
  200. <NotificationChannelShowBadge-type>java.lang.Boolean</NotificationChannelShowBadge-type>
  201. <PhoneOnly>false</PhoneOnly>
  202. <PhoneOnly-type>java.lang.Boolean</PhoneOnly-type>
  203. <PriorityVariable>&lt;null&gt;</PriorityVariable>
  204. <PriorityVariable-type>java.lang.String</PriorityVariable-type>
  205. <PublicVersion>&lt;null&gt;</PublicVersion>
  206. <PublicVersion-type>java.lang.String</PublicVersion-type>
  207. <ReplyAction>&lt;null&gt;</ReplyAction>
  208. <ReplyAction-type>java.lang.String</ReplyAction-type>
  209. <ReplyLabel>&lt;null&gt;</ReplyLabel>
  210. <ReplyLabel-type>java.lang.String</ReplyLabel-type>
  211. <SkipPictureCache>false</SkipPictureCache>
  212. <SkipPictureCache-type>java.lang.Boolean</SkipPictureCache-type>
  213. <SoundPath>&lt;null&gt;</SoundPath>
  214. <SoundPath-type>java.lang.String</SoundPath-type>
  215. <StatusBarIconString>/storage/emulated/0/Tasker/Humble/logo.png</StatusBarIconString>
  216. <StatusBarIconString-type>java.lang.String</StatusBarIconString-type>
  217. <StatusBarTextSize>16</StatusBarTextSize>
  218. <StatusBarTextSize-type>java.lang.String</StatusBarTextSize-type>
  219. <TextExpanded>%notificationtext</TextExpanded>
  220. <TextExpanded-type>java.lang.String</TextExpanded-type>
  221. <Time>&lt;null&gt;</Time>
  222. <Time-type>java.lang.String</Time-type>
  223. <TimeFormat>&lt;null&gt;</TimeFormat>
  224. <TimeFormat-type>java.lang.String</TimeFormat-type>
  225. <Timeout>&lt;null&gt;</Timeout>
  226. <Timeout-type>java.lang.String</Timeout-type>
  227. <TitleExpanded>&lt;null&gt;</TitleExpanded>
  228. <TitleExpanded-type>java.lang.String</TitleExpanded-type>
  229. <UpdateNotification>false</UpdateNotification>
  230. <UpdateNotification-type>java.lang.Boolean</UpdateNotification-type>
  231. <UseChronometer>false</UseChronometer>
  232. <UseChronometer-type>java.lang.Boolean</UseChronometer-type>
  233. <UseHTML>true</UseHTML>
  234. <UseHTML-type>java.lang.Boolean</UseHTML-type>
  235. <Visibility>&lt;null&gt;</Visibility>
  236. <Visibility-type>java.lang.String</Visibility-type>
  237. <com.twofortyfouram.locale.intent.extra.BLURB>Use HTML: true
  238. Title: %gamebundlename(%item)
  239. Text: %gamebundledesc(%item)
  240. Url: %gamebundleurl(%item)
  241. Status Bar Icon Manual: /storage/emulated/0/Tasker/Humble/logo.png
  242. Status Bar Text Size: 16
  243. Background Color: #FFB71C1C
  244. Dismiss on Touch: true
  245. Text Expanded: %notificationtext
  246. Share: true</com.twofortyfouram.locale.intent.extra.BLURB>
  247. <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
  248. <config_action_1_icon>&lt;null&gt;</config_action_1_icon>
  249. <config_action_1_icon-type>java.lang.String</config_action_1_icon-type>
  250. <config_action_2_icon>&lt;null&gt;</config_action_2_icon>
  251. <config_action_2_icon-type>java.lang.String</config_action_2_icon-type>
  252. <config_action_3_icon>&lt;null&gt;</config_action_3_icon>
  253. <config_action_3_icon-type>java.lang.String</config_action_3_icon-type>
  254. <config_action_4_icon>&lt;null&gt;</config_action_4_icon>
  255. <config_action_4_icon-type>java.lang.String</config_action_4_icon-type>
  256. <config_action_5_icon>&lt;null&gt;</config_action_5_icon>
  257. <config_action_5_icon-type>java.lang.String</config_action_5_icon-type>
  258. <config_notification_action>&lt;null&gt;</config_notification_action>
  259. <config_notification_action-type>java.lang.String</config_notification_action-type>
  260. <config_notification_action_button1>&lt;null&gt;</config_notification_action_button1>
  261. <config_notification_action_button1-type>java.lang.String</config_notification_action_button1-type>
  262. <config_notification_action_button2>&lt;null&gt;</config_notification_action_button2>
  263. <config_notification_action_button2-type>java.lang.String</config_notification_action_button2-type>
  264. <config_notification_action_button3>&lt;null&gt;</config_notification_action_button3>
  265. <config_notification_action_button3-type>java.lang.String</config_notification_action_button3-type>
  266. <config_notification_action_button4>&lt;null&gt;</config_notification_action_button4>
  267. <config_notification_action_button4-type>java.lang.String</config_notification_action_button4-type>
  268. <config_notification_action_button5>&lt;null&gt;</config_notification_action_button5>
  269. <config_notification_action_button5-type>java.lang.String</config_notification_action_button5-type>
  270. <config_notification_action_label1>&lt;null&gt;</config_notification_action_label1>
  271. <config_notification_action_label1-type>java.lang.String</config_notification_action_label1-type>
  272. <config_notification_action_label2>&lt;null&gt;</config_notification_action_label2>
  273. <config_notification_action_label2-type>java.lang.String</config_notification_action_label2-type>
  274. <config_notification_action_label3>&lt;null&gt;</config_notification_action_label3>
  275. <config_notification_action_label3-type>java.lang.String</config_notification_action_label3-type>
  276. <config_notification_action_on_dismiss>&lt;null&gt;</config_notification_action_on_dismiss>
  277. <config_notification_action_on_dismiss-type>java.lang.String</config_notification_action_on_dismiss-type>
  278. <config_notification_action_share>true</config_notification_action_share>
  279. <config_notification_action_share-type>java.lang.Boolean</config_notification_action_share-type>
  280. <config_notification_command>&lt;null&gt;</config_notification_command>
  281. <config_notification_command-type>java.lang.String</config_notification_command-type>
  282. <config_notification_content_info>&lt;null&gt;</config_notification_content_info>
  283. <config_notification_content_info-type>java.lang.String</config_notification_content_info-type>
  284. <config_notification_dismiss_on_touch>true</config_notification_dismiss_on_touch>
  285. <config_notification_dismiss_on_touch-type>java.lang.Boolean</config_notification_dismiss_on_touch-type>
  286. <config_notification_icon>&lt;null&gt;</config_notification_icon>
  287. <config_notification_icon-type>java.lang.String</config_notification_icon-type>
  288. <config_notification_indeterminate_progress>false</config_notification_indeterminate_progress>
  289. <config_notification_indeterminate_progress-type>java.lang.Boolean</config_notification_indeterminate_progress-type>
  290. <config_notification_led_color>&lt;null&gt;</config_notification_led_color>
  291. <config_notification_led_color-type>java.lang.String</config_notification_led_color-type>
  292. <config_notification_led_off>&lt;null&gt;</config_notification_led_off>
  293. <config_notification_led_off-type>java.lang.String</config_notification_led_off-type>
  294. <config_notification_led_on>&lt;null&gt;</config_notification_led_on>
  295. <config_notification_led_on-type>java.lang.String</config_notification_led_on-type>
  296. <config_notification_max_progress>&lt;null&gt;</config_notification_max_progress>
  297. <config_notification_max_progress-type>java.lang.String</config_notification_max_progress-type>
  298. <config_notification_number>&lt;null&gt;</config_notification_number>
  299. <config_notification_number-type>java.lang.String</config_notification_number-type>
  300. <config_notification_persistent>false</config_notification_persistent>
  301. <config_notification_persistent-type>java.lang.Boolean</config_notification_persistent-type>
  302. <config_notification_picture>&lt;null&gt;</config_notification_picture>
  303. <config_notification_picture-type>java.lang.String</config_notification_picture-type>
  304. <config_notification_priority>&lt;null&gt;</config_notification_priority>
  305. <config_notification_priority-type>java.lang.String</config_notification_priority-type>
  306. <config_notification_progress>&lt;null&gt;</config_notification_progress>
  307. <config_notification_progress-type>java.lang.String</config_notification_progress-type>
  308. <config_notification_subtext>&lt;null&gt;</config_notification_subtext>
  309. <config_notification_subtext-type>java.lang.String</config_notification_subtext-type>
  310. <config_notification_text>%gamebundledesc(%item)</config_notification_text>
  311. <config_notification_text-type>java.lang.String</config_notification_text-type>
  312. <config_notification_ticker>&lt;null&gt;</config_notification_ticker>
  313. <config_notification_ticker-type>java.lang.String</config_notification_ticker-type>
  314. <config_notification_title>%gamebundlename(%item)</config_notification_title>
  315. <config_notification_title-type>java.lang.String</config_notification_title-type>
  316. <config_notification_url>%gamebundleurl(%item)</config_notification_url>
  317. <config_notification_url-type>java.lang.String</config_notification_url-type>
  318. <config_notification_vibration>&lt;null&gt;</config_notification_vibration>
  319. <config_notification_vibration-type>java.lang.String</config_notification_vibration-type>
  320. <config_status_bar_icon>&lt;null&gt;</config_status_bar_icon>
  321. <config_status_bar_icon-type>java.lang.String</config_status_bar_icon-type>
  322. <net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
  323. Error Code
  324. Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
  325. Error Message
  326. Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
  327. <net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
  328. <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>StatusBarTextSize config_notification_title config_notification_text config_notification_url TextExpanded StatusBarIconString BackgroundColor plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
  329. <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
  330. <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
  331. <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
  332. <notificaitionid>&lt;null&gt;</notificaitionid>
  333. <notificaitionid-type>java.lang.String</notificaitionid-type>
  334. <notificaitionsound>&lt;null&gt;</notificaitionsound>
  335. <notificaitionsound-type>java.lang.String</notificaitionsound-type>
  336. <plugininstanceid>ee286d87-a55e-4c7a-8d5e-dedc05bc96cf</plugininstanceid>
  337. <plugininstanceid-type>java.lang.String</plugininstanceid-type>
  338. <plugintypeid>com.joaomgcd.autonotification.intent.IntentNotification</plugintypeid>
  339. <plugintypeid-type>java.lang.String</plugintypeid-type>
  340. </Vals>
  341. </Bundle>
  342. <Str sr="arg1" ve="3">com.joaomgcd.autonotification</Str>
  343. <Str sr="arg2" ve="3">com.joaomgcd.autonotification.activity.ActivityConfigNotify</Str>
  344. <Int sr="arg3" val="20"/>
  345. </Action>
  346. <Action sr="act16" ve="7">
  347. <code>38</code>
  348. </Action>
  349. <Action sr="act17" ve="7">
  350. <code>40</code>
  351. </Action>
  352. <Action sr="act18" ve="7">
  353. <code>410</code>
  354. <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
  355. <Str sr="arg1" ve="3">%gamebundlename()</Str>
  356. <Int sr="arg2" val="0"/>
  357. <Int sr="arg3" val="1"/>
  358. </Action>
  359. <Action sr="act2" ve="7">
  360. <code>342</code>
  361. <label>Check if Humble dir exists to store logo and bundle info</label>
  362. <Int sr="arg0" val="5"/>
  363. <Str sr="arg1" ve="3">Tasker/Humble</Str>
  364. <Str sr="arg2" ve="3">%direxists</Str>
  365. <Int sr="arg3" val="0"/>
  366. </Action>
  367. <Action sr="act3" ve="7">
  368. <code>409</code>
  369. <label>Create dir if doesn't exist</label>
  370. <Str sr="arg0" ve="3">Tasker/Humble</Str>
  371. <Int sr="arg1" val="0"/>
  372. <Int sr="arg2" val="0"/>
  373. <ConditionList sr="if">
  374. <Condition sr="c0" ve="3">
  375. <lhs>%direxists</lhs>
  376. <op>0</op>
  377. <rhs>false</rhs>
  378. </Condition>
  379. </ConditionList>
  380. </Action>
  381. <Action sr="act4" ve="7">
  382. <code>342</code>
  383. <label>Check if Humble Bundle logo for notification has been saved</label>
  384. <Int sr="arg0" val="5"/>
  385. <Str sr="arg1" ve="3">Tasker/Humble/logo.png</Str>
  386. <Str sr="arg2" ve="3">%logoexists</Str>
  387. <Int sr="arg3" val="0"/>
  388. </Action>
  389. <Action sr="act5" ve="7">
  390. <code>118</code>
  391. <label>Download Humble Bundle logo for notification icon</label>
  392. <Str sr="arg0" ve="3">http://i.imgur.com/7Tr9b7e.png</Str>
  393. <Str sr="arg1" ve="3"/>
  394. <Str sr="arg2" ve="3"/>
  395. <Str sr="arg3" ve="3"/>
  396. <Str sr="arg4" ve="3"/>
  397. <Int sr="arg5" val="10"/>
  398. <Str sr="arg6" ve="3">image/png</Str>
  399. <Str sr="arg7" ve="3">Tasker/Humble/logo.png</Str>
  400. <Int sr="arg8" val="0"/>
  401. <ConditionList sr="if">
  402. <Condition sr="c0" ve="3">
  403. <lhs>%logoexists</lhs>
  404. <op>0</op>
  405. <rhs>false</rhs>
  406. </Condition>
  407. </ConditionList>
  408. </Action>
  409. <Action sr="act6" ve="7">
  410. <code>342</code>
  411. <label>Check if a previous bundle has already been saved</label>
  412. <Int sr="arg0" val="5"/>
  413. <Str sr="arg1" ve="3">Tasker/Humble/bundles.txt</Str>
  414. <Str sr="arg2" ve="3">%fileexists</Str>
  415. <Int sr="arg3" val="0"/>
  416. </Action>
  417. <Action sr="act7" ve="7">
  418. <code>410</code>
  419. <label>Create file if task has never run before</label>
  420. <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
  421. <Str sr="arg1" ve="3">,</Str>
  422. <Int sr="arg2" val="0"/>
  423. <Int sr="arg3" val="1"/>
  424. <ConditionList sr="if">
  425. <Condition sr="c0" ve="3">
  426. <lhs>%fileexists</lhs>
  427. <op>0</op>
  428. <rhs>false</rhs>
  429. </Condition>
  430. </ConditionList>
  431. </Action>
  432. <Action sr="act8" ve="7">
  433. <code>417</code>
  434. <label>Read the data from the last bundles</label>
  435. <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
  436. <Str sr="arg1" ve="3">%lastbundlesraw</Str>
  437. </Action>
  438. <Action sr="act9" ve="7">
  439. <code>354</code>
  440. <label>Set last bundles as array</label>
  441. <Str sr="arg0" ve="3">%lastbundles</Str>
  442. <Str sr="arg1" ve="3">%lastbundlesraw</Str>
  443. <Str sr="arg2" ve="3">,</Str>
  444. </Action>
  445. </Task>
  446. </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement