Advertisement
Guest User

Untitled

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