1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

fix: sanitize UGC IDs (#155)

This commit is contained in:
aclist 2024-10-06 03:19:32 +09:00
parent 3e1170ffd8
commit d10cd212b4
3 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,9 @@
# Changelog # Changelog
## [5.4.2-beta.1] 2024-10-05
### Fixed
- Sanitize third-party API IDs to remove UGC collisions
## [5.4.1-beta.2] 2024-09-12 ## [5.4.1-beta.2] 2024-09-12
### Fixed ### Fixed
- Use fallback logic for modlist queries when user traverses networks - Use fallback logic for modlist queries when user traverses networks

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.4.1-beta.3 version=5.4.2-beta.1
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -549,7 +549,7 @@ fetch_icons(){
"128" "128"
"256" "256"
) )
url="$testing_url/images/icons" url="$stable_url/images/icons"
for i in "${res[@]}"; do for i in "${res[@]}"; do
size="${i}x${i}" size="${i}x${i}"
dir="$HOME/.local/share/icons/hicolor/$size/apps" dir="$HOME/.local/share/icons/hicolor/$size/apps"
@ -569,7 +569,7 @@ fetch_helpers_by_sum(){
["ui.py"]="9cac4d3b87ef292e7d30b25ca86cc438" ["ui.py"]="9cac4d3b87ef292e7d30b25ca86cc438"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="4a06a823b6240c518687d2a8ec20e914" ["funcs"]="7221bda853145942c4c728cbc76ac633"
["lan"]="c62e84ddd1457b71a85ad21da662b9af" ["lan"]="c62e84ddd1457b71a85ad21da662b9af"
) )
local author="aclist" local author="aclist"

View file

@ -1019,7 +1019,11 @@ query_defunct(){
-H "Content-Type:application/x-www-form-urlencoded"\ -H "Content-Type:application/x-www-form-urlencoded"\
-d "$(payload)" 'https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/?format=json' -d "$(payload)" 'https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/?format=json'
} }
local result=$(post | jq -r '.[].publishedfiledetails[] | select(.result==1) | "\(.file_size) \(.publishedfileid)"') local result=$(post | jq -r '
.[].publishedfiledetails[]
| select(.result==1)
| select(.filename|contains("screenshot")|not)
| "\(.file_size) \(.publishedfileid)"')
<<< "$result" awk '{print $2}' <<< "$result" awk '{print $2}'
} }
encode(){ encode(){
@ -1177,6 +1181,7 @@ focus_beta_client(){
$steam_cmd steam://open/console 2>/dev/null 1>&2 $steam_cmd steam://open/console 2>/dev/null 1>&2
} }
auto_mod_install(){ auto_mod_install(){
# currently unused, merged with manual method
local ip="$1" local ip="$1"
local gameport="$2" local gameport="$2"
local diff="$3" local diff="$3"