Compare commits

..

No commits in common. "aa1bba84aabc290391c65422afdcd49dc5ea0a37" and "d4c5da2a761de1a6e9fff3ccd689f6d1e1cfab78" have entirely different histories.

3 changed files with 4 additions and 8 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.142.1", "version": "1.142.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.142.1", "version": "1.142.0",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -11,12 +11,8 @@ async function resolvePlace(query) {
try { try {
// https://operations.osmfoundation.org/policies/nominatim/ // https://operations.osmfoundation.org/policies/nominatim/
const res = await http.get(`https://nominatim.openstreetmap.org/search/${encodeURI(query)}?format=json&accept-language=en&addressdetails=1`, { const res = await http.get(`https://nominatim.openstreetmap.org/search/${encodeURI(query)}?format=json&accept-language=en&addressdetails=1`, {
headers: {
'User-Agent': 'contact at moonloop.adult@protonmail.com', 'User-Agent': 'contact at moonloop.adult@protonmail.com',
}, }, { queueMethod: '1s' });
interval: 1000,
concurrency: 1,
});
const [item] = res.body; const [item] = res.body;