NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 36 37 38 39 40 … 46 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: 466
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
Online

Administrator

NextPVR HQ, New Zealand
Posts: 107,792
Threads: 778
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
Online

Administrator

NextPVR HQ, New Zealand
Posts: 107,792
Threads: 778
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: 466
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
  Automatic Recording Cleanup weavol 2 147 2026-05-25, 06:30 PM
Last Post: mvallevand
  Odd recording ceejayemm 3 674 2025-11-30, 09:06 PM
Last Post: mvallevand
  Recording Auto Transcode VCR58 10 4,490 2025-11-07, 04:16 AM
Last Post: mvallevand
  No recording after Windows 11 Update Remleym 34 4,920 2025-10-19, 04:44 PM
Last Post: mvallevand
  Daily Recording type Fails to Record Fillimerica 13 1,763 2025-10-15, 03:22 PM
Last Post: mvallevand
  Recording interrupted The1nOnlyHMatt 5 1,318 2025-10-10, 05:39 PM
Last Post: mvallevand
  Recording Calendar View thartmann6 4 1,516 2025-08-15, 01:01 AM
Last Post: thartmann6
  Recording from the point you switch channels rather than when you press record Swindiff 2 1,720 2025-05-05, 12:30 PM
Last Post: Swindiff
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 3,123 2025-05-04, 02:21 PM
Last Post: mvallevand
  Keeping users recording separate Swindiff 2 1,215 2025-05-02, 07:47 PM
Last Post: Swindiff

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

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

Linear Mode
Threaded Mode