Commit Graph

218 Commits

Author SHA1 Message Date
vanhofen
ef30cd94dd helpers: add ø to GetSpecialName()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d89394141
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-02-18 (Sun, 18 Feb 2024)

Origin message was:
------------------
- helpers: add ø to GetSpecialName()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-02-18 14:05:34 +01:00
GetAway
d8b5a78771 Fix set lastmode; introduce sending an actionKey for LCD4linux
We have a problem since the introduction of moviebrowser_mode.
Lastmode is no longer reset correctly, because the new mode is overlaid by another mode
and thus the original mode cannot be restored. Neutrino becomes unusable and has to be
restarted. (Example below)
Generally the opening of a window, like the MB or Channellist is also no Neutrino_mode in
the sense as it was invented once. It is just a window and not a mode that Neutrino is in.
Example: Neutrino is in TV_MODUS and you open the MB. You can see, Neutrino is still in TV_MODUS.
I reverted the code and now an open window can say for example to the lcd4linux 'hello i'm open, here is mb'.
When running a window we send some kind of AktionKey. After the actions in the window, the AktionKey is cleared.
Now to the current bug:

1. boot on a TV channel.
2. switch to a WebTV channel. (in my case PlutoTV Star Trek)
3. play a TS over the Moviebrowser and stop it. (MODE_WEBTV is detected and the WebTV stream is restarted)
4. call the MB a second time and start and stop the TS.
5. the WebTV stream does not restart anymore.
6. exit the MB now.
7. neutrino becomes not operable.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9721c93f57
Author: GetAway <get-away@t-online.de>
Date: 2024-01-01 (Mon, 01 Jan 2024)



------------------
This commit was generated by Migit
2024-01-01 20:14:35 +01:00
Thilo Graf
de40ee2363 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
------------------
Branch: ni/coolstream
Commit: 912f256276
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)



------------------
This commit was generated by Migit
2023-03-07 23:20:43 +01:00
GetAway
fd52619377 fix for newer libcurl
Origin commit data
------------------
Branch: ni/coolstream
Commit: e864d6bdd0
Author: GetAway <get-away@t-online.de>
Date: 2023-01-12 (Thu, 12 Jan 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-01-13 22:01:13 +01:00
vanhofen
491028cc0b helpers: fix detection of partition in non-subdirboot layout
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-01-13 21:56:58 +01:00
vanhofen
09596297ce add protek4k
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7575262df0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-13 (Sun, 13 Nov 2022)

Origin message was:
------------------
- add protek4k

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-11-13 23:46:53 +01:00
vanhofen
f3b6a71909 some fixes for e4hdu
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9889a95fa0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-31 (Mon, 31 Oct 2022)

Origin message was:
------------------
- some fixes for e4hdu

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-10-31 02:39:37 +01:00
vanhofen
5e93178f9d add multibox
Origin commit data
------------------
Branch: ni/coolstream
Commit: b4a0e72686
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-15 (Thu, 15 Sep 2022)

Origin message was:
------------------
- add multibox

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-09-15 21:38:46 +02:00
vanhofen
051c38fb94 neutrino: add mode_moviebrowser
Origin commit data
------------------
Branch: ni/coolstream
Commit: a2e47e7a15
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-12 (Mon, 12 Sep 2022)

Origin message was:
------------------
- neutrino: add mode_moviebrowser

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-09-12 21:38:16 +02:00
vanhofen
4deb900934 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
------------------
Branch: ni/coolstream
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();
        ^~~


------------------
This commit was generated by Migit
2022-04-18 20:10:54 +02:00
GetAway
b8959e8373 more readability for modes while logging
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-03-27 21:46:44 +02:00
vanhofen
e5595cce87 sectionsd: move function build_time() to helpers
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-01-11 23:39:59 +01:00
vanhofen
d9cde38ca1 helpers: simplify 364a86a34d
Origin commit data
------------------
Branch: ni/coolstream
Commit: dd5610b497
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-02 (Sat, 02 Oct 2021)

Origin message was:
------------------
- helpers: simplify 364a86a34d

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-10-02 19:08:11 +02:00
TangoCash
364a86a34d add url to curl error log
Origin commit data
------------------
Branch: ni/coolstream
Commit: c27672b573
Author: TangoCash <eric@loxat.de>
Date: 2021-09-30 (Thu, 30 Sep 2021)



------------------
This commit was generated by Migit
2021-10-01 20:50:22 +02:00
Thilo Graf
aa166a4bf6 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
------------------
Branch: ni/coolstream
Commit: 8870512979
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-07-13 (Tue, 13 Jul 2021)



------------------
This commit was generated by Migit
2021-07-14 18:59:54 +02:00
Thilo Graf
93c66140cd helpers.cpp: optimize fallback for use with systemd
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab00ab779d
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-07-11 (Sun, 11 Jul 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-07-11 20:09:41 +02:00
Thilo Graf
6ea802b34f heipers.cpp: use getuid() instead getenv()
Enabled only on generic hardware.

Thanks seife for hint.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 33a282527c
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-30 (Wed, 30 Jun 2021)



------------------
This commit was generated by Migit
2021-06-30 20:35:27 +02:00
vanhofen
29ec36cd81 helpers: fix exec_initscript
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8cb24ed24c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-29 (Tue, 29 Jun 2021)

Origin message was:
------------------
- helpers: fix exec_initscript

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-06-29 21:22:07 +02:00
Thilo Graf
d7be7d29c2 helpers.cpp: fix possible crash
Possible error is:
terminate called after throwing an instance of 'std::logic_error'


Origin commit data
------------------
Branch: ni/coolstream
Commit: d9c894a1e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-28 (Mon, 28 Jun 2021)



------------------
This commit was generated by Migit
2021-06-28 23:06:12 +02:00
vanhofen
6dbd79a092 helpers: fix return value of exec_controlscript() too
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-06-22 21:39:51 +02:00
vanhofen
9e4e882762 helpers: fix error message in exec_initscript()
Origin commit data
------------------
Branch: ni/coolstream
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()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-06-22 21:39:51 +02:00
Thilo Graf
6b6260d37c 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
------------------
Branch: ni/coolstream
Commit: d2d22e5748
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-22 (Tue, 22 Jun 2021)



------------------
This commit was generated by Migit
2021-06-22 21:39:51 +02:00
vanhofen
ebed9f1aea add Maxytec Multibox SE 4K
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0555f8b2c7
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-28 (Fri, 28 May 2021)

Origin message was:
------------------
- add Maxytec Multibox SE 4K

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-05-28 23:18:29 +02:00
vanhofen
304a1bb9d4 helpers: add getBoxMode() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3dc8822e9b
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-03-14 (Sun, 14 Mar 2021)

Origin message was:
------------------
- helpers: add getBoxMode() function

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-03-14 10:08:27 +01:00
vanhofen
6d816a0a26 helpers: add function to execute init scripts
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-02-01 00:08:56 +01:00
vanhofen
80967e3f2f helpers: remove hardcoded path
Origin commit data
------------------
Branch: ni/coolstream
Commit: cc3b296ebb
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-10 (Thu, 10 Dec 2020)

Origin message was:
------------------
- helpers: remove hardcoded path

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-12-10 21:44:19 +01:00
Thilo Graf
2b93b5c4d8 helpers.h/cpp: add default timeout parameter with value 1
For flexible usage of timeout in related downloadUrl methods if required.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7cabce4b80
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-11-16 (Mon, 16 Nov 2020)



------------------
This commit was generated by Migit
2020-11-16 16:19:12 +01:00
TangoCash
6bc6693985 set download logo timeout to 1 sec
Origin commit data
------------------
Branch: ni/coolstream
Commit: 24df0c1405
Author: TangoCash <eric@loxat.de>
Date: 2020-11-15 (Sun, 15 Nov 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-11-15 23:00:28 +01:00
vanhofen
21585e72de helpers: add function to get backup suffix
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-11-12 22:17:34 +01:00
TangoCash
994e8d34ff add hisilicon; re-add hd61
Origin commit data
------------------
Branch: ni/coolstream
Commit: 485d28ab28
Author: TangoCash <eric@loxat.de>
Date: 2020-10-03 (Sat, 03 Oct 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-10-03 19:06:43 +02:00
TangoCash
bb7a4fc19f keep all logo-naming conventions together
Origin commit data
------------------
Branch: ni/coolstream
Commit: 978fcedcbe
Author: TangoCash <eric@loxat.de>
Date: 2020-09-20 (Sun, 20 Sep 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-09-20 21:10:53 +02:00
Markus Volk
cad564fbd9 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
------------------
Branch: ni/coolstream
Commit: 1d73d07f22
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-08-04 (Tue, 04 Aug 2020)



------------------
This commit was generated by Migit
2020-08-05 23:43:25 +02:00
Thilo Graf
030db508a3 helpers.cpp: add add script name to debug output
Origin commit data
------------------
Branch: ni/coolstream
Commit: b11646d5ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-07-08 (Wed, 08 Jul 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-07-08 20:49:35 +02:00
vanhofen
9b6e6bea2f rework VUPLUS defines
Origin commit data
------------------
Branch: ni/coolstream
Commit: e299801f1f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-12 (Fri, 12 Jun 2020)

Origin message was:
------------------
- rework VUPLUS defines

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-12 22:27:13 +02:00
vanhofen
2deca73ebf remove unsupported BOXMODEL_HD61
Origin commit data
------------------
Branch: ni/coolstream
Commit: 74f12bb199
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-27 (Thu, 27 Feb 2020)

Origin message was:
------------------
- remove unsupported BOXMODEL_HD61

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-02-27 22:07:33 +01:00
vanhofen
5ad8df1ce8 rename OSMIOPLUS4K => OSMIO4KPLUS
Origin commit data
------------------
Branch: ni/coolstream
Commit: 97cb3a981d
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-18 (Tue, 18 Feb 2020)

Origin message was:
------------------
- rename OSMIOPLUS4K => OSMIO4KPLUS

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-02-18 21:59:57 +01:00
max_10
d100d531be add osmio4k / osmio4kplus not yet ready
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-02-17 21:21:47 +01:00
Markus Volk
e56c919450 add osmioplus4k stb
Origin commit data
------------------
Branch: ni/coolstream
Commit: a5a273db4e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-02-16 20:32:55 +01:00
vanhofen
cb22fb5815 helpers: fix getBaseName() and getFileExt() for urls with query-strings
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-02-15 17:22:56 +01:00
vanhofen
1f66f75ed0 update: move function to get active partition to helpers.cpp
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-12-21 01:26:01 +01:00
GetAway
7170c0f21f helpers.cpp: introduce safe_strncpy() and use it
Origin commit data
------------------
Branch: ni/coolstream
Commit: 72edb6b46d
Author: GetAway <get-away@t-online.de>
Date: 2019-06-18 (Tue, 18 Jun 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-06-18 22:59:07 +02:00
Jacek Jendrzej
859e2d7d75 YT use htmlEntityDecode with title
Origin commit data
------------------
Branch: ni/coolstream
Commit: b68841cee9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-01 (Sat, 01 Jun 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-06-02 01:02:47 +02:00
Thilo Graf
6adc1f6a3a helpers: add to_string() for char
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7679168b61
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-05 (Sun, 05 May 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-05-05 22:44:28 +02:00
vanhofen
f1681a90ab helpers: fix formatting of trim functions
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e1818062c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)

Origin message was:
------------------
- helpers: fix formatting of trim functions

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-03-28 21:22:22 +01:00
Thilo Graf
be1131835e helpers: add trim methodes for left and right trim
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5e1b9aaa4d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-03-28 20:55:49 +01:00
Thilo Graf
f2b1eb75ab helpers: add isDigitWord() function
returns true if all chars of string parameter are digits


Origin commit data
------------------
Branch: ni/coolstream
Commit: 205bbeb7ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)



------------------
This commit was generated by Migit
2019-03-28 20:55:49 +01:00
vanhofen
3216bdcce3 helpers: add function to execute control scripts
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-01-26 17:05:44 +01:00
Thilo Graf
7085f159ce helpers.cpp: reduce debug output in downloadUrl()
Usage of debug level INFO should be enough.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4adec299c9
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-10-28 (Sun, 28 Oct 2018)



------------------
This commit was generated by Migit
2018-10-28 22:00:38 +01:00
TangoCash
729dd20a12 adding caching xmltv logos
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3955d83961
Author: TangoCash <eric@loxat.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-09-20 15:11:05 +02:00
vanhofen
c6319e8a8c helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)


Origin commit data
------------------
Branch: ni/coolstream
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)


------------------
This commit was generated by Migit
2018-09-18 21:18:40 +02:00