Sportaš kartica fix + hns_run.sh wrapper

CSS sport2.html:
- .player-card .ph img object-position: top → center 25% (face-aware crop)
- .ph aspect-ratio: 4/5 (portrait container, više prostora za sliku)

scripts/hns_run.sh:
- Wrapper koristi /usr/bin/python3 (ima psycopg2)
- Komande: master, deep, avatar, season, watchdog, objekti
- Damir-friendly (radi i u venv)
This commit is contained in:
2026-05-05 18:39:01 +02:00
parent bc59d1dc2d
commit 7ca5d7d94e
2 changed files with 26 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Wrapper za HNS harvester koji uvijek koristi sistemski python3 (ima psycopg2)
# Damir-friendly - ignorira venv aktivaciju
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
case "$1" in
master) /usr/bin/python3 "$SCRIPT_DIR/hns_master_harvester.py" "${@:2}" ;;
deep) /usr/bin/python3 "$SCRIPT_DIR/hns_player_deep.py" "${@:2}" ;;
avatar) /usr/bin/python3 "$SCRIPT_DIR/hns_avatar_harvester.py" "${@:2}" ;;
season) /usr/bin/python3 "$SCRIPT_DIR/hns_season_retry.py" "${@:2}" ;;
watchdog) /usr/bin/python3 "$SCRIPT_DIR/hns_watchdog.py" "${@:2}" ;;
objekti) /usr/bin/python3 "$SCRIPT_DIR/objekti_enrich_address.py" "${@:2}" ;;
"") echo "Usage: $0 {master|deep|avatar|season|watchdog|objekti} [args]"
echo
echo "Primjeri:"
echo " $0 master --limit 100 # Sve PGŽ klubove (~59)"
echo " $0 master --klub-id 2613 # Jedan klub"
echo " $0 master --single-player 436387 # Jedan igrač"
echo " $0 deep # DEEP scrape svih (sezone+utakmice)"
echo " $0 avatar # Avatar slike"
echo " $0 watchdog # Auto-recovery"
;;
*) echo "Unknown command: $1"; exit 1 ;;
esac