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 … 30 31 32 33 34 Next »
PostProcessing.sh and a ' in Show Name

 
  • 0 Vote(s) - 0 Average
PostProcessing.sh and a ' in Show Name
tjzi422xlk
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Oct 2015
#1
2019-09-27, 02:26 AM
I had a problem with calling PostProcessing.sh for a show that has a ' in the title. I've pasted the log lines from when PostProcessing was called:

2019-09-26 21:00:00.361 [DEBUG][8] Starting: bash -c "'/var/opt/nextpvr/scripts/PostProcessing.sh' '/mnt/NextPVR/Recordings/Carols Second Act/Season 01/Carols Second Act.S01E01.Pilot.ts' 12 1946 21 'Carol's Second Act'"
2019-09-26 21:00:00.375 [ERROR][82] bash: -c: line 0: unexpected EOF while looking for matching `''
2019-09-26 21:00:00.376 [ERROR][82] bash: -c: line 1: syntax error: unexpected end of file

Looks like the last argument being passed(show name?) is causing the problem. I seem to remember there was a fix earlier for something like this and the show name does not contain the ' in the file name, so maybe that's what I was thinking of.

Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#2
2019-09-27, 02:49 AM
Are you running the current version which posting logs would have shown? I know I pointed this out to sub before.

Martin
geniepro
Offline

Junior Member

Posts: 6
Threads: 3
Joined: Sep 2019
#3
2019-09-27, 06:47 PM
Yes, the issue happens in the latest build as well - I use the docker version
donbrew
Offline

Member

Posts: 120
Threads: 22
Joined: Mar 2014
#4
2019-09-27, 09:44 PM
Why not use the pass "#1" with quotes
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#5
2019-09-27, 10:28 PM
The problem is the bash command sub submits fails so the script cannot fix it. I guess a fix didn't make the last build.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2019-09-28, 08:57 PM
mvallevand Wrote:The problem is the bash command sub submits fails so the script cannot fix it. I guess a fix didn't make the last build.
It did make into the build, and covered several characters, but didn't happen to include single quote character, which needed to be handled differently than the other special characters anyway.

There is a fix for single quote character in the next build.
tjzi422xlk
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Oct 2015
#7
2019-10-06, 02:01 PM
I updated to 5.0.0.191006 and it looks like there is still a problem with a single quote in the show name.
There is a post about a problem with the install - I got around it by downloading the NPVR.zip separately and copying it to the /tmp directory.

Here is the portion of the log where I tested a recording:

2019-10-06 08:30:00.289 [DEBUG][8] Starting: bash -c "'/var/opt/nextpvr/scripts/PostProcessing.sh' '/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts' 671 2529 21 $'Mister Rogers' Neighborhood'"
2019-10-06 08:30:00.301 [ERROR][56] bash: -c: line 0: unexpected EOF while looking for matching `''
2019-10-06 08:30:00.301 [ERROR][56] bash: -c: line 1: syntax error: unexpected end of file

I did a little testing and it looks like something like this will work:

bash -c "'/var/opt/nextpvr/scripts/PostProcessing.sh' '/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts' 671 2529 21 $'Mister Rogers\' Neighborhood'"

Thanks
tjzi422xlk
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Oct 2015
#8
2019-10-06, 02:31 PM
I did some more testing and it looks like this might be the answer and still preserve the single quote:

bash -c "'/var/opt/nextpvr/scripts/PostProcessing.sh' '/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts' 671 2529 21 'Mister Rogers'\'' Neighborhood'" - note, it is single quote,backslash,single quote,single quote after Rogers - it's hard to see.

In my PostProcessing script I echo'd the $1 $2 $3 $4 $5 variables and this is the output:

/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts 671 2529 21 Mister Rogers' Neighborhood
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#9
2019-10-06, 02:46 PM (This post was last modified: 2019-10-07, 01:18 PM by mvallevand.)
(2019-10-06, 02:01 PM)tjzi422xlk Wrote: I updated to 5.0.0.191006  and it looks like there is still a problem with a single quote in the show name.

If you updated with the deb installer note that it is currently not doing any updates.  https://forums.nextpvr.com/showthread.php?tid=59830

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#10
2019-10-07, 01:21 PM
I can confirm that this is still an issue with the latest build

Code:
2019-10-07 09:18:09.444    [DEBUG][8]    Starting: bash -c "'/var/opt/nextpvr/scripts/ParallelProcessing.sh' '/home/martin/recordings/Milo Murphys Law/Season 01/Milo Murphys Law.S01E03.Rooting for the Enemy; Sunny Side Up.ts' 228 21755 1550 $'Milo Murphy's Law'"
2019-10-07 09:18:09.472    [ERROR][64]    bash: -c: line 0: unexpected EOF while looking for matching `''
2019-10-07 09:18:09.472    [ERROR][64]    bash: -c: line 1: syntax error: unexpected end of file

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  One show 'interrupted' twice SteveCos 0 303 2025-02-11, 09:03 AM
Last Post: SteveCos
  Attachments don't show up in posts. WagMan 2 360 2024-11-02, 04:32 AM
Last Post: WagMan
  Folder location PostProcessing.sh with LibreElec retrofan 10 1,504 2024-08-14, 04:44 PM
Last Post: retrofan
  Can't record series for certain show WagMan 9 1,658 2024-08-07, 01:34 AM
Last Post: mminehan
  Failed recording for a particular show spagio 9 1,544 2023-01-12, 12:46 AM
Last Post: mvallevand
  TV Show recording broken into multiple files markosjal 2 1,022 2022-07-09, 04:53 AM
Last Post: markosjal
  Fixed? - PostProcessing - NScriptHelper.dll rename failed following 5.2.1 upgrade lostboy 9 2,311 2021-10-26, 05:42 PM
Last Post: sub
  PostProcessing help VCR58 4 1,588 2021-08-31, 04:36 PM
Last Post: pkscout
  Download of recorded show fails (due to å?) ukmoose 2 1,188 2021-03-01, 10:44 AM
Last Post: ukmoose
  Rewind recorded show VCR58 2 1,318 2020-04-23, 04:26 AM
Last Post: VCR58

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

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

Linear Mode
Threaded Mode