mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-12 02:56:36 +00:00
* change discord id #278
* Update config & data
* Commit mockup image
* update mockup
* feat: filter quick update (#247)
* feat: filter generator in renderer
* feat: filter generator in main
* chore: some polishing
* feat: about section
* feat: i18n (-ish), only en text
* chore: cleanup
* chore: clarification regarding original filter
* chore: safety checks to ignore empty or not full identifier, or empty filters all together
* fix: linting fixes
* chore: locked version of winreg
* fix: dont hide divine orbs :O
* fix: set filter to hide would always hide it, even after turning it back
fix: updated config version
* fix: moved ignore low lvl area items down in filter order
* fix: drop winreg in favor of existing solution
* Change config file handling
* add in empty string check
* feat: changing filter generator into filter updater
* chore: simplify generator pages
* chore: removed code that is no longer needed
* chore: linter fixes
* fix: remove debug text
* feat: customizable folder path
* Add russian localization
* Merge commit 'ec35412d2694eb6a677415893776939b496b8aae'
* Revert "Merge commit 'ec35412d2694eb6a677415893776939b496b8aae'"
This reverts commit 8a3d84af91.
* Merge branch 'dev' into pr/tmakuch/247
* update config version
* Add note about case sensitivity
* run linter/formatter
* Features/germanLang (#300)
* add app_i18n.json
Co-authored-by: @professorspoon
* Update files
* official site
* Build files
* update description parser?
* [Not Recognized Modifier] - %phys #298
* add new unique stats, don't have roll values yet
* Update uniques again
* [PoE2] - Checking log book hard crashes #305
* run data script again?
* data files update for 0.1.1
* version bump
48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
#!/bin/bash
|
|
|
|
# Array of language codes and their corresponding base URLs
|
|
declare -A lang_urls=(
|
|
["en"]="https://www.pathofexile.com"
|
|
["ru"]="https://ru.pathofexile.com"
|
|
["ko"]="https://poe.game.daum.net"
|
|
["cmn-Hant"]="https://pathofexile.tw"
|
|
["ja"]="https://jp.pathofexile.com"
|
|
["de"]="https://de.pathofexile.com"
|
|
)
|
|
|
|
# URLs to fetch JSON from (relative paths)
|
|
urls=(
|
|
"/api/trade2/data/filters"
|
|
"/api/trade2/data/stats"
|
|
"/api/trade2/data/items"
|
|
"/api/trade2/data/static"
|
|
)
|
|
|
|
# Loop through each language
|
|
for lang in "${!lang_urls[@]}"; do
|
|
# Directory to save the JSON files for the current language
|
|
output_dir="./vendor/json-api/$lang"
|
|
|
|
# Create output directory if it doesn't exist
|
|
mkdir -p "$output_dir"
|
|
|
|
# Loop through each URL
|
|
for relative_url in "${urls[@]}"; do
|
|
# Construct the full URL
|
|
url="${lang_urls[$lang]}$relative_url"
|
|
|
|
# Extract the filename from the relative URL
|
|
filename=$(basename "$relative_url")
|
|
|
|
echo "Fetching JSON from: $url for language: $lang"
|
|
|
|
# Fetch the JSON data and save it to a file
|
|
curl -s "$url" -o "$output_dir/$filename.json"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Saved JSON to: $output_dir/$filename.json"
|
|
else
|
|
echo "Failed to fetch JSON from: $url"
|
|
fi
|
|
done
|
|
done |