From 9893bb14f2bc34f0a4e1f0b1417991364ef30c8d Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Tue, 18 Dec 2018 20:39:52 +0000
Subject: [PATCH 01/28] =?UTF-8?q?=E2=80=9EPack/CHANGELOG=E2=80=9C=20=C3=A4?=
=?UTF-8?q?ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Pack/CHANGELOG | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Pack/CHANGELOG b/Pack/CHANGELOG
index c04dd8e..7241b92 100644
--- a/Pack/CHANGELOG
+++ b/Pack/CHANGELOG
@@ -1,4 +1,10 @@
-Release Notes
+Release Notes
+
+4.0.9 (RELEASE)
+ IMPLEMENTIERUNGEN:
+ -
+ BUGFIXES:
+ -
4.0.8 (RELEASE)
BUGFIXES:
From 2edb0272fcc0e0972d7d39a7ca4eebef42164a22 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 14:29:26 +0000
Subject: [PATCH 02/28] PushBullet integriert
---
Build/synOTR.sh | 102 +++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 93 insertions(+), 9 deletions(-)
diff --git a/Build/synOTR.sh b/Build/synOTR.sh
index f2ea053..756927d 100644
--- a/Build/synOTR.sh
+++ b/Build/synOTR.sh
@@ -8,8 +8,8 @@
echo " -----------------------------------"
echo -e
- CLIENTVERSION="4.0.8" # [2018-12-17]
- DevChannel="Release" # beta
+ CLIENTVERSION=`get_key_value /var/packages/synOTR/INFO version`
+ DevChannel="Release" # beta [2018-12-20]
# ---------------------------------------------------------------------------------
# GRUNDKONFIGRUATIONEN / INDIVIDUELLE ANPASSUNGEN / Standardwerte |
@@ -685,6 +685,18 @@ if [ $decoderactiv = "on" ] && [ ! -z "$filetest" ] ; then
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$filename] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
fi
@@ -1577,6 +1589,18 @@ if [ $OTRcutactiv = "on" ] ; then
if [ $dsmbeepnotify = "on" ] ; then
echo 2 > /dev/ttyS1 #short beep
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$filedestname] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
fi
@@ -1749,7 +1773,7 @@ if [ $OTRcutactiv = "on" ] ; then
if [ $dsmtextnotify = "on" ] ; then
title=${filename%.*}
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$title] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$title] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -1757,6 +1781,18 @@ if [ $OTRcutactiv = "on" ] ; then
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$title] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
fi
@@ -1969,7 +2005,7 @@ if [ $OTRavi2mp4active = "on" ] && [ ! -z "$filetest" ] ; then
synoindex -a "${pfad}${title}.mp4"
if [ $dsmtextnotify = "on" ] ; then
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$title] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$title] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -1977,6 +2013,18 @@ if [ $OTRavi2mp4active = "on" ] && [ ! -z "$filetest" ] ; then
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$title] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
fi
@@ -2285,7 +2333,7 @@ for i in $(find "$WORKDIR" -maxdepth 1 -name "*TVOON*avi" -o -name "*TVOON*mp4"
synoindex -a "${WORKDIR}${NewName}"
if [ $dsmtextnotify = "on" ] ; then
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$title] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$title] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -2293,6 +2341,18 @@ for i in $(find "$WORKDIR" -maxdepth 1 -name "*TVOON*avi" -o -name "*TVOON*mp4"
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Filme [$film] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo "PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n "PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo "PushBullet-TOKEN nicht erkannt"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
fi
@@ -2404,7 +2464,7 @@ if [ $OTRrenameactiv = "on" ] && [ $firstrunonday == "1" ] ; then
if jq -e . >/dev/null 2>&1 <<<"$serieninfo"; then # prüfen, ob korrektes JSON-Format verarbeitet werden kann (https://stackoverflow.com/questions/46954692/check-if-string-is-a-valid-json-with-jq)
echo -e "gefunden:"
echo "OTRID: $OTRID"
- serietitle=`echo "$serieninfo" | jq -r '.Serie' | sed "s/://g" ` # jq ist ein Kommandozeilen-JSON-Parser
+ serietitle=`echo "$serieninfo" | jq -r '.Serie' | sed "s/://g" `
echo "serietitle: $serietitle"
season=`echo "$serieninfo" | awk -F, '{print $3}' | awk -F: '{print $2}' | sed "s/\"//g"`
season="$(printf '%02d' "$season")" # 2stellig mit führender Null
@@ -2513,7 +2573,7 @@ if [ $OTRrenameactiv = "on" ] && [ $firstrunonday == "1" ] ; then
if [ $dsmtextnotify = "on" ] ; then
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$title] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$title] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -2712,7 +2772,7 @@ if [ $useWORKDIR == "yes" ] && [ ! -z "$filetest" ]; then
if [ $dsmtextnotify = "on" ] ; then
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$filename] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$filename] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -2720,6 +2780,18 @@ if [ $useWORKDIR == "yes" ] && [ ! -z "$filetest" ]; then
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$filename] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
@@ -2744,7 +2816,7 @@ if [ $useWORKDIR == "yes" ] && [ ! -z "$filetest" ]; then
if [ $dsmtextnotify = "on" ] ; then
sleep 1
- synodsmnotify $MessageTo "synOTR" "[$filename] ist fertig"
+ synodsmnotify $MessageTo "synOTR" "Film [$filename] ist fertig"
sleep 1
fi
if [ $dsmbeepnotify = "on" ] ; then
@@ -2752,6 +2824,18 @@ if [ $useWORKDIR == "yes" ] && [ ! -z "$filetest" ]; then
echo 2 > /dev/ttyS1 #short beep
sleep 1
fi
+ if [ ! -z $PBTOKEN ] ; then
+ PB_LOG=`curl $cURLloglevel --header "Access-Token:${PBTOKEN}" https://api.pushbullet.com/v2/pushes -d type=note -d title="synOTR" -d body="Film [$filename] ist fertig."`
+ if [ $LOGlevel = "2" ] ; then
+ echo " PushBullet-LOG:"
+ echo "$PB_LOG"
+ elif echo "$PB_LOG" | grep -q "error"; then # für Loglevel 1 nur Errorausgabe
+ echo -n " PushBullet-Error: "
+ echo "$PB_LOG" | jq -r '.error_code'
+ fi
+ else
+ echo " (PushBullet-TOKEN nicht gesetzt)"
+ fi
wget --timeout=30 --tries=2 -q -O - "http://${synotrdomain}/synOTR/synOTR_FILECOUNT" >/dev/null 2>&1
needindex=1
else
From b8b87c3eafaf60bf26326621d0ef63d1289ab766 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 14:36:01 +0000
Subject: [PATCH 03/28] PushBullet integriert
---
Build/upgradeconfig.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Build/upgradeconfig.sh b/Build/upgradeconfig.sh
index 7000d49..0a7abc0 100644
--- a/Build/upgradeconfig.sh
+++ b/Build/upgradeconfig.sh
@@ -28,6 +28,9 @@
if ! cat ./$CONFIG | grep -q "dsmbeepnotify" ; then
echo "dsmbeepnotify=\"on\"" >> ./$CONFIG
fi
+ if ! cat ./$CONFIG | grep -q "PBTOKEN" ; then
+ echo "PBTOKEN=\"\"" >> ./$CONFIG
+ fi
if ! cat ./$CONFIG | grep -q "LOGlevel" ; then
echo "LOGlevel=\"1\"" >> ./$CONFIG
fi
From 1a8471f21d4b51d1b3a3fa00c2de6c9db5b518e8 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 14:40:38 +0000
Subject: [PATCH 04/28] PushBullet integriert
---
Build/usersettings/Konfiguration_org.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Build/usersettings/Konfiguration_org.txt b/Build/usersettings/Konfiguration_org.txt
index a1a656e..2788ed9 100644
--- a/Build/usersettings/Konfiguration_org.txt
+++ b/Build/usersettings/Konfiguration_org.txt
@@ -49,6 +49,7 @@ MP4BOX_DELAY="100"
#--------------------------------------------------------------------
dsmtextnotify="on"
MessageTo="admin"
+PBTOKEN=""
dsmbeepnotify="on"
LOGlevel="1"
reindex=1
From 2340a050aca6492da209bd0baac82a5fb2724327 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 14:50:54 +0000
Subject: [PATCH 05/28] PushBullet integriert
---
Build/edit.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Build/edit.sh b/Build/edit.sh
index a16c176..c38c250 100644
--- a/Build/edit.sh
+++ b/Build/edit.sh
@@ -28,6 +28,7 @@ if [[ "$page" == "edit-save" ]]; then
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmtextnotify" "$dsmtextnotify"
"$set_var" "$dir/app/etc/Konfiguration.txt" "MessageTo" "$MessageTo"
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmbeepnotify" "$dsmbeepnotify"
+ "$set_var" "$dir/app/etc/Konfiguration.txt" "PBTOKEN" "$PBTOKEN"
"$set_var" "$dir/app/etc/Konfiguration.txt" "LOGlevel" "$LOGlevel"
"$set_var" "$dir/app/etc/Konfiguration.txt" "endgueltigloeschen" "$endgueltigloeschen"
"$set_var" "$dir/app/etc/Konfiguration.txt" "reindex" "$reindex"
@@ -86,6 +87,7 @@ if [[ "$page" == "edit-import-query" ]] || [[ "$page" == "edit-import" ]]; then
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmtextnotify" "$dsmtextnotify"
"$set_var" "$dir/app/etc/Konfiguration.txt" "MessageTo" "$MessageTo"
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmbeepnotify" "$dsmbeepnotify"
+ "$set_var" "$dir/app/etc/Konfiguration.txt" "PBTOKEN" "$PBTOKEN"
"$set_var" "$dir/app/etc/Konfiguration.txt" "LOGlevel" "$LOGlevel"
"$set_var" "$dir/app/etc/Konfiguration.txt" "endgueltigloeschen" "$endgueltigloeschen"
"$set_var" "$dir/app/etc/Konfiguration.txt" "reindex" "$reindex"
@@ -743,6 +745,22 @@ if [[ "$page" == "edit" ]]; then
Auf diese Art kann man sich in Verbindung mit dem Paket "Notification Forwarder" über synOTR-Ereignisse z.B. über einen Pushdienst benachrichtigen lassen.
Bleibt der Wert leer, so wird die Gruppe "administrators" benachrichtigt.
'
+ # PushBullet-Token
+ echo '
+
+ '
+ if [ -n "$PBTOKEN" ]; then
+ echo ''
+ else
+ echo ''
+ fi
+ echo '
+
+
+ Dein persönlicher PushBullet-Token.
+
Benachrichtigungen werden an den entsprechenden Account gesendet.
+
Bei Nichtgebrauch leer lassen.
+
'
# dsmbeepnotify
echo '
From c72b993cd709efa3d0cc139bf19a4b4559a14456 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 14:51:32 +0000
Subject: [PATCH 06/28] =?UTF-8?q?=E2=80=9EPack/INFO=E2=80=9C=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Pack/INFO | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pack/INFO b/Pack/INFO
index 62e1073..5022205 100644
--- a/Pack/INFO
+++ b/Pack/INFO
@@ -1,6 +1,6 @@
package="synOTR"
displayname="synOTR"
-version="4.0.8"
+version="4.0.8.1"
thirdparty="yes"
description="SynOTR liefert einen Workflow für TV-Aufnahmen von onlineTVrecorder (OTR) auf Synology NAS. synOTR übernimmt *decodieren *AC3-muxing (BETA) *schneiden *MP4-Konvertierung und *umbenennung (inkl. Serieninformationen von www.thetvdb.com und www.otr-serien.de). onlineTVrecorder (OTR) ist der freie Videorecorder im Internet, der rund um die Uhr fast alle Sendungen von rund 100 TV-Sender aus Deutschland, USA, UK und anderen Lädern aufnimmt."
maintainer="geimist"
From 323d686acb8cb1444caf56f74e736a032084f641 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 16:59:22 +0000
Subject: [PATCH 07/28] =?UTF-8?q?=E2=80=9EPack/CHANGELOG=E2=80=9C=20=C3=A4?=
=?UTF-8?q?ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Pack/CHANGELOG | 1 +
1 file changed, 1 insertion(+)
diff --git a/Pack/CHANGELOG b/Pack/CHANGELOG
index 7241b92..ac65cb6 100644
--- a/Pack/CHANGELOG
+++ b/Pack/CHANGELOG
@@ -2,6 +2,7 @@ Release Notes
4.0.9 (RELEASE)
IMPLEMENTIERUNGEN:
+ - PushBullet integriert. Dazu muss lediglich der persönliche Token in der Konfiguration hinterlegt werden
-
BUGFIXES:
-
From f12e1989d059179377367ac5e463198d23da0ca1 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Thu, 20 Dec 2018 17:00:08 +0000
Subject: [PATCH 08/28] =?UTF-8?q?=E2=80=9EPack/INFO=E2=80=9C=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Pack/INFO | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pack/INFO b/Pack/INFO
index 5022205..c7b163f 100644
--- a/Pack/INFO
+++ b/Pack/INFO
@@ -1,6 +1,6 @@
package="synOTR"
displayname="synOTR"
-version="4.0.8.1"
+version="4.0.9"
thirdparty="yes"
description="SynOTR liefert einen Workflow für TV-Aufnahmen von onlineTVrecorder (OTR) auf Synology NAS. synOTR übernimmt *decodieren *AC3-muxing (BETA) *schneiden *MP4-Konvertierung und *umbenennung (inkl. Serieninformationen von www.thetvdb.com und www.otr-serien.de). onlineTVrecorder (OTR) ist der freie Videorecorder im Internet, der rund um die Uhr fast alle Sendungen von rund 100 TV-Sender aus Deutschland, USA, UK und anderen Lädern aufnimmt."
maintainer="geimist"
From 7393b24cb5743634828a04386fbc12473b976f54 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Mon, 31 Dec 2018 17:25:41 +0000
Subject: [PATCH 09/28] =?UTF-8?q?=E2=80=9EBuild/upgradeconfig.sh=E2=80=9C?=
=?UTF-8?q?=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Build/upgradeconfig.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Build/upgradeconfig.sh b/Build/upgradeconfig.sh
index 0a7abc0..8d1beaa 100644
--- a/Build/upgradeconfig.sh
+++ b/Build/upgradeconfig.sh
@@ -34,6 +34,9 @@
if ! cat ./$CONFIG | grep -q "LOGlevel" ; then
echo "LOGlevel=\"1\"" >> ./$CONFIG
fi
+ if ! cat ./$CONFIG | grep -q "LOGmax" ; then
+ echo "LOGmax=\"1\"" >> ./$CONFIG
+ fi
if ! cat ./$CONFIG | grep -q "reindex" ; then
echo "reindex=\"1\"" >> ./$CONFIG
fi
From a39c4fbfedc08098e5d0ceaed441a36ec78d358d Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Mon, 31 Dec 2018 17:26:41 +0000
Subject: [PATCH 10/28] =?UTF-8?q?=E2=80=9EBuild/app/etc/Konfiguration.txt?=
=?UTF-8?q?=E2=80=9C=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Build/app/etc/Konfiguration.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Build/app/etc/Konfiguration.txt b/Build/app/etc/Konfiguration.txt
index 23c268f..ed35e32 100644
--- a/Build/app/etc/Konfiguration.txt
+++ b/Build/app/etc/Konfiguration.txt
@@ -51,6 +51,7 @@ dsmtextnotify="on"
MessageTo="admin"
dsmbeepnotify="on"
LOGlevel="1"
+LOGmax=""
reindex=1
#--------------------------------------------------------------------
From b4610991719d50abc7e0e7b27082f430a37178ae Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Mon, 31 Dec 2018 17:27:44 +0000
Subject: [PATCH 11/28] =?UTF-8?q?=E2=80=9EBuild/usersettings/Konfiguration?=
=?UTF-8?q?=5Forg.txt=E2=80=9C=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Build/usersettings/Konfiguration_org.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Build/usersettings/Konfiguration_org.txt b/Build/usersettings/Konfiguration_org.txt
index 2788ed9..1b30891 100644
--- a/Build/usersettings/Konfiguration_org.txt
+++ b/Build/usersettings/Konfiguration_org.txt
@@ -52,6 +52,7 @@ MessageTo="admin"
PBTOKEN=""
dsmbeepnotify="on"
LOGlevel="1"
+LOGmax=""
reindex=1
#--------------------------------------------------------------------
From 547849360c8d04945a0ce058f7773c00da1c7bf3 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Mon, 31 Dec 2018 17:34:09 +0000
Subject: [PATCH 12/28] =?UTF-8?q?=E2=80=9EBuild/edit.sh=E2=80=9C=20=C3=A4n?=
=?UTF-8?q?dern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Build/edit.sh | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/Build/edit.sh b/Build/edit.sh
index c38c250..b23ac3c 100644
--- a/Build/edit.sh
+++ b/Build/edit.sh
@@ -29,7 +29,8 @@ if [[ "$page" == "edit-save" ]]; then
"$set_var" "$dir/app/etc/Konfiguration.txt" "MessageTo" "$MessageTo"
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmbeepnotify" "$dsmbeepnotify"
"$set_var" "$dir/app/etc/Konfiguration.txt" "PBTOKEN" "$PBTOKEN"
- "$set_var" "$dir/app/etc/Konfiguration.txt" "LOGlevel" "$LOGlevel"
+ "$set_var" "$dir/app/etc/Konfiguration.txt" "LOGlevel" "$LOGlevel"LOGmax
+ "$set_var" "$dir/app/etc/Konfiguration.txt" "LOGmax" "$LOGmax"
"$set_var" "$dir/app/etc/Konfiguration.txt" "endgueltigloeschen" "$endgueltigloeschen"
"$set_var" "$dir/app/etc/Konfiguration.txt" "reindex" "$reindex"
"$set_var" "$dir/app/etc/Konfiguration.txt" "cutlistat_ID" "$cutlistat_ID"
@@ -89,6 +90,7 @@ if [[ "$page" == "edit-import-query" ]] || [[ "$page" == "edit-import" ]]; then
"$set_var" "$dir/app/etc/Konfiguration.txt" "dsmbeepnotify" "$dsmbeepnotify"
"$set_var" "$dir/app/etc/Konfiguration.txt" "PBTOKEN" "$PBTOKEN"
"$set_var" "$dir/app/etc/Konfiguration.txt" "LOGlevel" "$LOGlevel"
+ "$set_var" "$dir/app/etc/Konfiguration.txt" "LOGmax" "$LOGmax"
"$set_var" "$dir/app/etc/Konfiguration.txt" "endgueltigloeschen" "$endgueltigloeschen"
"$set_var" "$dir/app/etc/Konfiguration.txt" "reindex" "$reindex"
"$set_var" "$dir/app/etc/Konfiguration.txt" "cutlistat_ID" "$cutlistat_ID"
@@ -810,6 +812,22 @@ if [[ "$page" == "edit" ]]; then
0 => es wird keine Log-Datei erstellt
1 => normales Log (standard)
2 => erweitertes Log
Die Logs befinden sich im Dekodierverzeichnis/_LOGsynOTR/
'
+ # LOGmax
+ echo '
+
+ '
+ if [ -n "$LOGmax" ]; then
+ echo ''
+ else
+ echo ''
+ fi
+ echo '
+
+
+ LOG-Files können automatisch gelöscht werden, indem hier die maximal gewünschte Anzahl angegeben wird.
+
Sobald hier ein Wert vergeben wird, werden grundsätzlich alle leeren LOGs gelöscht.
+
(Die Anzahl bezieht sich also nur auf LOGs mit Einträgen)
+
'
# reindex
echo '
From 4c7d8b0f12e96ffcc7f2853c0ab6e41e48ccbbd6 Mon Sep 17 00:00:00 2001
From: Stephan Geisler
Date: Mon, 31 Dec 2018 17:43:45 +0000
Subject: [PATCH 13/28] =?UTF-8?q?=E2=80=9EBuild/edit.sh=E2=80=9C=20=C3=A4n?=
=?UTF-8?q?dern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Build/edit.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Build/edit.sh b/Build/edit.sh
index b23ac3c..2cd01e1 100644
--- a/Build/edit.sh
+++ b/Build/edit.sh
@@ -611,14 +611,14 @@ if [[ "$page" == "edit" ]]; then
'
- # -> Abschnitt .avi's in native MP4's (MAC OS tauglich) umwandeln
+ # -> Abschnitt .avi's in native MP4's umwandeln
echo '