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 … 9 10 11 12 13 … 34 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: 52,823
Threads: 954
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
  No DVB-T channels found Steu851 3 243 2025-05-03, 04:37 PM
Last Post: Steu851
  NextPVR can't open RAI (Italian main TV channels) links f2fg 17 2,940 2025-03-29, 10:15 AM
Last Post: alice_anto
  Downloaded VOD cannot skip ahead/FF/RW/RESUME SysAdminZ 95 2,214 2025-03-28, 01:55 AM
Last Post: mvallevand
  Server crash changing channels VCR58 7 530 2025-03-27, 03:17 PM
Last Post: VCR58
  complete scanning of channels not possible evil666 84 3,476 2024-12-21, 05:58 PM
Last Post: mvallevand
  deleting channels Linox 7 480 2024-12-01, 12:27 PM
Last Post: Linox
  no epg in many channels alda 20 1,343 2024-11-29, 03:14 AM
Last Post: sub
  Scanning Channels Failure how 13 974 2024-09-21, 11:44 PM
Last Post: how
  Lots of channels no TV and No EPG (Freesat over SAT>IP) Morrisimo 175 20,028 2024-02-21, 11:13 AM
Last Post: PaulMc
  One tuner gets fewer channels, will it get used first? WagMan 3 628 2023-12-09, 11:15 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