Commit Graph

834 Commits

Author SHA1 Message Date
Thilo Graf
b911d5f73a controlapi.cpp: Fix format warnings and update types in CControlAPI::EpgCGI
- Changed long to time_t for event times.
- Used PRIu64, PRIdMAX, and %lld for formatting and parsing time_t
  and event IDs.
- Updated sscanf and printf calls to handle time_t and uint64_t correctly.
2024-07-05 17:26:08 +02:00
Thilo Graf
f0671d734b controlapi.cpp: ensure type compatibility for time_t in multiple methods
- Updated channelEPGformated to use time_t instead of long for _stoptime.
- Corrected sscanf format specifier in EpgCGI to handle time_t correctly.
- Changed handling of _stoptime in xmltvepgCGI to use time_t.
- Ensured gmtime and localtime functions receive time_t arguments.

These changes ensure compatibility with _TIME_BITS=64 and maintain
proper type usage for time functions, addressing different
definitions and maintaining robustness across kernel and library versions.
2024-07-04 16:08:36 +02:00
Thilo Graf
11b0b2a2fa controlapi.cpp: try to fix build errors if member 'time' is not found
Ensure backward compatibility for rc_sync and channelEPGformated

- Added conditional compilation in rc_sync to check for input_event_sec macro.
- Used input_event_sec and input_event_usec macros if defined.
- Provided fallback to direct timeval members for older versions.
- Minor formatting adjustment in channelEPGformated for consistency.

This should ensure compatibility with both newer and older
kernel versions, different C library implementations,
and possible standard settings of build systems.
Addressing different definitions of the input_event structure maintains
robustness across kernel, library, and build system configurations.
2024-07-04 16:08:36 +02:00
BPanther
bca0d06e60 yWeb: /control/getchannelinfo changed.
Line 1: servicename
Line 2: epg now
Line 3: epg now duration X/Y
Line 4: epg next


Origin commit data
------------------
Commit: 866fc19dd0
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-04-30 (Tue, 30 Apr 2024)



------------------
This commit was generated by Migit
2024-05-04 09:18:19 +02:00
BPanther
a1ac4f7b95 yWeb: /control/getchannelinfo for short channel info added.
Line 1: servicename
Line 2: epg info
Line 3: duration X/Y


Origin commit data
------------------
Commit: 3498c8c8a6
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-04-30 (Tue, 30 Apr 2024)



------------------
This commit was generated by Migit
2024-05-04 09:15:22 +02:00
vanhofen
14240c3c4a turn some comparsions for a better readability
Origin commit data
------------------
Commit: bee4cb4959
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-03-25 (Mon, 25 Mar 2024)

Origin message was:
------------------
- turn some comparsions for a better readability

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

------------------
This commit was generated by Migit
2024-03-27 07:12:41 +01:00
TangoCash
de27448e44 add option to reload channels via webif without saving first
Origin commit data
------------------
Commit: 0c0a1a1d5f
Author: TangoCash <eric@loxat.de>
Date: 2016-03-25 (Fri, 25 Mar 2016)


Signed-off-by: Thilo Graf <dbt@novatux.de>

Where is this documented?
Making changes to the API without any documentation is quite unpleasant.
Unfortunately, this has happened several times before.
It would be nice if someone could address this issue.

see: ./neutrino/doc/nhttpd/nhttpd_controlapi.html
2024-02-26 12:41:51 +01:00
GetAway
3e6d45b65a 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.
2023-09-14 18:53:26 +02:00
vanhofen
e0f468ffc8 rcinput: try to fix some key handlings 2023-06-18 14:37:57 +02:00
BPanther
1c7527b029 fix y-web streaminfo
Signed-off-by: GetAway <get-away@t-online.de>
2023-05-28 22:20:44 +02:00
GetAway
0cc83d9595 controlapi.cpp: add possibility to get boxinfo 2023-05-26 23:23:54 +02:00
GetAway
be5786eebb controlapi.cpp: fix segfault if the bouquet number passed is less than 0 2023-04-09 16:16:57 +02:00
vanhofen
7a4aaa04ae - neutrinoyparser: add functions to check online update
Signed-off-by: Thilo Graf <dbt@novatux.de>

TODO: Missing documentation
2023-03-18 16:03:35 +01:00
Marc Szymkowiak
6a4d3e0f17 try fix basic auth realm missing quote 2023-02-21 08:56:51 +01:00
vanhofen
73086ffcf3 - neutrinoyparser: remove hardcoded css from func_get_bouquets_with_epg() 2023-02-20 11:02:23 +01:00
vanhofen
4cb74815f8 - controlapi: fix filename in GlcdScreenshotCGI() 2023-02-19 19:45:09 +01:00
Hendi
a836debc94 Fix array sizes that GCC 12 complains about (mostly sprintf) 2023-01-27 20:38:19 +01:00
vanhofen
d9f7525b95 Revert "introduce hdmi_cec to driver"
This reverts commit c8a58afe2feb95954a69e681a4234cd9c1a3f178 and the following hdmi_cec commits.

 Conflicts:
	src/neutrino.cpp
2023-01-05 16:05:36 +01:00
TangoCash
47727e504a introduce hdmi_cec to driver
Conflicts:
	data/locale/deutsch.locale
	src/driver/Makefile.am
	src/neutrino.cpp
	src/system/locals.h
	src/system/locals_intern.h
2023-01-05 16:05:36 +01:00
vanhofen
9ed28f71da - yhook: try to fix quotation marks in epg titles 2023-01-05 16:05:36 +01:00
TangoCash
53828f6a74 rework streaming part3 2023-01-05 16:05:35 +01:00
max_10
0b4820e931 - controlapi: fix commit minor alignments to TangoCashs repo 2022-11-07 21:22:46 +01:00
Thilo Graf
ccf604cc8e yWeb: rework for basic functionality
Based on the last changes by svenhoefer
2022-11-07 21:22:45 +01:00
Thilo Graf
38b29d3c0e neutrinoyparser.cpp, tuxboxapi: avoid possible crashes without g_bouquetManager instance
This was observed without physical frontends and in certain
circumstances while using the web interface, e.g. if users are
using bouquet functionalities.
2022-11-07 21:22:45 +01:00
svenhoefer
f86f5a0586 - controlapi: minor alignments to TangoCashs repo
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-11-07 21:21:38 +01:00
TangoCash
593003c241 - nhttpd: add option to appent to file in write_to_file() 2022-11-07 21:21:38 +01:00
svenhoefer
edea36b9b4 - controlapi: fix and simplify RC_DEVICE defines
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-09-18 15:16:40 +02:00
svenhoefer
45d0a0558c - add multibox
Signed-off-by: Thilo Graf <dbt@novatux.de>

# Conflicts:
#	src/neutrino.cpp
2022-09-16 22:47:14 +02:00
svenhoefer
afe23e002b - controlapi: add mode_moviebrowser to GetModeCGI()
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-09-15 05:28:56 +02:00
Thilo Graf
693eec1a95 controlapi.cpp: fix NeutrinoModes::mode_webradio) 2022-09-14 10:16:12 +02:00
svenhoefer
b33141cdfe - nhttpd: remove ununsed ZAPITXMLPATH
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-09-12 20:13:01 +02:00
svenhoefer
aa35ec0aee - neutrinoapi: fix getVideoFramerateAsString()
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-09-12 20:12:58 +02:00
GetAway
b43f907309 - yconfig.h: add mime-type m3u8:application/x-mpegURL
- fix some others
2022-02-11 08:12:26 +01:00
max_10
8c915c04c2 - neutrinoapi.cpp: replace /tmp/neutrino.sock with NEUTRINO_UDS_NAME 2021-11-15 09:30:39 +01:00
TangoCash
d918e6c517 add neutrino restart to webif
Signed-off-by: GetAway <get-away@t-online.de>
2021-11-08 21:57:24 +01:00
Jacek Jendrzej
4a23e0cdf2 some inits 2021-10-22 14:25:37 +02:00
svenhoefer
08ee186b19 - introduce configurable ZAPITDIR
Conflicts:
	data/config/settingsupdate.conf.in

Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-20 09:22:20 +02:00
svenhoefer
a6aebded5f - add LUAPLUGINDIR_VAR
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-24 10:19:09 +02:00
max_10
039c25db15 - tuxboxapi: fix compiler warning
Conflicts:
	src/nhttpd/tuxboxapi/neutrinoyparser.cpp
2021-09-20 19:51:42 +02:00
TangoCash
1c88cc8b2a add simple Webif for WebTV WebRadio and xmltv
Conflicts:
	data/y-web/languages/Deutsch
	data/y-web/languages/English
2021-09-10 17:14:27 +02:00
TangoCash
b74e0aeb6a add support for embedded epg-url in m3u 2021-09-10 17:00:29 +02:00
svenhoefer
c5c635c7a7 - add Maxytec Multibox SE 4K
Conflicts:
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-05-30 16:46:13 +02:00
BPanther
f841b55c65 vuduo4k/vuduo4kse/vuultimo4k/vuuno4kse: HDMI input as mode and PiP added
Conflicts:
	src/neutrino.cpp
2021-05-11 10:21:06 +02:00
svenhoefer
cf67ca4cb6 - try to fix path to /.version file
Conflicts:
	src/gui/imageinfo.cpp
	src/gui/network_setup.cpp
	src/nhttpd/tuxboxapi/controlapi.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-12-07 20:34:25 +01:00
svenhoefer
ea64294d6a - addition to 668b65aa89d2fbe50cf8bb35545183661393981e
Signed-off-by: Thilo Graf <dbt@novatux.de>

commit was: - arm-hardware: set default osd resolution to 1080
9f5a661336569dec4b564cfb82926af00c5d640e
2020-12-07 20:34:25 +01:00
max_10
fa91372706 - AZBOX: deleted 2020-10-04 16:45:08 +02:00
svenhoefer
d29c98d7d5 - rename HAVE_COOL_HARDWARE => HAVE_CST_HARDWARE
Conflicts:
	src/driver/rcinput.cpp
	src/gui/info_menue.cpp
	src/gui/mediaplayer.cpp
	src/gui/movieplayer.cpp
	src/zapit/src/frontend.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-09-08 11:13:51 +02:00
GetAway
3c5ce45c46 controlapi.cpp: remove deprecated ftime(), use helpers 2020-07-08 10:15:41 +02:00
GetAway
ff40921ed8 mod_yparser.cpp: fix warning misleading-indentation 2020-07-06 13:20:36 +02:00
GetAway
8ae11ff025 mod_yparser.cpp: fix compare and writing vars 2020-07-06 11:55:38 +02:00