Commit Graph

216 Commits

Author SHA1 Message Date
Thilo Graf
aa2b05cd0c system/helpers: Add new Parameter 'start_pos' to str_replace()
This allows flexibility to specify a starting position from where to search
for the first occurrence of the search string. By default,
the position is set to 0 and the function will behave as before.
However, when a position is provided,
the function will replace only the first occurrence of
the search string after that position.


Origin commit data
------------------
Commit: 912f256276
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)
2023-03-07 23:20:43 +01:00
GetAway
5539fd06a2 fix for newer libcurl
Origin commit data
------------------
Commit: e864d6bdd0
Author: GetAway <get-away@t-online.de>
Date: 2023-01-12 (Thu, 12 Jan 2023)
2023-01-13 22:01:13 +01:00
vanhofen
c1c6b7f6ca helpers: fix detection of partition in non-subdirboot layout
Origin commit data
------------------
Commit: 78fc37b0b1
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-01-13 (Fri, 13 Jan 2023)

Origin message was:
------------------
- helpers: fix detection of partition in non-subdirboot layout
2023-01-13 21:56:58 +01:00
vanhofen
073f772a72 add protek4k
Origin commit data
------------------
Commit: 7575262df0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-13 (Sun, 13 Nov 2022)

Origin message was:
------------------
- add protek4k
2022-11-13 23:46:53 +01:00
vanhofen
e5f73caaad some fixes for e4hdu
Origin commit data
------------------
Commit: 9889a95fa0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-31 (Mon, 31 Oct 2022)

Origin message was:
------------------
- some fixes for e4hdu
2022-10-31 02:39:37 +01:00
vanhofen
1927444966 add multibox
Origin commit data
------------------
Commit: b4a0e72686
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-15 (Thu, 15 Sep 2022)

Origin message was:
------------------
- add multibox
2022-09-15 21:38:46 +02:00
vanhofen
0b07dec2c1 neutrino: add mode_moviebrowser
Origin commit data
------------------
Commit: a2e47e7a15
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-12 (Mon, 12 Sep 2022)

Origin message was:
------------------
- neutrino: add mode_moviebrowser
2022-09-12 21:38:16 +02:00
vanhofen
ba2cc578d7 helpers: fix warning in neutrinoMode_to_string();
cc1plus: warning: function may return address of local variable [-Wreturn-local-addr]
../src/system/helpers.cpp:114:16: note: declared here
 std::string res = s.str();
  ^~~


Origin commit data
------------------
Commit: 86e0ee951d
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-04-18 (Mon, 18 Apr 2022)

Origin message was:
------------------
- helpers: fix warning in neutrinoMode_to_string();

cc1plus: warning: function may return address of local variable [-Wreturn-local-addr]
../src/system/helpers.cpp:114:16: note: declared here
  std::string res = s.str();
        ^~~
2022-04-18 20:10:54 +02:00
GetAway
b62836fa84 more readability for modes while logging
Origin commit data
------------------
Commit: 02e4c41ab3
Author: GetAway <get-away@t-online.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)

Origin message was:
------------------
- more readability for modes while logging
2022-03-27 21:46:44 +02:00
vanhofen
39ed3e8df4 sectionsd: move function build_time() to helpers
Origin commit data
------------------
Commit: 3c23415516
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-11 (Tue, 11 Jan 2022)

Origin message was:
------------------
- sectionsd: move function build_time() to helpers
2022-01-11 23:39:59 +01:00
vanhofen
72377ad5e8 helpers: simplify d628093107
Origin commit data
------------------
Commit: dd5610b497
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-02 (Sat, 02 Oct 2021)

Origin message was:
------------------
- helpers: simplify d628093107
2021-10-02 19:08:11 +02:00
TangoCash
d628093107 add url to curl error log
Origin commit data
------------------
Commit: c27672b573
Author: TangoCash <eric@loxat.de>
Date: 2021-09-30 (Thu, 30 Sep 2021)
2021-10-01 20:50:22 +02:00
Thilo Graf
ae67a8952c helpers.cpp: fix fallback to 'service' as default command
Our buildsystem/image (Yocto/OE) is using systemctl as default and we have defined 'systemctl' as
3rd parameter (e.g. see drivers/lcd4l.cpp), but users of our source could
use systems without 'systemctl' in their own buildsystems/images,
therefore it makes sense to have a fallback to 'service'.
This should avoid patching the sources.
Thx GetAway for hint.


Origin commit data
------------------
Commit: 8870512979
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-07-13 (Tue, 13 Jul 2021)
2021-07-14 18:59:54 +02:00
Thilo Graf
4e4d751893 helpers.cpp: optimize fallback for use with systemd
Origin commit data
------------------
Commit: ab00ab779d
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-07-11 (Sun, 11 Jul 2021)
2021-07-11 20:09:41 +02:00
Thilo Graf
74e55d2478 heipers.cpp: use getuid() instead getenv()
Enabled only on generic hardware.

Thanks seife for hint.


Origin commit data
------------------
Commit: 33a282527c
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-30 (Wed, 30 Jun 2021)
2021-06-30 20:35:27 +02:00
vanhofen
aa35fb925a helpers: fix exec_initscript
Origin commit data
------------------
Commit: 8cb24ed24c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-29 (Tue, 29 Jun 2021)

Origin message was:
------------------
- helpers: fix exec_initscript
2021-06-29 21:22:07 +02:00
Thilo Graf
e401176404 helpers.cpp: fix possible crash
Possible error is:
terminate called after throwing an instance of 'std::logic_error'


Origin commit data
------------------
Commit: d9c894a1e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-28 (Mon, 28 Jun 2021)
2021-06-28 23:06:12 +02:00
vanhofen
a9e1e28e10 helpers: fix return value of exec_controlscript() too
Origin commit data
------------------
Commit: 438cdca55c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-22 (Tue, 22 Jun 2021)

Origin message was:
------------------
- helpers: fix return value of exec_controlscript() too
2021-06-22 21:39:51 +02:00
vanhofen
88b5c7f38d helpers: fix error message in exec_initscript()
Origin commit data
------------------
Commit: c6b72f034f
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-22 (Tue, 22 Jun 2021)

Origin message was:
------------------
- helpers: fix error message in exec_initscript()
2021-06-22 21:39:51 +02:00
Thilo Graf
bff71552d8 helpers: modify exec_initscript() for usage with systemctl
Current behavior is untouched, but return value is boolean
and so far, the function obviously has returned true on error. So far this
was currently not evaluated but is changed now. Otherwise, "bool" makes
not really sense or was this intended?


Origin commit data
------------------
Commit: d2d22e5748
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-22 (Tue, 22 Jun 2021)
2021-06-22 21:39:51 +02:00
vanhofen
ece333c80f add Maxytec Multibox SE 4K
Origin commit data
------------------
Commit: 0555f8b2c7
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-28 (Fri, 28 May 2021)

Origin message was:
------------------
- add Maxytec Multibox SE 4K
2021-05-28 23:18:29 +02:00
vanhofen
11d8172a19 helpers: add getBoxMode() function
Origin commit data
------------------
Commit: 3dc8822e9b
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-03-14 (Sun, 14 Mar 2021)

Origin message was:
------------------
- helpers: add getBoxMode() function
2021-03-14 10:08:27 +01:00
vanhofen
b2cf58613f helpers: add function to execute init scripts
Origin commit data
------------------
Commit: b4e75bdb24
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-02-01 (Mon, 01 Feb 2021)

Origin message was:
------------------
- helpers: add function to execute init scripts
2021-02-01 00:08:56 +01:00
vanhofen
87c875fcbd helpers: remove hardcoded path
Origin commit data
------------------
Commit: cc3b296ebb
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-10 (Thu, 10 Dec 2020)

Origin message was:
------------------
- helpers: remove hardcoded path
2020-12-10 21:44:19 +01:00
Thilo Graf
b0549601a5 helpers.h/cpp: add default timeout parameter with value 1
For flexible usage of timeout in related downloadUrl methods if required.


Origin commit data
------------------
Commit: 7cabce4b80
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-11-16 (Mon, 16 Nov 2020)
2020-11-16 16:19:12 +01:00
TangoCash
5da0c3f3fb set download logo timeout to 1 sec
Origin commit data
------------------
Commit: 24df0c1405
Author: TangoCash <eric@loxat.de>
Date: 2020-11-15 (Sun, 15 Nov 2020)
2020-11-15 23:00:28 +01:00
vanhofen
752c3f1a0c helpers: add function to get backup suffix
Origin commit data
------------------
Commit: 427a949807
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-11-12 (Thu, 12 Nov 2020)

Origin message was:
------------------
- helpers: add function to get backup suffix
2020-11-12 22:17:34 +01:00
TangoCash
7f2a6b5509 add hisilicon; re-add hd61
Origin commit data
------------------
Commit: 485d28ab28
Author: TangoCash <eric@loxat.de>
Date: 2020-10-03 (Sat, 03 Oct 2020)
2020-10-03 19:06:43 +02:00
TangoCash
dd48defda4 keep all logo-naming conventions together
Origin commit data
------------------
Commit: 978fcedcbe
Author: TangoCash <eric@loxat.de>
Date: 2020-09-20 (Sun, 20 Sep 2020)
2020-09-20 21:10:53 +02:00
Markus Volk
829cc3f238 helpers.cpp: fix narrowing conversion
switch expression is 'int', but f_type gets stored as 'long unsigned int' on 32-bit machines since it may not fit otherwise. Recent compilers diagnose this and bail out with:

../../../git/src/system/helpers.cpp:330:9: error: narrowing conversion of '2240043254' from 'long unsigned int' to 'int' [-Wnarrowing]

casting the switch expression to long unsigned int seems to be the solution.

in short: this fixes the build for 32-bit machines with gcc ≥ 10.x

Signed-off-by: Markus Volk <f_l_k@t-online.de>


Origin commit data
------------------
Commit: 1d73d07f22
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-08-04 (Tue, 04 Aug 2020)
2020-08-05 23:43:25 +02:00
Thilo Graf
0c003b0961 helpers.cpp: add add script name to debug output
Origin commit data
------------------
Commit: b11646d5ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-07-08 (Wed, 08 Jul 2020)
2020-07-08 20:49:35 +02:00
vanhofen
f4cabed2c0 rework VUPLUS defines
Origin commit data
------------------
Commit: e299801f1f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-12 (Fri, 12 Jun 2020)

Origin message was:
------------------
- rework VUPLUS defines
2020-06-12 22:27:13 +02:00
vanhofen
f1c074fc83 remove unsupported BOXMODEL_HD61
Origin commit data
------------------
Commit: 74f12bb199
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-27 (Thu, 27 Feb 2020)

Origin message was:
------------------
- remove unsupported BOXMODEL_HD61
2020-02-27 22:07:33 +01:00
vanhofen
56edcd0ce4 rename OSMIOPLUS4K => OSMIO4KPLUS
Origin commit data
------------------
Commit: 97cb3a981d
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-18 (Tue, 18 Feb 2020)

Origin message was:
------------------
- rename OSMIOPLUS4K => OSMIO4KPLUS
2020-02-18 21:59:57 +01:00
max_10
ff95c57515 add osmio4k / osmio4kplus not yet ready
Origin commit data
------------------
Commit: f00b047142
Author: max_10 <max_10@gmx.de>
Date: 2020-02-17 (Mon, 17 Feb 2020)

Origin message was:
------------------
- add osmio4k / osmio4kplus not yet ready
2020-02-17 21:21:47 +01:00
Markus Volk
2b72b90467 add osmioplus4k stb
Origin commit data
------------------
Commit: a5a273db4e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)
2020-02-16 20:32:55 +01:00
vanhofen
42cef70961 helpers: fix getBaseName() and getFileExt() for urls with query-strings
Origin commit data
------------------
Commit: e2b84f0259
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-15 (Sat, 15 Feb 2020)

Origin message was:
------------------
- helpers: fix getBaseName() and getFileExt() for urls with query-strings
2020-02-15 17:22:56 +01:00
vanhofen
bdacf5b851 update: move function to get active partition to helpers.cpp
Origin commit data
------------------
Commit: b4b3264967
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-12-21 (Sat, 21 Dec 2019)

Origin message was:
------------------
- update: move function to get active partition to helpers.cpp
2019-12-21 01:26:01 +01:00
GetAway
e033f640f3 helpers.cpp: introduce safe_strncpy() and use it
Origin commit data
------------------
Commit: 72edb6b46d
Author: GetAway <get-away@t-online.de>
Date: 2019-06-18 (Tue, 18 Jun 2019)
2019-06-18 22:59:07 +02:00
Jacek Jendrzej
048363b309 YT use htmlEntityDecode with title
Origin commit data
------------------
Commit: b68841cee9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-01 (Sat, 01 Jun 2019)
2019-06-02 01:02:47 +02:00
Thilo Graf
ea88fa6545 helpers: add to_string() for char
Origin commit data
------------------
Commit: 7679168b61
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-05 (Sun, 05 May 2019)
2019-05-05 22:44:28 +02:00
vanhofen
27fbc85d15 helpers: fix formatting of trim functions
Origin commit data
------------------
Commit: 9e1818062c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)

Origin message was:
------------------
- helpers: fix formatting of trim functions
2019-03-28 21:22:22 +01:00
Thilo Graf
510da5d8de helpers: add trim methodes for left and right trim
Origin commit data
------------------
Commit: 5e1b9aaa4d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)
2019-03-28 20:55:49 +01:00
Thilo Graf
70a4e3610f helpers: add isDigitWord() function
returns true if all chars of string parameter are digits


Origin commit data
------------------
Commit: 205bbeb7ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)
2019-03-28 20:55:49 +01:00
vanhofen
700e7adfe0 helpers: add function to execute control scripts
Origin commit data
------------------
Commit: 7882ee4805
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-26 (Sat, 26 Jan 2019)

Origin message was:
------------------
- helpers: add function to execute control scripts
2019-01-26 17:05:44 +01:00
Thilo Graf
37b049105e helpers.cpp: reduce debug output in downloadUrl()
Usage of debug level INFO should be enough.


Origin commit data
------------------
Commit: 4adec299c9
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-10-28 (Sun, 28 Oct 2018)
2018-10-28 22:00:38 +01:00
TangoCash
8dd38e9ccc adding caching xmltv logos
Origin commit data
------------------
Commit: 3955d83961
Author: TangoCash <eric@loxat.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)
2018-09-20 15:11:05 +02:00
vanhofen
c48a115366 helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)


Origin commit data
------------------
Commit: 2d3f66aa39
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-18 (Tue, 18 Sep 2018)

Origin message was:
------------------
- helpers: rework new random-functions to get the code more reuseable

* introduceand use LOGODIR_TMP (storage dir for webchannel logos)
2018-09-18 21:18:40 +02:00
TangoCash
5f47e7f784 adding download helping function
Origin commit data
------------------
Commit: f474e60303
Author: TangoCash <eric@loxat.de>
Date: 2018-09-09 (Sun, 09 Sep 2018)
2018-09-09 13:06:05 +02:00
TangoCash
14a4368880 implement own tmp function / satify compiler
Origin commit data
------------------
Commit: 841b6efd95
Author: TangoCash <eric@loxat.de>
Date: 2018-09-02 (Sun, 02 Sep 2018)
2018-09-02 01:42:51 +02:00