Skip to content

Commit

Permalink
Merge pull request MarkusEh#8 from tmn505/pls
Browse files Browse the repository at this point in the history
Various improvements
  • Loading branch information
MarkusEh authored May 22, 2021
2 parents 375d8f3 + 665f6fa commit 8db400b
Show file tree
Hide file tree
Showing 20 changed files with 73 additions and 40 deletions.
Binary file added live/img/playlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions pages/multischedule.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ std::vector<time_t> times_start;
</%cpp>
<td> <div class="boxheader"> <div> <div><$ channel_names[channel] $> <# reply.sout() automatically escapes special characters to html entities #>
<& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_IDs[channel]) image="zap.png" alt="" &>
<& pageelems.hls_channel channelId=(channel_IDs[channel]) &>
<& pageelems.m3u_playlist_channel channelId=(channel_IDs[channel]) &>
</div></div> </div></td>
<td class="time spacer"> &nbsp; </td>
Expand Down
31 changes: 27 additions & 4 deletions pages/pageelems.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int update_status(1);

<%def logo>
<!-- start of fixed page header -->
<div id="header" style="width: 100%; z-index: 1; background-color: white">
<div id="header" style="width: 100%; z-index: 1; background-color: inherit">
<div id="padding" style="display: none"></div>
<div id="content">
<!-- header content follows -->
Expand Down Expand Up @@ -111,7 +111,7 @@ int update_status(1);

<# ---------------------------------------------------------------------- #>

<%def m3u_playlist_channel>
<%def hls_channel>
<%args>
string channelId;
</%args>
Expand All @@ -126,6 +126,27 @@ if (LiveSetup().GetUseStreamdev() && LiveFeatures<features::streamdev_server>().

<# ---------------------------------------------------------------------- #>

<%def m3u_playlist_channel>
<%args>
string channelId;
</%args>
<%cpp>
if (LiveSetup().GetUseStreamdev() && LiveFeatures<features::streamdev_server>().Loaded()) {
#if TNTVERSION >= 30000
</%cpp>
<a href="playlist.m3u?channel_str=<$ channelId $>"><img src="<$ LiveSetup().GetThemedLink("img", "playlist.png") $>" alt="" <& tooltip.hint text=(tr("Stream this channel into media player.")) &>></img></a>
<%cpp>
#else
</%cpp>
<a href="playlist.m3u?channel=<$ channelId $>"><img src="<$ LiveSetup().GetThemedLink("img", "playlist.png") $>" alt="" <& tooltip.hint text=(tr("Stream this channel into media player.")) &>></img></a>
<%cpp>
#endif
}
</%cpp>
</%def>

<# ---------------------------------------------------------------------- #>

<%def m3u_playlist_recording>
<%args>
string recid;
Expand All @@ -134,7 +155,7 @@ if (LiveSetup().GetUseStreamdev() && LiveFeatures<features::streamdev_server>().
<%cpp>
#if TNT_WATCHDOG_SILENCE
{
</%cpp><a href="playlist.m3u?recid=<$ recid $>"><img src="<$ LiveSetup().GetThemedLink("img", "stream_button.png") $>" alt="" <& tooltip.hint text=(tr("Stream this recording into media player.")) &>></img> <$ linkText $></a>
</%cpp><a href="playlist.m3u?recid=<$ recid $>"><img src="<$ LiveSetup().GetThemedLink("img", "playlist.png") $>" alt="" <& tooltip.hint text=(tr("Stream this recording into media player.")) &>></img> <$ linkText $></a>
<%cpp>
}
#endif
Expand Down Expand Up @@ -294,6 +315,7 @@ if (LiveSetup().GetUseStreamdev() && LiveFeatures<features::streamdev_server>().
}
if ((duration == 0) || (elapsed >= 0)) {
</%cpp>
<& pageelems.hls_channel channelId=(channelId) &>
<& pageelems.m3u_playlist_channel channelId=(channelId) &>
<%cpp>
}
Expand All @@ -308,7 +330,8 @@ if (LiveSetup().GetUseStreamdev() && LiveFeatures<features::streamdev_server>().
<td class="action leftcol <? lastCurrentChanel ? "bottomrow"?>"><& pageelems.event_timer epgid=(epgid) &></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>"><& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channelId) image="zap.png" alt="" &></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>"><%cpp>if (LiveFeatures<features::epgsearch>().Recent() && eventId != 0) { </%cpp><a href="searchresults.html?searchplain=<$ StringUrlEncode(title) $>"><img src="<$ LiveSetup().GetThemedLink("img", "search.png") $>" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a><%cpp> } else { </%cpp><img src="img/transparent.png" width="16" height="16"><%cpp> } </%cpp></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>"><%cpp>if ((duration == 0) || (elapsed > 0)) { </%cpp><& pageelems.m3u_playlist_channel channelId=(channelId) &><%cpp> } else { </%cpp><img src="img/transparent.png" width="16" height="16"><%cpp> } </%cpp></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>"><%cpp>if ((duration == 0) || (elapsed > 0)) { </%cpp><& pageelems.hls_channel channelId=(channelId) &><%cpp> } </%cpp></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>"><%cpp>if ((duration == 0) || (elapsed > 0)) { </%cpp><& pageelems.m3u_playlist_channel channelId=(channelId) &><%cpp> } </%cpp></td>
<td class="action <? lastCurrentChanel ? "bottomrow"?>">
<%cpp>
if (eventId != 0) {
Expand Down
7 changes: 6 additions & 1 deletion pages/playlist.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ using namespace vdrlive;
</%pre>
<%args>
tChannelID channel;
string channel_str;
string recid;
</%args>
<%session scope="global">
Expand All @@ -20,6 +21,10 @@ using namespace vdrlive;
</%request>
<%include>page_init.eh</%include>
<%cpp>
#if TNTVERSION >= 30000
channel = channel.FromString(channel_str.c_str()); // Tntnet30: get struct channel from parameter string
#endif

if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
if (!cUser::CurrentUserHasRightTo(UR_STARTREPLAY))
throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
Expand All @@ -45,7 +50,7 @@ using namespace vdrlive;
string server = request.getHost();
server = server.substr(0, server.rfind(':'));
string videourl;
reply.setContentType("application/vnd.apple.mpegurl");
reply.setContentType("audio/x-mpegurl");
if (Channel != 0) {
string channelname = Channel->Name();
int streamdevPort = LiveSetup().GetStreamdevPort();
Expand Down
1 change: 1 addition & 0 deletions pages/schedule.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ if(recItemFound) {
<label for="channel"><$ tr("Channel") $>:&nbsp;<span class="bold"><$ std::to_string(Channel->Number()) $></span></label>
<& channels_widget name=("channel") selected=(Channel ? *Channel->GetChannelID().ToString() : "") onchange=("document.forms.channels.submit()") &>
<& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(Channel->GetChannelID()) image="zap.png" alt="" &>
<& pageelems.hls_channel channelId=(Channel->GetChannelID()) &>
<& pageelems.m3u_playlist_channel channelId=(Channel->GetChannelID()) &>
</span>
</form>
Expand Down
2 changes: 1 addition & 1 deletion pages/setup.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ if (!cUser::CurrentUserHasRightTo(UR_EDITSETUP))
</td>
</tr>
<tr>
<td class="label leftcol"><div class="withmargin"><$ tr("mark new recordings") $>:</div></td>
<td class="label leftcol"><div class="withmargin"><$ tr("Mark new recordings") $>:</div></td>
<td class="rightcol">
<input type="checkbox" name="markNewRec" id="markNewRec" value="1" <%cpp> CHECKIF(!markNewRec.empty()); </%cpp>/>
</td>
Expand Down
2 changes: 1 addition & 1 deletion pages/stream.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ using namespace vdrlive;
});
</script>
</div>
</center>
<%cpp>
dsyslog("vdrlive::stream: generating EPG info");
const cSchedule *Schedule = NULL;
Expand Down Expand Up @@ -190,6 +189,7 @@ string longDescription = StringEscapeAndBreak(StringWordTruncate(epgEvent->LongD
</td>
</tr>
</table>
</center>
%} // if (Event)
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion pages/whats_on.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if (type == "now") {
% if (mode == "list") {
<table class="listing" cellspacing="0" cellpadding="0">
<tr class="head">
<td colspan="8"><div class="boxheader"><div><div><$ head $></div></div></div></td>
<td colspan="9"><div class="boxheader"><div><div><$ head $></div></div></div></td>
</tr>
% }
<%cpp>
Expand Down
2 changes: 1 addition & 1 deletion po/cs_CZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ msgstr ""
msgid "Streamdev stream type"
msgstr "Streamdev typ streamu"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
4 changes: 2 additions & 2 deletions po/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ msgstr "Streamdev Server Port"
msgid "Streamdev stream type"
msgstr "Streamdev Stream Typ"

msgid "mark new recordings"
msgstr "markiere neue Aufnahmen"
msgid "Mark new recordings"
msgstr "Markiere neue Aufnahmen"

msgid "Add links to IMDb"
msgstr "Füge Links zur IMDb hinzu"
Expand Down
2 changes: 1 addition & 1 deletion po/es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ msgstr "Puerto del servidor streamdev"
msgid "Streamdev stream type"
msgstr "Tipo de stream de streamdev"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/fi_FI.po
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ msgstr "Streamdev-palvelimen portti"
msgid "Streamdev stream type"
msgstr "Streamdev-lähetteen tyyppi"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ msgstr "Port du serveur streamdev"
msgid "Streamdev stream type"
msgstr "Type du serveur streamdev"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ msgstr "Porta server Streamdev"
msgid "Streamdev stream type"
msgstr "Tipo trasmissione Streamdev"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/lt_LT.po
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ msgstr "Streamdev serverio prievadas"
msgid "Streamdev stream type"
msgstr "Streamdev serverio tipas"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/nl_NL.po
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ msgstr ""
msgid "Streamdev stream type"
msgstr ""

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
43 changes: 23 additions & 20 deletions po/pl_PL.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# Copyright (C) 2007 LIVE Development team. See http://live.vdr-developer.org
# This file is distributed under the same license as the VDR-LIVE package.
# Robert Polak <[email protected]>, 2011
# Tomasz Maciej Nowak <[email protected]>, 2019
# Tomasz Maciej Nowak <[email protected]>, 2019 2021
#
msgid ""
msgstr ""
"Project-Id-Version: VDR-LIVE 0.2.0\n"
"Report-Msgid-Bugs-To: <[email protected]>\n"
"PO-Revision-Date: 2019-03-25 16:12+0100\n"
"PO-Revision-Date: 2021-05-12 19:42+0200\n"
"Last-Translator: Tomasz Maciej Nowak <[email protected]>\n"
"Language-Team: see developers in README\n"
"Language: pl_PL\n"
Expand Down Expand Up @@ -180,7 +180,7 @@ msgid "Wrong username or password"
msgstr "Błędna nazwa lub hasło użytkownika"

msgid "Login"
msgstr "Nazwa"
msgstr "Logowanie"

msgid "VDR Live Login"
msgstr "Login VDR Live"
Expand Down Expand Up @@ -247,7 +247,7 @@ msgid "What's on"
msgstr "Audycje"

msgid "Details view"
msgstr "Widek szczegółowy"
msgstr "Widok szczegółowy"

msgid "List view"
msgstr "Widok listy"
Expand All @@ -256,7 +256,7 @@ msgid "Find more at the Internet Movie Database."
msgstr "Szukaj w IMDb.com"

msgid "Stream this channel into browser."
msgstr ""
msgstr "Oglądaj kanał w przeglądarce"

msgid "Stream this recording into media player."
msgstr "Oglądaj nagranie w odtwarzaczu multimediów"
Expand Down Expand Up @@ -386,16 +386,19 @@ msgid "Project Idea"
msgstr "Pomysł projektu"

msgid "Webserver"
msgstr ""
msgstr "Serwer HTTP"

msgid "Current Maintainer"
msgstr "Obecny opiekun"

msgid "Previous Maintainer"
msgstr "Poprzedni opiekun"

msgid "Project leader"
msgstr "Lider projektu"

msgid "Content"
msgstr "Zawrtość"
msgstr "Zawartość"

msgid "Graphics"
msgstr "Grafika"
Expand Down Expand Up @@ -440,7 +443,7 @@ msgid "Recordings"
msgstr "Nagrania"

msgid "Web-Streaming"
msgstr ""
msgstr "Oglądanie"

msgid "Logout"
msgstr "Wyloguj"
Expand Down Expand Up @@ -530,7 +533,7 @@ msgid "Title"
msgstr "Tytuł"

msgid "Server"
msgstr ""
msgstr "Serwer"

msgid "Directory"
msgstr "Katalog"
Expand Down Expand Up @@ -794,7 +797,7 @@ msgid "Timer is active."
msgstr "Timer jest aktywny."

msgid "Toggle timer active/inactive"
msgstr "Aktywuj/deaktywuj timer."
msgstr "Aktywuj/deaktywuj timer"

msgid "Delete timer"
msgstr "Usuń timer"
Expand Down Expand Up @@ -830,25 +833,25 @@ msgid "Allow video streaming"
msgstr "Zezwól na streamowanie strumienia video"

msgid "Web-Streaming h264"
msgstr ""
msgstr "Parametry HLS dla AVC (H.264)"

msgid "Web-Streaming HEVC"
msgstr ""
msgstr "Parametry HLS dla HEVC (H.265)"

msgid "Web-Streaming MPEG2"
msgstr ""
msgstr "Parametry HLS dla MPEG2 (H.262)"

msgid "Web-Streaming others"
msgstr ""
msgstr "Parametry HLS dla innych"

msgid "Streamdev server port"
msgstr "Port serwera Streamdev"

msgid "Streamdev stream type"
msgstr "Typ strumienia Streamdev"

msgid "mark new recordings"
msgstr ""
msgid "Mark new recordings"
msgstr "Oznacz nowe nagrania"

msgid "Add links to IMDb"
msgstr "Pokazuj odnośniki do IMDb"
Expand Down Expand Up @@ -890,7 +893,7 @@ msgid "no current channel!"
msgstr "brak informacji o kanale!"

msgid "error retrieving status info!"
msgstr "błąd podczas odczytu stanu"
msgstr "błąd podczas odczytu stanu!"

msgid "%I:%M:%S %p"
msgstr "%H:%M:%S"
Expand Down Expand Up @@ -944,7 +947,7 @@ msgid "No timer conflicts"
msgstr "Brak kolizji timerów"

msgid "local"
msgstr ""
msgstr "lokalny"

msgid "Timer has a conflict."
msgstr "Timer jest w kolizji."
Expand All @@ -955,5 +958,5 @@ msgstr ""
msgid "No EPG information available"
msgstr "Brak informacji EPG"

#~ msgid "Stream this channel into media player."
#~ msgstr "Oglądaj kanał w odtwarzaczu multimediów"
msgid "Stream this channel into media player."
msgstr "Oglądaj kanał w odtwarzaczu multimediów"
2 changes: 1 addition & 1 deletion po/ru_RU.po
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ msgstr "Streamdev порт"
msgid "Streamdev stream type"
msgstr "Streamdev тип стриминга"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
2 changes: 1 addition & 1 deletion po/sk_SK.po
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ msgstr "Streamdev port servera"
msgid "Streamdev stream type"
msgstr "Typ prúdového videa"

msgid "mark new recordings"
msgid "Mark new recordings"
msgstr ""

msgid "Add links to IMDb"
Expand Down
Loading

0 comments on commit 8db400b

Please sign in to comment.