NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 33 34 35 36 37 … 43 Next »
PostProcessing.sh Fails if Recording Has Single Quote in Name

 
  • 0 Vote(s) - 0 Average
PostProcessing.sh Fails if Recording Has Single Quote in Name
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#1
2020-05-13, 05:35 PM
OK, some of this is on me, and I can probably work around this, but I noticed today after 3 times trying to record Ender's Game from my analog encoder that there appears to be a bug in the way movies are being named (specifically their enclosed folder).

I've attached my logs.  The pertinent part is at 06:13 on 05/13/2020.  You can see that the recording for Ender's Game starts, and at some point NextPVR decides it should use Enders.Game.(2013).ts as the file name, but it continues to use the DIRECTORY name of Ender's Game (2013).  That causes ParallelProcessing.sh to fail with the following error:

bash: -c: line 0: syntax error near unexpected token `('

That's a problem for me because my channel blaster script uses ParallelProcessing.sh to help make sure the recording is actually working (and turn on the cable box if it isn't).  I can obviously code around this on my end by assuming the recording is fine unless I get absolute confirmation it isn't, but it seems like the folder name needs to be renamed (or at least single quote escaped in the bash call) to avoid this issue.

BTW, I've posted this in the general area because it likely affects both Docker and Linux (not as sure about Windows).  I happen to be using Docker in my case.


Attached Files
.zip   logs-20200513-0726.zip (Size: 1.67 MB / Downloads: 2)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,684
Threads: 767
Joined: Nov 2003
#2
2020-05-13, 06:25 PM
My linux escaping is a little rusty... maybe someone can help me out?

It's currently running:
Code:
bash -c "'/config/scripts/ParallelProcessing.sh' '/recordings/Movies/Ender's Game (2013)/Enders.Game.(2013).ts' 1675 7757 25 'Ender'\''s Game'"

Should it be running:
Code:
bash -c "'/config/scripts/ParallelProcessing.sh' '/recordings/Movies/Ender'\''s Game (2013)/Enders.Game.(2013).ts' 1675 7757 25 'Ender'\''s Game'"
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,684
Threads: 767
Joined: Nov 2003
#3
2020-05-13, 06:27 PM
Assuming that lower code snippet is correct, I think I've fixed it for the next build.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#4
2020-05-14, 12:31 AM
It looks like that will work. I ran it manually in my Docker container and got back:

NEXTPVR_INSTALLDIR /app/
NEXTPVR_DATADIR /app/data/
NEXTPVR_DATADIR_USERDATA /config/
Not recording

Which is much better than the error I get if I paste the original into my container shell.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording from the point you switch channels rather than when you press record Swindiff 2 231 2025-05-05, 12:30 PM
Last Post: Swindiff
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 300 2025-05-04, 02:21 PM
Last Post: mvallevand
  Keeping users recording separate Swindiff 2 235 2025-05-02, 07:47 PM
Last Post: Swindiff
  Recurring recording creates multiple recordings of same event txinga 2 360 2025-03-29, 12:33 AM
Last Post: txinga
  Recording Auto Transcode VCR58 8 1,731 2025-02-18, 12:45 AM
Last Post: mvallevand
  Automated placement based on recording type? ehfortin 6 572 2024-12-28, 11:50 PM
Last Post: spin35
  HDHR Tuner not released after recording since update to 7.0.0 spin35 1 350 2024-12-24, 01:46 PM
Last Post: mvallevand
  Cannot seek live recording, v7.0.0.241105 pulley 6 680 2024-11-17, 09:58 PM
Last Post: mvallevand
  [Failed: Recording service not running at recording time] Poocher 17 1,385 2024-10-14, 11:14 PM
Last Post: Poocher
  Why are my recordings not recording completely? Luisy44 6 892 2024-10-12, 07:01 PM
Last Post: Luisy44

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

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

Linear Mode
Threaded Mode