NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 13 14 15 16 17 … 38 Next »
Skip ParallelProcessing.sh on all BBC channels

 
  • 0 Vote(s) - 0 Average
Skip ParallelProcessing.sh on all BBC channels
TokenVideo22
Offline

Junior Member

UK
Posts: 2
Threads: 1
Joined: Nov 2022
#1
2022-11-25, 03:43 PM
Is there a way of preventing ParallelProcessing.sh from executing if the channel name contains "BBC"?
There are no adverts on BBC channels and running comskip can cause spurious advert breaks to be detected which then interrupts the recording playback flow.
The channel name is not passed as a CLI parameter, so wondered if there was another approach?

Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,799
Threads: 998
Joined: May 2006
#2
2022-11-25, 04:00 PM
You would need to use channel number or channel oid to do that https://github.com/sub3/NextPVR/wiki/Scripts

Martin
TokenVideo22
Offline

Junior Member

UK
Posts: 2
Threads: 1
Joined: Nov 2022
#3
2022-12-03, 05:40 PM
Came up with a workaround.

With SQlite3 installed you can query the "Channels" table in the npvr.db3 database to ascertain if the recording's channel number has BBC in the associated channel name. If it doesn't, the comskip process executes, otherwise it gets skipped and ParallelProcessing.sh exits

#!/bin/bash
IsBBC=`sqlite3 /var/opt/nextpvr/npvr.db3 "SELECT name FROM CHANNEL where number = $2 AND name like '%BBC%';"`

if [ -z "$IsBBC" ] # if result is blank
then
echo "This is not a BBC show, executing comskip..."
/usr/bin/nice -n 19 /usr/bin/comskip --ini=/etc/comskip.ini "$1" > /var/opt/nextpvr/logs/"comskip-${5}.log"

else

# Result wasn't blank, channel name contained 'BBC'
echo BBC recording skipped > /var/opt/nextpvr/logs/"comskip-${5}.log"
fi
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't Scan for Channels Fedora 44 VAman 15 1,104 2026-09-10, 03:19 AM
Last Post: mvallevand
  Record playback manual skip ahead problem RAK 4 482 2026-08-23, 03:03 AM
Last Post: mvallevand
  DVB-S2 scan succeeds, channels save to DB correctly, but playback fails Nzbaxterman 15 1,085 2026-08-21, 09:17 PM
Last Post: mvallevand
  Updating device and guide channels Jack_Burton505 13 1,137 2026-08-03, 10:53 PM
Last Post: Jack_Burton505
  DVB-C DeviceHost cannot tune channels on Raspberry Pi 5 dino0206 4 670 2026-07-05, 10:59 PM
Last Post: dino0206
  SAT>IP server channels not found festinalente 10 1,244 2026-06-10, 01:44 PM
Last Post: mvallevand
  Increase scan channels timeout? webby2023 8 946 2026-06-01, 11:00 PM
Last Post: webby2023
  channel scan does not find some channels htpc_tom 13 1,931 2026-05-11, 03:57 PM
Last Post: htpc_tom
  Server working as normal but DVB-S scan finds No channels jcjefferies 6 1,042 2026-04-27, 08:39 PM
Last Post: mvallevand
  No DVB-T channels found Steu851 7 2,804 2025-09-26, 05:06 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode