Skip to content

Commit a66ff0d

Browse files
committed
Fix pubdate changing every time
1 parent 8b2606f commit a66ff0d

2 files changed

Lines changed: 37 additions & 36 deletions

File tree

docs/index.xml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,218 +7,218 @@
77
<item>
88
<title>Android Device Policy 134.46.5 (10393580) - Jun 16, 2025</title>
99
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/134.46.5%20(10393580)</link>
10-
<description>Version Android Device Policy 134.46.5 (10393580) released on Jun 16, 2025</description>
11-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
10+
<description>Version 134.46.5 (10393580) released on Jun 16, 2025</description>
11+
<pubDate>Wed, 18 Jun 2025 22:33:54 GMT</pubDate>
1212
<guid>134.46.5 (10393580)</guid>
1313
</item>
1414
<item>
1515
<title>Android Device Policy 134.46.3 (10393540) - Jun 11, 2025</title>
1616
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/134.46.3%20(10393540)</link>
1717
<description>Version Android Device Policy 134.46.3 (10393540) released on Jun 11, 2025</description>
18-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
18+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
1919
<guid>134.46.3 (10393540)</guid>
2020
</item>
2121
<item>
2222
<title>Android Device Policy 133.38.3 (10380100) - May 29, 2025</title>
2323
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/133.38.3%20(10380100)</link>
2424
<description>Version Android Device Policy 133.38.3 (10380100) released on May 29, 2025</description>
25-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
25+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
2626
<guid>133.38.3 (10380100)</guid>
2727
</item>
2828
<item>
2929
<title>Android Device Policy 133.38.2 (10380080) - May 27, 2025</title>
3030
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/133.38.2%20(10380080)</link>
3131
<description>Version Android Device Policy 133.38.2 (10380080) released on May 27, 2025</description>
32-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
32+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
3333
<guid>133.38.2 (10380080)</guid>
3434
</item>
3535
<item>
3636
<title>Android Device Policy 132.22.7 (10369160) - May 29, 2025</title>
3737
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/132.22.7%20(10369160)</link>
3838
<description>Version Android Device Policy 132.22.7 (10369160) released on May 29, 2025</description>
39-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
39+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
4040
<guid>132.22.7 (10369160)</guid>
4141
</item>
4242
<item>
4343
<title>Android Device Policy 132.22.6 (10369140) - May 29, 2025</title>
4444
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/132.22.6%20(10369140)</link>
4545
<description>Version Android Device Policy 132.22.6 (10369140) released on May 29, 2025</description>
46-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
46+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
4747
<guid>132.22.6 (10369140)</guid>
4848
</item>
4949
<item>
5050
<title>Android Device Policy 132.22.5 (10369120) - May 15, 2025</title>
5151
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/132.22.5%20(10369120)</link>
5252
<description>Version Android Device Policy 132.22.5 (10369120) released on May 15, 2025</description>
53-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
53+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
5454
<guid>132.22.5 (10369120)</guid>
5555
</item>
5656
<item>
5757
<title>Android Device Policy 132.22.4 (10369100) - May 13, 2025</title>
5858
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/132.22.4%20(10369100)</link>
5959
<description>Version Android Device Policy 132.22.4 (10369100) released on May 13, 2025</description>
60-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
60+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
6161
<guid>132.22.4 (10369100)</guid>
6262
</item>
6363
<item>
6464
<title>Android Device Policy 131.41.6 (10358400) - May 7, 2025</title>
6565
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/131.41.6%20(10358400)</link>
6666
<description>Version Android Device Policy 131.41.6 (10358400) released on May 7, 2025</description>
67-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
67+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
6868
<guid>131.41.6 (10358400)</guid>
6969
</item>
7070
<item>
7171
<title>Android Device Policy 131.41.5 (10358380) - May 6, 2025</title>
7272
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/131.41.5%20(10358380)</link>
7373
<description>Version Android Device Policy 131.41.5 (10358380) released on May 6, 2025</description>
74-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
74+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
7575
<guid>131.41.5 (10358380)</guid>
7676
</item>
7777
<item>
7878
<title>Android Device Policy 131.41.4 (10358360) - Apr 30, 2025</title>
7979
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/131.41.4%20(10358360)</link>
8080
<description>Version Android Device Policy 131.41.4 (10358360) released on Apr 30, 2025</description>
81-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
81+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
8282
<guid>131.41.4 (10358360)</guid>
8383
</item>
8484
<item>
8585
<title>Android Device Policy 131.41.1 (10358300) - Apr 29, 2025</title>
8686
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/131.41.1%20(10358300)</link>
8787
<description>Version Android Device Policy 131.41.1 (10358300) released on Apr 29, 2025</description>
88-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
88+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
8989
<guid>131.41.1 (10358300)</guid>
9090
</item>
9191
<item>
9292
<title>Android Device Policy 130.40.6 (10346380) - Apr 14, 2025</title>
9393
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/130.40.6%20(10346380)</link>
9494
<description>Version Android Device Policy 130.40.6 (10346380) released on Apr 14, 2025</description>
95-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
95+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
9696
<guid>130.40.6 (10346380)</guid>
9797
</item>
9898
<item>
9999
<title>Android Device Policy 129.32.9 (10334500) - Apr 8, 2025</title>
100100
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/129.32.9%20(10334500)</link>
101101
<description>Version Android Device Policy 129.32.9 (10334500) released on Apr 8, 2025</description>
102-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
102+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
103103
<guid>129.32.9 (10334500)</guid>
104104
</item>
105105
<item>
106106
<title>Android Device Policy 129.32.7 (10334460) - Apr 3, 2025</title>
107107
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/129.32.7%20(10334460)</link>
108108
<description>Version Android Device Policy 129.32.7 (10334460) released on Apr 3, 2025</description>
109-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
109+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
110110
<guid>129.32.7 (10334460)</guid>
111111
</item>
112112
<item>
113113
<title>Android Device Policy 129.32.6 (10334440) - Apr 1, 2025</title>
114114
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/129.32.6%20(10334440)</link>
115115
<description>Version Android Device Policy 129.32.6 (10334440) released on Apr 1, 2025</description>
116-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
116+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
117117
<guid>129.32.6 (10334440)</guid>
118118
</item>
119119
<item>
120120
<title>Android Device Policy 128.32.3 (10323580) - Mar 18, 2025</title>
121121
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/128.32.3%20(10323580)</link>
122122
<description>Version Android Device Policy 128.32.3 (10323580) released on Mar 18, 2025</description>
123-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
123+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
124124
<guid>128.32.3 (10323580)</guid>
125125
</item>
126126
<item>
127127
<title>Android Device Policy 127.35.8 (10316220) - Mar 13, 2025</title>
128128
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/127.35.8%20(10316220)</link>
129129
<description>Version Android Device Policy 127.35.8 (10316220) released on Mar 13, 2025</description>
130-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
130+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
131131
<guid>127.35.8 (10316220)</guid>
132132
</item>
133133
<item>
134134
<title>Android Device Policy 127.35.6 (10316180) - Mar 11, 2025</title>
135135
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/127.35.6%20(10316180)</link>
136136
<description>Version Android Device Policy 127.35.6 (10316180) released on Mar 11, 2025</description>
137-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
137+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
138138
<guid>127.35.6 (10316180)</guid>
139139
</item>
140140
<item>
141141
<title>Android Device Policy 127.35.4 (10316140) - Mar 10, 2025</title>
142142
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/127.35.4%20(10316140)</link>
143143
<description>Version Android Device Policy 127.35.4 (10316140) released on Mar 10, 2025</description>
144-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
144+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
145145
<guid>127.35.4 (10316140)</guid>
146146
</item>
147147
<item>
148148
<title>Android Device Policy 126.17.6 (10306500) - Feb 20, 2025</title>
149149
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/126.17.6%20(10306500)</link>
150150
<description>Version Android Device Policy 126.17.6 (10306500) released on Feb 20, 2025</description>
151-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
151+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
152152
<guid>126.17.6 (10306500)</guid>
153153
</item>
154154
<item>
155155
<title>Android Device Policy 126.17.5 (10306480) - Feb 14, 2025</title>
156156
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/126.17.5%20(10306480)</link>
157157
<description>Version Android Device Policy 126.17.5 (10306480) released on Feb 14, 2025</description>
158-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
158+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
159159
<guid>126.17.5 (10306480)</guid>
160160
</item>
161161
<item>
162162
<title>Android Device Policy 126.17.3 (10306440) - Feb 13, 2025</title>
163163
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/126.17.3%20(10306440)</link>
164164
<description>Version Android Device Policy 126.17.3 (10306440) released on Feb 13, 2025</description>
165-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
165+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
166166
<guid>126.17.3 (10306440)</guid>
167167
</item>
168168
<item>
169169
<title>Android Device Policy 125.33.2 (10294460) - Feb 6, 2025</title>
170170
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/125.33.2%20(10294460)</link>
171171
<description>Version Android Device Policy 125.33.2 (10294460) released on Feb 6, 2025</description>
172-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
172+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
173173
<guid>125.33.2 (10294460)</guid>
174174
</item>
175175
<item>
176176
<title>Android Device Policy 125.33.1 (10294440) - Feb 4, 2025</title>
177177
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/125.33.1%20(10294440)</link>
178178
<description>Version Android Device Policy 125.33.1 (10294440) released on Feb 4, 2025</description>
179-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
179+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
180180
<guid>125.33.1 (10294440)</guid>
181181
</item>
182182
<item>
183183
<title>Android Device Policy 124.90.2 (10284480) - Jan 23, 2025</title>
184184
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/124.90.2%20(10284480)</link>
185185
<description>Version Android Device Policy 124.90.2 (10284480) released on Jan 23, 2025</description>
186-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
186+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
187187
<guid>124.90.2 (10284480)</guid>
188188
</item>
189189
<item>
190190
<title>Android Device Policy 124.90.1 (10284460) - Jan 22, 2025</title>
191191
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/124.90.1%20(10284460)</link>
192192
<description>Version Android Device Policy 124.90.1 (10284460) released on Jan 22, 2025</description>
193-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
193+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
194194
<guid>124.90.1 (10284460)</guid>
195195
</item>
196196
<item>
197197
<title>Android Device Policy 123.33.2 (10256140) - Jan 7, 2025</title>
198198
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/123.33.2%20(10256140)</link>
199199
<description>Version Android Device Policy 123.33.2 (10256140) released on Jan 7, 2025</description>
200-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
200+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
201201
<guid>123.33.2 (10256140)</guid>
202202
</item>
203203
<item>
204204
<title>Android Device Policy 122.56.2 (10244720) - Dec 3, 2024</title>
205205
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/122.56.2%20(10244720)</link>
206206
<description>Version Android Device Policy 122.56.2 (10244720) released on Dec 3, 2024</description>
207-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
207+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
208208
<guid>122.56.2 (10244720)</guid>
209209
</item>
210210
<item>
211211
<title>Android Device Policy 121.32.1 (10226840) - Nov 13, 2024</title>
212212
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/121.32.1%20(10226840)</link>
213213
<description>Version Android Device Policy 121.32.1 (10226840) released on Nov 13, 2024</description>
214-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
214+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
215215
<guid>121.32.1 (10226840)</guid>
216216
</item>
217217
<item>
218218
<title>Android Device Policy 118.33.2 (10195580) - Oct 3, 2024</title>
219219
<link>https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/download/118.33.2%20(10195580)</link>
220220
<description>Version Android Device Policy 118.33.2 (10195580) released on Oct 3, 2024</description>
221-
<pubDate>Wed, 18 Jun 2025 22:22:25 GMT</pubDate>
221+
<pubDate>Wed, 18 Jun 2025 21:48:45 GMT</pubDate>
222222
<guid>118.33.2 (10195580)</guid>
223223
</item>
224224
</channel>

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ puppeteer.use(puppeteerStealth);
4949
const versionDiv = link.querySelector('.ver-item-n');
5050
const dateSpan = link.querySelector('.update-on');
5151

52-
const version = versionDiv ? versionDiv.textContent.trim().replace(/\s+/g, ' ') : null;
52+
const version = versionDiv ? versionDiv.textContent.trim().replace(/^Android Device Policy\s*/i, '').replace(/\s+/g, ' ') : null;
5353
const date = dateSpan ? dateSpan.textContent.trim() : null;
5454
const href = link.getAttribute('href');
5555

@@ -107,16 +107,17 @@ puppeteer.use(puppeteerStealth);
107107

108108
// Use a Set for fast version-date matching
109109
const existingKeys = new Set(
110-
existingItems.map(i => `${i.title}`)
110+
existingItems.map(i => `${i.guid}`)
111111
);
112112

113113
// Add only new entries
114114
const newItems = versions
115+
.filter(v => !existingKeys.has(v.version))
115116
.map(v => {
116117
const pubDate = new Date().toUTCString();
117-
const guid = v.version.slice("Android Device Policy ".length);
118+
const guid = v.version;
118119
return {
119-
title: `${v.version} - ${v.date}`,
120+
title: `Android Device Policy ${v.version} - ${v.date}`,
120121
link: v.link,
121122
description: `Version ${v.version} released on ${v.date}`,
122123
pubDate,

0 commit comments

Comments
 (0)