Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/checkPHP.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: checkPHP
name: PHP Syntax Check

on:
push:
branches:
- beta
pull_request:
branches:
- beta

jobs:
build:
php-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: PHP Syntax Checker (Lint)
uses: StephaneBour/actions-php-lint@8.4
with:
dir: '.'
18 changes: 13 additions & 5 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
name: Translations
name: Build Translations

# Controls when the workflow will run
on:
workflow_dispatch:
push:
branches:
- beta
paths-ignore:
- 'core/i18n/**'
- 'plugin_info/info.json'
workflow_dispatch:
inputs:
languages:
description: 'Langues cibles (séparées par des virgules)'
required: true
default: 'en_US,es_ES,de_DE,it_IT,pt_PT'

jobs:
auto-translate:
runs-on: ubuntu-latest
steps:
- uses: Mips2648/plugins-translations@main
- uses: TiTidom-RC/plugins-translations@beta
with:
target_languages: "en_US,es_ES,de_DE,it_IT,pt_PT"
target_languages: ${{ inputs.languages || 'en_US,es_ES,de_DE,it_IT,pt_PT' }}
use_core_translations: false
include_empty_translation: false
deepl_api_key: ${{ secrets.DEEPL_API_KEY }}
11 changes: 8 additions & 3 deletions core/class/tvremote.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,16 @@ public static function deamon_stop() {
$pid_file = jeedom::getTmpFolder(__CLASS__) . '/deamon.pid'; // Ne PAS modifier
if (file_exists($pid_file)) {
$pid = intval(trim(file_get_contents($pid_file)));
system::kill($pid);
if ($pid > 0) {
system::kill($pid, false); // SIGTERM seul, sans SIGKILL immédiat
for ($i = 0; $i < 30 && file_exists($pid_file); $i++) {
usleep(100000); // Attend max 3s que le processus meure
}
}
@unlink($pid_file);
}
system::kill('tvremoted.py');
system::kill('tvremoted.py'); // SIGKILL de sécurité si zombie
system::fuserk(config::byKey('socketport', __CLASS__, '55112'));
sleep(1);
}

public static function sendToDaemon($params) {
Expand Down
2 changes: 1 addition & 1 deletion plugin_info/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "tvremote",
"name": "TV Remote",
"pluginVersion": "1.3.13",
"pluginVersion": "1.3.14",
"description": {
"fr_FR": "Plugin pour contrôler les équipements Android de type Télévision (Sony, Nvidia Shield, Freebox TV, etc...) via le service de télécommande Google (TVRemote) ou via ADB. Il permet de contrôler les différentes fonctions de sa télévision (power, volume, entrées HDMI, lancement d'applications, chaînes TV, navigation dans l'interface, etc...)",
"en_US": "Plugin to control Android TV devices (Sony, Nvidia Shield, Freebox TV, etc...) via Google remote control service (TVRemote) or via ADB. It allows you to control various functions of your TV (power, volume, HDMI inputs, launching applications, TV channels, navigating the interface, etc...)",
Expand Down