NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
1 2 3 4 5 … 194 Next »
Add PostDelete script

 
  • 0 Vote(s) - 0 Average
Add PostDelete script
hmc
Offline

Junior Member

Australia
Posts: 34
Threads: 11
Joined: Jun 2018
#1
2025-08-25, 04:47 AM
Following on from the subtitle experimentation I was doing in Externally generated SRT subtitles for DVB recording not displayed, I was hoping we could add a hook that fires on recording file deletion; it could be named PostDelete or similar.

I'd like to be able automatically delete the subrip files generated for each recording without having to run an external (non-NextPVR) script.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,674
Threads: 170
Joined: Jun 2007
#2
2025-08-25, 05:49 AM
(2025-08-25, 04:47 AM)hmc Wrote: I'd like to be able automatically delete the subrip files generated for each recording without having to run an external (non-NextPVR) script.

Are you just wanting to have the .english.srt files deleted when you delete the recording in NextPVR? If so, did you try simply adding "english.srt" to the DeleteAdditionalExtensions element in the config.xml file? With my setting:
Code:
<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,mp4,ffmeta,thumbnails,timing</DeleteAdditionalExtensions>
It will automatically delete a file matching the base recording name with a .srt extension. But, I'm not sure if it will handle your "compound" .english.srt extension.
hmc
Offline

Junior Member

Australia
Posts: 34
Threads: 11
Joined: Jun 2018
#3
2025-08-25, 01:08 PM
Thanks for the tip! It turns out NextPVR does recognise and remove the .English.srt files.

I still think it would be useful to expose a dedicated hook as well.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PostDelete.bat? smajor 4 2,306 2014-07-28, 09:46 PM
Last Post: mvallevand
  Waking up PC from GB-PVR WOL script ! vikingdk 3 2,132 2009-10-01, 07:25 PM
Last Post: pBS
  XBMC script interpreter Loomy 1 1,793 2007-11-04, 11:33 PM
Last Post: whurlston

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

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

Linear Mode
Threaded Mode