NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 … 5 6 7 8 9 … 20 Next »
ImageGrabLite - name change while watching recording

 
  • 0 Vote(s) - 0 Average
ImageGrabLite - name change while watching recording
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#1
2015-11-05, 11:29 AM
If I'm watching a recording while it's being broadcast, and the broadcast then finishes while I'm still watching it, IGL can't access the file to rename it. Logical, I guess, as that would break the stream. It's shown as an access error in the logs.

Is there a way, Martin, to check for such an access error (or maybe there's another flag you can check) and delay the rename until it's no longer being watched?
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#2
2015-11-05, 10:05 PM
liteswap Wrote:If I'm watching a recording while it's being broadcast, and the broadcast then finishes while I'm still watching it, IGL can't access the file to rename it. Logical, I guess, as that would break the stream. It's shown as an access error in the logs.

Is there a way, Martin, to check for such an access error (or maybe there's another flag you can check) and delay the rename until it's no longer being watched?

I remember that johnsonx42 posted a batch file snippet for this however I am not planning on queuing these requests..

Martin
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#3
2015-11-06, 11:29 AM (This post was last modified: 2015-11-06, 12:10 PM by liteswap.)
I'm sure I could come up with something that worked, such as attempting a rename every 30 seconds or so and continuing until it's successful. Does iGL generate an errorlevel or exit code, to save me writing cumbersome code to parse the logs?

--
Update
OK, found the reference: http://forums.nextpvr.com/showthread.php...ight=batch and go to forum post 6 or use this code snippet (thanks to johnsonx42):
Code:
rem ********************************************************************
rem This is for NPVR post-processing.bat
rem Checking to see if the video file is being watched
rem
REM ok, ready to rename the file... but first check to make sure no one is watching it!
REM try renaming the file to the same name, see if gets an error

:checkopen
rem Try to rename file but with unchanged name
ren %1 "%~nx1"
if errorlevel 1 goto waitandcheck
goto rename

:waitandcheck
REM if we got here, the rename failed so wait a minute and try again
sleep 60
goto checkopen

:rename
rem rename the file by running imageGrabLite
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Automatic movie recording based on existing libraries daneo 10 5,048 2020-04-14, 08:02 PM
Last Post: daneo
  imageGrabLite update mvallevand 20 13,655 2020-04-04, 02:42 AM
Last Post: jksmurf
  NextPVR Recording Service Monitor ChaosMageX 2 2,214 2019-09-23, 02:19 PM
Last Post: ChaosMageX
  ParallelProcessing.bat Recording Growth Monitor BrettB 0 2,078 2017-05-24, 01:51 AM
Last Post: BrettB
  ImageGrabLite "Read Error Object reference not set to an instance of an object." mjccox 6 5,096 2017-04-11, 07:07 AM
Last Post: rinomasaya
  Created a program to purge recording directory evans036 3 3,512 2016-11-30, 11:44 AM
Last Post: Graham
  imageGrabLite episode rename (Super Why) sosuke3 4 3,353 2016-11-24, 10:38 PM
Last Post: sosuke3
  ImageGrabLite and the ampersand ttfitz 8 4,837 2016-05-26, 11:56 PM
Last Post: JavaWiz
  Imagegrablite and NCIS Los Angleles/New Orleans robokd 5 4,011 2016-03-02, 02:40 PM
Last Post: mvallevand
  NPVRConflicts - Email you if there are recording conflicts danorum 16 17,554 2016-02-03, 04:07 AM
Last Post: meccano

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

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

Linear Mode
Threaded Mode