Advertisement
Guest User

Untitled

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