mirror of
https://github.com/aclist/dztui.git
synced 2024-12-27 21:02:36 +01:00
fix: sanitize UGC IDs (#155)
This commit is contained in:
parent
3e1170ffd8
commit
d10cd212b4
3 changed files with 13 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
|||
# 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
|
||||
### Fixed
|
||||
- Use fallback logic for modlist queries when user traverses networks
|
||||
|
|
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -o pipefail
|
||||
|
||||
version=5.4.1-beta.3
|
||||
version=5.4.2-beta.1
|
||||
|
||||
#CONSTANTS
|
||||
aid=221100
|
||||
|
@ -549,7 +549,7 @@ fetch_icons(){
|
|||
"128"
|
||||
"256"
|
||||
)
|
||||
url="$testing_url/images/icons"
|
||||
url="$stable_url/images/icons"
|
||||
for i in "${res[@]}"; do
|
||||
size="${i}x${i}"
|
||||
dir="$HOME/.local/share/icons/hicolor/$size/apps"
|
||||
|
@ -569,7 +569,7 @@ fetch_helpers_by_sum(){
|
|||
["ui.py"]="9cac4d3b87ef292e7d30b25ca86cc438"
|
||||
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||
["funcs"]="4a06a823b6240c518687d2a8ec20e914"
|
||||
["funcs"]="7221bda853145942c4c728cbc76ac633"
|
||||
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
|
||||
)
|
||||
local author="aclist"
|
||||
|
|
|
@ -1019,7 +1019,11 @@ query_defunct(){
|
|||
-H "Content-Type:application/x-www-form-urlencoded"\
|
||||
-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}'
|
||||
}
|
||||
encode(){
|
||||
|
@ -1177,6 +1181,7 @@ focus_beta_client(){
|
|||
$steam_cmd steam://open/console 2>/dev/null 1>&2
|
||||
}
|
||||
auto_mod_install(){
|
||||
# currently unused, merged with manual method
|
||||
local ip="$1"
|
||||
local gameport="$2"
|
||||
local diff="$3"
|
||||
|
|
Loading…
Reference in a new issue