aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/w_scan_cpp/README5
-rw-r--r--multimedia/w_scan_cpp/lcn.diff19
-rw-r--r--multimedia/w_scan_cpp/w_scan_cpp.SlackBuild6
3 files changed, 28 insertions, 2 deletions
diff --git a/multimedia/w_scan_cpp/README b/multimedia/w_scan_cpp/README
index 886c37804c..8325e90bf3 100644
--- a/multimedia/w_scan_cpp/README
+++ b/multimedia/w_scan_cpp/README
@@ -9,3 +9,8 @@ It uses (and therefore links to and includes part of)
https://www.gen2vdr.de/wirbel/wirbelscan/index2.html
4. librepfunc
https://github.com/wirbel-at-vdr-portal/librepfunc
+
+adds optional LCN to channel names (channels.conf: mplayer/vdr/xine)
+LCN=yes ./w_scan_cpp.SlackBuild
+so that, if you want the channels sorted by LCN, you can run
+w_scan_cpp -c IT -X | sort > channels.conf
diff --git a/multimedia/w_scan_cpp/lcn.diff b/multimedia/w_scan_cpp/lcn.diff
new file mode 100644
index 0000000000..d55f9ded54
--- /dev/null
+++ b/multimedia/w_scan_cpp/lcn.diff
@@ -0,0 +1,19 @@
+--- OutputFormats.cpp.orig 2023-10-15 11:47:37.000000000 +0200
++++ OutputFormats.cpp 2025-09-12 15:48:12.584775148 +0200
+@@ -219,6 +219,16 @@
+ std::stringstream ss;
+
+ for(auto c:UniqueChannels(List)) {
++ ss << "LCN.";
++ if(c.LCN != -1) {
++ int t = ss.width(4); ss.fill('0');
++ ss << c.LCN;
++ if(c.LCN_minor != -1)
++ ss << "." << c.LCN_minor;
++ ss.width(t), ss.fill(' ');
++ } else ss << "----";
++ ss << "-";
++
+ if (c.Name.empty())
+ ss << "???";
+ else
diff --git a/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild b/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild
index b3a14880a7..975965d3c3 100644
--- a/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild
+++ b/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild
@@ -29,7 +29,7 @@ VERSION=${VERSION:-20231015}
VERSION_vdr=${VERSION_vdr:-2.7.7}
VERSION_satip=${VERSION_satip:-2.4.1}
VERSION_wirbelscan=${VERSION_wirbelscan:-2024.09.15}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -94,7 +94,9 @@ find -L . \
# Fix
sed "s/satip.h/satip.c/" -i Library.cpp
-sed "/ParseLCN/s/false/true/" -i vdr/PLUGINS/src/wirbelscan/common.cpp
+
+# adds optional LCN to channel names (channels.conf: mplayer/vdr/xine)
+[ "${LCN:-no}" != "no" ] && patch -p0 -i $CWD/lcn.diff
CFLAGS="$SLKCFLAGS -z muldefs" \
CXXFLAGS="$SLKCFLAGS -z muldefs" \