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 2 3 4 5 … 27 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: 46,156
Threads: 874
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
  Scan gives only a few channels steadyState 11 246 2023-02-25, 02:59 PM
Last Post: mvallevand
  Cannot view DVB-S channels Heifer 11 306 2023-02-01, 10:53 PM
Last Post: Heifer
  Unable to scan the channels to my region NinthWave 2 144 2023-01-25, 02:24 AM
Last Post: NinthWave
  RTP Protocol - channels not showing OBE 5 288 2022-11-16, 09:19 AM
Last Post: OBE
  IPTV channels not working after network changes spagio 11 386 2022-10-19, 05:41 PM
Last Post: sub
  Remove channels Mithrandir 6 366 2022-09-26, 07:16 AM
Last Post: sub
  [Solved] Black/black screen with audio when trying to watch HD channels on pi spleencheesemonkey 11 710 2022-07-16, 02:14 PM
Last Post: mvallevand
  Several IPTV Channels Fail To Play yuljk 13 793 2022-07-02, 08:29 PM
Last Post: yuljk
  Why do some channels have wrong or no icons? markosjal 6 466 2022-05-24, 10:37 AM
Last Post: mvallevand
  channels renumbered when ONE channel is added? markosjal 1 264 2022-05-22, 01:05 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode