Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TaskerData sr="" dvi="1" tv="5.1m">
- <Task sr="task7">
- <cdate>1495494448468</cdate>
- <edate>1516778581413</edate>
- <id>7</id>
- <nme>Check Humble Bundle Game Deals</nme>
- <pri>100</pri>
- <Action sr="act0" ve="7">
- <code>118</code>
- <label>Check Humble Bundle desktop website</label>
- <Str sr="arg0" ve="3">https://www.humblebundle.com</Str>
- <Str sr="arg1" ve="3"/>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3">Mozilla/5.0</Str>
- <Int sr="arg5" val="10"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Int sr="arg8" val="0"/>
- </Action>
- <Action sr="act1" ve="7">
- <code>129</code>
- <label>Get game bundle info (manual scrape/may break)</label>
- <Str sr="arg0" ve="3">var http = document.createElement('html'); http.innerHTML = global('HTTPD');
- var gamebundlecount = 0;
- var gamebundlename = new Array();
- var gamebundledesc = new Array();
- var gamebundleurl = new Array();
- var baseurl = "https://www.humblebundle.com";
- var humblejson = global('HTTPD').match(/productTiles = ([^]+?);\n/)[1];
- var humbleobj = JSON.parse(humblejson);
- for (var i = 0; i < humbleobj.length; i++)
- {
- if (humbleobj[i].tile_stamp === "games")
- {
- gamebundlecount++;
- gamebundlename[gamebundlecount - 1] = humbleobj[i].tile_name;
- gamebundledesc[gamebundlecount - 1] = humbleobj[i].marketing_blurb;
- gamebundleurl[gamebundlecount - 1] = baseurl + humbleobj[i].product_url;
- }
- }</Str>
- <Str sr="arg1" ve="3"/>
- <Int sr="arg2" val="1"/>
- <Int sr="arg3" val="45"/>
- </Action>
- <Action sr="act10" ve="7">
- <code>39</code>
- <label>Iterate through game bundles</label>
- <Str sr="arg0" ve="3">%item</Str>
- <Str sr="arg1" ve="3">1:%gamebundlecount</Str>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%gamebundlecount</lhs>
- <op>1</op>
- <rhs>0</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act11" ve="7">
- <code>37</code>
- <label>Bundle not in last bundles</label>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%lastbundles()</lhs>
- <op>5</op>
- <rhs>%gamebundlename(%item)</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act12" ve="7">
- <code>30</code>
- <label>Don't spam the server</label>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1" val="5"/>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act13" ve="7">
- <code>118</code>
- <label>Get indiv bundle source</label>
- <Str sr="arg0" ve="3">%gamebundleurl(%item)</Str>
- <Str sr="arg1" ve="3"/>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3">Mozilla/5.0</Str>
- <Int sr="arg5" val="10"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Int sr="arg8" val="0"/>
- </Action>
- <Action sr="act14" ve="7">
- <code>129</code>
- <label>Get indiv bundle info</label>
- <Str sr="arg0" ve="3">var http = document.createElement('html'); http.innerHTML = global('HTTPD');
- var tiers = http.getElementsByClassName("dd-image-box-list");
- var prices = http.getElementsByClassName("hr-payment-tier-heading-text");
- var gamesarray = new Array();
- var notificationtext = "";
- for (var i = 0; i < tiers.length; i++)
- {
- var games = tiers[i].getElementsByClassName("dd-image-box-caption");
- var gameslist = "<b>" + prices[i].innerText + ": </b>";
- for (var j = 0; j < games.length; j++)
- {
- var gamename = games[j].innerText;
- gamename = gamename.trim();
- gameslist += gamename;
- if (j < (games.length - 1))
- {
- gameslist += ", ";
- }
- }
- if (i < (tiers.length - 1))
- {
- gameslist += "<br>";
- }
- gamesarray[i] = gameslist;
- }
- for (var i = 0; i < gamesarray.length; i++)
- {
- notificationtext += gamesarray[i];
- }</Str>
- <Str sr="arg1" ve="3"/>
- <Int sr="arg2" val="1"/>
- <Int sr="arg3" val="45"/>
- </Action>
- <Action sr="act15" ve="7">
- <code>166160670</code>
- <label>Notify user about the new bundle</label>
- <Bundle sr="arg0">
- <Vals sr="val">
- <ActionIconString1><null></ActionIconString1>
- <ActionIconString1-type>java.lang.String</ActionIconString1-type>
- <ActionIconString2><null></ActionIconString2>
- <ActionIconString2-type>java.lang.String</ActionIconString2-type>
- <ActionIconString3><null></ActionIconString3>
- <ActionIconString3-type>java.lang.String</ActionIconString3-type>
- <ActionIconString4><null></ActionIconString4>
- <ActionIconString4-type>java.lang.String</ActionIconString4-type>
- <ActionIconString5><null></ActionIconString5>
- <ActionIconString5-type>java.lang.String</ActionIconString5-type>
- <AppendTexts>false</AppendTexts>
- <AppendTexts-type>java.lang.Boolean</AppendTexts-type>
- <BackgroundColor>#FFB71C1C</BackgroundColor>
- <BackgroundColor-type>java.lang.String</BackgroundColor-type>
- <BadgeType><null></BadgeType>
- <BadgeType-type>java.lang.String</BadgeType-type>
- <Button1UnlockScreen>false</Button1UnlockScreen>
- <Button1UnlockScreen-type>java.lang.Boolean</Button1UnlockScreen-type>
- <Button2UnlockScreen>false</Button2UnlockScreen>
- <Button2UnlockScreen-type>java.lang.Boolean</Button2UnlockScreen-type>
- <Button3UnlockScreen>false</Button3UnlockScreen>
- <Button3UnlockScreen-type>java.lang.Boolean</Button3UnlockScreen-type>
- <Button4UnlockScreen>false</Button4UnlockScreen>
- <Button4UnlockScreen-type>java.lang.Boolean</Button4UnlockScreen-type>
- <Button5UnlockScreen>false</Button5UnlockScreen>
- <Button5UnlockScreen-type>java.lang.Boolean</Button5UnlockScreen-type>
- <ChronometerCountDown>false</ChronometerCountDown>
- <ChronometerCountDown-type>java.lang.Boolean</ChronometerCountDown-type>
- <Colorize>false</Colorize>
- <Colorize-type>java.lang.Boolean</Colorize-type>
- <GroupAlertBehaviour><null></GroupAlertBehaviour>
- <GroupAlertBehaviour-type>java.lang.String</GroupAlertBehaviour-type>
- <GroupKey><null></GroupKey>
- <GroupKey-type>java.lang.String</GroupKey-type>
- <IconExpanded><null></IconExpanded>
- <IconExpanded-type>java.lang.String</IconExpanded-type>
- <IsGroupSummary>false</IsGroupSummary>
- <IsGroupSummary-type>java.lang.Boolean</IsGroupSummary-type>
- <MediaLayout>false</MediaLayout>
- <MediaLayout-type>java.lang.Boolean</MediaLayout-type>
- <NotificationChannelBypassDnd>false</NotificationChannelBypassDnd>
- <NotificationChannelBypassDnd-type>java.lang.Boolean</NotificationChannelBypassDnd-type>
- <NotificationChannelDescription><null></NotificationChannelDescription>
- <NotificationChannelDescription-type>java.lang.String</NotificationChannelDescription-type>
- <NotificationChannelId><null></NotificationChannelId>
- <NotificationChannelId-type>java.lang.String</NotificationChannelId-type>
- <NotificationChannelImportance><null></NotificationChannelImportance>
- <NotificationChannelImportance-type>java.lang.String</NotificationChannelImportance-type>
- <NotificationChannelName><null></NotificationChannelName>
- <NotificationChannelName-type>java.lang.String</NotificationChannelName-type>
- <NotificationChannelShowBadge>false</NotificationChannelShowBadge>
- <NotificationChannelShowBadge-type>java.lang.Boolean</NotificationChannelShowBadge-type>
- <PhoneOnly>false</PhoneOnly>
- <PhoneOnly-type>java.lang.Boolean</PhoneOnly-type>
- <PriorityVariable><null></PriorityVariable>
- <PriorityVariable-type>java.lang.String</PriorityVariable-type>
- <PublicVersion><null></PublicVersion>
- <PublicVersion-type>java.lang.String</PublicVersion-type>
- <ReplyAction><null></ReplyAction>
- <ReplyAction-type>java.lang.String</ReplyAction-type>
- <ReplyLabel><null></ReplyLabel>
- <ReplyLabel-type>java.lang.String</ReplyLabel-type>
- <SkipPictureCache>false</SkipPictureCache>
- <SkipPictureCache-type>java.lang.Boolean</SkipPictureCache-type>
- <SoundPath><null></SoundPath>
- <SoundPath-type>java.lang.String</SoundPath-type>
- <StatusBarIconString>/storage/emulated/0/Tasker/Humble/logo.png</StatusBarIconString>
- <StatusBarIconString-type>java.lang.String</StatusBarIconString-type>
- <StatusBarTextSize>16</StatusBarTextSize>
- <StatusBarTextSize-type>java.lang.String</StatusBarTextSize-type>
- <TextExpanded>%notificationtext</TextExpanded>
- <TextExpanded-type>java.lang.String</TextExpanded-type>
- <Time><null></Time>
- <Time-type>java.lang.String</Time-type>
- <TimeFormat><null></TimeFormat>
- <TimeFormat-type>java.lang.String</TimeFormat-type>
- <Timeout><null></Timeout>
- <Timeout-type>java.lang.String</Timeout-type>
- <TitleExpanded><null></TitleExpanded>
- <TitleExpanded-type>java.lang.String</TitleExpanded-type>
- <UpdateNotification>false</UpdateNotification>
- <UpdateNotification-type>java.lang.Boolean</UpdateNotification-type>
- <UseChronometer>false</UseChronometer>
- <UseChronometer-type>java.lang.Boolean</UseChronometer-type>
- <UseHTML>true</UseHTML>
- <UseHTML-type>java.lang.Boolean</UseHTML-type>
- <Visibility><null></Visibility>
- <Visibility-type>java.lang.String</Visibility-type>
- <com.twofortyfouram.locale.intent.extra.BLURB>Use HTML: true
- Title: %gamebundlename(%item)
- Text: %gamebundledesc(%item)
- Url: %gamebundleurl(%item)
- Status Bar Icon Manual: /storage/emulated/0/Tasker/Humble/logo.png
- Status Bar Text Size: 16
- Background Color: #FFB71C1C
- Dismiss on Touch: true
- Text Expanded: %notificationtext
- Share: true</com.twofortyfouram.locale.intent.extra.BLURB>
- <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
- <config_action_1_icon><null></config_action_1_icon>
- <config_action_1_icon-type>java.lang.String</config_action_1_icon-type>
- <config_action_2_icon><null></config_action_2_icon>
- <config_action_2_icon-type>java.lang.String</config_action_2_icon-type>
- <config_action_3_icon><null></config_action_3_icon>
- <config_action_3_icon-type>java.lang.String</config_action_3_icon-type>
- <config_action_4_icon><null></config_action_4_icon>
- <config_action_4_icon-type>java.lang.String</config_action_4_icon-type>
- <config_action_5_icon><null></config_action_5_icon>
- <config_action_5_icon-type>java.lang.String</config_action_5_icon-type>
- <config_notification_action><null></config_notification_action>
- <config_notification_action-type>java.lang.String</config_notification_action-type>
- <config_notification_action_button1><null></config_notification_action_button1>
- <config_notification_action_button1-type>java.lang.String</config_notification_action_button1-type>
- <config_notification_action_button2><null></config_notification_action_button2>
- <config_notification_action_button2-type>java.lang.String</config_notification_action_button2-type>
- <config_notification_action_button3><null></config_notification_action_button3>
- <config_notification_action_button3-type>java.lang.String</config_notification_action_button3-type>
- <config_notification_action_button4><null></config_notification_action_button4>
- <config_notification_action_button4-type>java.lang.String</config_notification_action_button4-type>
- <config_notification_action_button5><null></config_notification_action_button5>
- <config_notification_action_button5-type>java.lang.String</config_notification_action_button5-type>
- <config_notification_action_label1><null></config_notification_action_label1>
- <config_notification_action_label1-type>java.lang.String</config_notification_action_label1-type>
- <config_notification_action_label2><null></config_notification_action_label2>
- <config_notification_action_label2-type>java.lang.String</config_notification_action_label2-type>
- <config_notification_action_label3><null></config_notification_action_label3>
- <config_notification_action_label3-type>java.lang.String</config_notification_action_label3-type>
- <config_notification_action_on_dismiss><null></config_notification_action_on_dismiss>
- <config_notification_action_on_dismiss-type>java.lang.String</config_notification_action_on_dismiss-type>
- <config_notification_action_share>true</config_notification_action_share>
- <config_notification_action_share-type>java.lang.Boolean</config_notification_action_share-type>
- <config_notification_command><null></config_notification_command>
- <config_notification_command-type>java.lang.String</config_notification_command-type>
- <config_notification_content_info><null></config_notification_content_info>
- <config_notification_content_info-type>java.lang.String</config_notification_content_info-type>
- <config_notification_dismiss_on_touch>true</config_notification_dismiss_on_touch>
- <config_notification_dismiss_on_touch-type>java.lang.Boolean</config_notification_dismiss_on_touch-type>
- <config_notification_icon><null></config_notification_icon>
- <config_notification_icon-type>java.lang.String</config_notification_icon-type>
- <config_notification_indeterminate_progress>false</config_notification_indeterminate_progress>
- <config_notification_indeterminate_progress-type>java.lang.Boolean</config_notification_indeterminate_progress-type>
- <config_notification_led_color><null></config_notification_led_color>
- <config_notification_led_color-type>java.lang.String</config_notification_led_color-type>
- <config_notification_led_off><null></config_notification_led_off>
- <config_notification_led_off-type>java.lang.String</config_notification_led_off-type>
- <config_notification_led_on><null></config_notification_led_on>
- <config_notification_led_on-type>java.lang.String</config_notification_led_on-type>
- <config_notification_max_progress><null></config_notification_max_progress>
- <config_notification_max_progress-type>java.lang.String</config_notification_max_progress-type>
- <config_notification_number><null></config_notification_number>
- <config_notification_number-type>java.lang.String</config_notification_number-type>
- <config_notification_persistent>false</config_notification_persistent>
- <config_notification_persistent-type>java.lang.Boolean</config_notification_persistent-type>
- <config_notification_picture><null></config_notification_picture>
- <config_notification_picture-type>java.lang.String</config_notification_picture-type>
- <config_notification_priority><null></config_notification_priority>
- <config_notification_priority-type>java.lang.String</config_notification_priority-type>
- <config_notification_progress><null></config_notification_progress>
- <config_notification_progress-type>java.lang.String</config_notification_progress-type>
- <config_notification_subtext><null></config_notification_subtext>
- <config_notification_subtext-type>java.lang.String</config_notification_subtext-type>
- <config_notification_text>%gamebundledesc(%item)</config_notification_text>
- <config_notification_text-type>java.lang.String</config_notification_text-type>
- <config_notification_ticker><null></config_notification_ticker>
- <config_notification_ticker-type>java.lang.String</config_notification_ticker-type>
- <config_notification_title>%gamebundlename(%item)</config_notification_title>
- <config_notification_title-type>java.lang.String</config_notification_title-type>
- <config_notification_url>%gamebundleurl(%item)</config_notification_url>
- <config_notification_url-type>java.lang.String</config_notification_url-type>
- <config_notification_vibration><null></config_notification_vibration>
- <config_notification_vibration-type>java.lang.String</config_notification_vibration-type>
- <config_status_bar_icon><null></config_status_bar_icon>
- <config_status_bar_icon-type>java.lang.String</config_status_bar_icon-type>
- <net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%err
- Error Code
- Only available if you select &lt;b&gt;Continue Task After Error&lt;/b&gt; and the action ends in error</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%errmsg
- Error Message
- Only available if you select &lt;b&gt;Continue Task After Error&lt;/b&gt; and the action ends in error</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
- <net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
- <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>
- <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
- <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
- <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
- <notificaitionid><null></notificaitionid>
- <notificaitionid-type>java.lang.String</notificaitionid-type>
- <notificaitionsound><null></notificaitionsound>
- <notificaitionsound-type>java.lang.String</notificaitionsound-type>
- <plugininstanceid>ee286d87-a55e-4c7a-8d5e-dedc05bc96cf</plugininstanceid>
- <plugininstanceid-type>java.lang.String</plugininstanceid-type>
- <plugintypeid>com.joaomgcd.autonotification.intent.IntentNotification</plugintypeid>
- <plugintypeid-type>java.lang.String</plugintypeid-type>
- </Vals>
- </Bundle>
- <Str sr="arg1" ve="3">com.joaomgcd.autonotification</Str>
- <Str sr="arg2" ve="3">com.joaomgcd.autonotification.activity.ActivityConfigNotify</Str>
- <Int sr="arg3" val="20"/>
- </Action>
- <Action sr="act16" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act17" ve="7">
- <code>40</code>
- </Action>
- <Action sr="act18" ve="7">
- <code>410</code>
- <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
- <Str sr="arg1" ve="3">%gamebundlename()</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="1"/>
- </Action>
- <Action sr="act2" ve="7">
- <code>342</code>
- <label>Check if Humble dir exists to store logo and bundle info</label>
- <Int sr="arg0" val="5"/>
- <Str sr="arg1" ve="3">Tasker/Humble</Str>
- <Str sr="arg2" ve="3">%direxists</Str>
- <Int sr="arg3" val="0"/>
- </Action>
- <Action sr="act3" ve="7">
- <code>409</code>
- <label>Create dir if doesn't exist</label>
- <Str sr="arg0" ve="3">Tasker/Humble</Str>
- <Int sr="arg1" val="0"/>
- <Int sr="arg2" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%direxists</lhs>
- <op>0</op>
- <rhs>false</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act4" ve="7">
- <code>342</code>
- <label>Check if Humble Bundle logo for notification has been saved</label>
- <Int sr="arg0" val="5"/>
- <Str sr="arg1" ve="3">Tasker/Humble/logo.png</Str>
- <Str sr="arg2" ve="3">%logoexists</Str>
- <Int sr="arg3" val="0"/>
- </Action>
- <Action sr="act5" ve="7">
- <code>118</code>
- <label>Download Humble Bundle logo for notification icon</label>
- <Str sr="arg0" ve="3">http://i.imgur.com/7Tr9b7e.png</Str>
- <Str sr="arg1" ve="3"/>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Int sr="arg5" val="10"/>
- <Str sr="arg6" ve="3">image/png</Str>
- <Str sr="arg7" ve="3">Tasker/Humble/logo.png</Str>
- <Int sr="arg8" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%logoexists</lhs>
- <op>0</op>
- <rhs>false</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act6" ve="7">
- <code>342</code>
- <label>Check if a previous bundle has already been saved</label>
- <Int sr="arg0" val="5"/>
- <Str sr="arg1" ve="3">Tasker/Humble/bundles.txt</Str>
- <Str sr="arg2" ve="3">%fileexists</Str>
- <Int sr="arg3" val="0"/>
- </Action>
- <Action sr="act7" ve="7">
- <code>410</code>
- <label>Create file if task has never run before</label>
- <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
- <Str sr="arg1" ve="3">,</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="1"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%fileexists</lhs>
- <op>0</op>
- <rhs>false</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act8" ve="7">
- <code>417</code>
- <label>Read the data from the last bundles</label>
- <Str sr="arg0" ve="3">Tasker/Humble/bundles.txt</Str>
- <Str sr="arg1" ve="3">%lastbundlesraw</Str>
- </Action>
- <Action sr="act9" ve="7">
- <code>354</code>
- <label>Set last bundles as array</label>
- <Str sr="arg0" ve="3">%lastbundles</Str>
- <Str sr="arg1" ve="3">%lastbundlesraw</Str>
- <Str sr="arg2" ve="3">,</Str>
- </Action>
- </Task>
- </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement