NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 12 13 14 15 16 … 101 Next »
Special characters in folder/filenames

 
  • 0 Vote(s) - 0 Average
Special characters in folder/filenames
spin35
Offline

Member

Posts: 58
Threads: 15
Joined: Jul 2015
#1
2024-05-25, 06:29 AM
I encountered a problem the other day when I recorded a program that had an exclamation mark in its title.
The recording was fine, but my postprocess.bat didn't like it.

The folder and filenames looked like:
D:\NextPVR_recordings\Bushwacked!\Bushwacked!.S03E03.ext

but the batch file was reading the path as  
D:\NextPVR_recordings\Bushwacked.S03E03.ext and thought that  !\Bushwacked! was a variable.  Clearly it fell over from that point on.

I guess the fix is to copy %1 into a variable and go from there, but my code uses various forms of extended parameters %~dpnx throughout so I'd have to create multiple variables for each form used.
Just wondering if there is a setting somewhere that will force NextPVR to use "Windows_Friendly" characters in folder and filenames like the yt-dlp option :
Code:
--windows-filenames             Force filenames to be Windows-compatible

The other option is to not use Bushwacked! for test recordings in the first place, and to rename the folder and files if it happens again, then run PostProcess manually.
I thought I'd report this as an observation - it's not a serious issue.

Thanks for all the great work.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,838
Threads: 954
Joined: May 2006
#2
2024-05-25, 07:47 AM
The exclamation mark is windows compatible though so perhaps you are using delayed expansion in your script and need to adjust the script?

Martin
spin35
Offline

Member

Posts: 58
Threads: 15
Joined: Jul 2015
#3
2024-05-27, 09:08 AM
Yes, I am using delayed expansion which causes the name to be parsed as a variable name.  Yes, I could adjust the script, but that's a hassle as I'm using For /F loops where I need the variables to be updated.
Happy to just let this slide, as it would be a rare occasion when this problem arises.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVR Windows recordings folder cleanup.... Colincam 21 2,862 2025-04-16, 07:38 PM
Last Post: mvallevand
  Czech characters are displayed incorrectly stanfilmy 17 1,113 2024-12-30, 08:23 AM
Last Post: stanfilmy
  NOT important - imaged recording folder drive to larger drive, same drive letter Prsa01 5 779 2024-03-22, 02:15 PM
Last Post: Prsa01
  EPG can't display scandinavian characters fdgfsfdgsfg 15 1,368 2023-12-23, 01:35 AM
Last Post: mvallevand
  Cannot change designated target folder for recording files djsinfl 1 580 2023-02-14, 01:45 AM
Last Post: mvallevand
  I have some recording files I want to show up in "Recordings" folder in Kodi - djsinfl 2 627 2023-01-28, 10:39 PM
Last Post: djsinfl
  change temp folder tunt19 2 700 2022-06-03, 07:33 PM
Last Post: tunt19
  shared folder router MaxOne72 1 653 2022-02-07, 04:51 AM
Last Post: sub
  Media file folder setup DSperber 13 3,081 2021-12-23, 06:24 PM
Last Post: DSperber
  Art for shows in public media folder Legacy14 7 1,319 2021-12-07, 03:01 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode