Compare commits
2 Commits
d4c5da2a76
...
aa1bba84aa
Author | SHA1 | Date |
---|---|---|
|
aa1bba84aa | |
|
ca7c8f0afd |
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.142.0",
|
"version": "1.142.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.142.0",
|
"version": "1.142.1",
|
||||||
"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": {
|
||||||
|
|
|
@ -11,8 +11,12 @@ 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`, {
|
||||||
'User-Agent': 'contact at moonloop.adult@protonmail.com',
|
headers: {
|
||||||
}, { queueMethod: '1s' });
|
'User-Agent': 'contact at moonloop.adult@protonmail.com',
|
||||||
|
},
|
||||||
|
interval: 1000,
|
||||||
|
concurrency: 1,
|
||||||
|
});
|
||||||
|
|
||||||
const [item] = res.body;
|
const [item] = res.body;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue