Set objFile = objFSO.OpenTextFile(strFileName, ForWriting)
objFile.WriteLine strNewText
objFile.Close
----------------end of replace.vbs-----------------
--------------beginning of batch file----------------
@ECHO OFF
TITLE NPVR Automatic Recording File Rename
SETLOCAL
IF [%1]==[] GOTO END
::====== Program locations ====
SET DB=C:\Users\Public\NPVR\npvr.DB3
SET SQLITE3="C:\Users\Public\NPVR\Rename Recordings\SQLITE3.exe"
SET REPLACE="C:\Program Files (x86)\CLI\REPLACE.vbs"
::====== File locations ====
SET PROGINFO=%TEMP%\%RANDOM%%RANDOM%.TXT
SET TEMPFILE=%TEMP%\%RANDOM%%RANDOM%.TXT
SET OLDFNAME=%~dpnx1
SET NPVRLOG="C:\Users\Public\NPVR\Rename Recordings\NPVR Rename Log.txt"
::====== Begin Log file ===========
ECHO ORIGINAL FILE: %1>>%NPVRLOG%
::====== Query SQLite3 to dump Title, Date, Description and Subtitle to text file ====
%SQLITE3% "%DB%" "SELECT event_details from SCHEDULED_RECORDING where status = '2' and filename = '%OLDFNAME%';">%PROGINFO%
::====== Capture Title ===
FOR /F "tokens=3 delims=<>" %%a IN ('FIND "/Title" %PROGINFO%') DO ECHO %%a>%TEMPFILE%
::========= Log Results ====
FOR /F "tokens=3 delims=<>" %%a IN ('FIND "/Title" %PROGINFO%') DO ECHO RENAMED WITH TITLE: %%a>>%NPVRLOG%
::====== Capture Description ======
FOR /F "tokens=3 delims=<>" %%a IN ('FIND "/Description" %PROGINFO%') DO ECHO %%a>%TEMPFILE%
::========= Log Results ========
FOR /F "tokens=3 delims=<>" %%a IN ('FIND "/Description" %PROGINFO%') DO ECHO RENAMED WITH DESCRIPTION: %%a>>%NPVRLOG%
::====== Capture Date & Time ======
FOR /F "tokens=3-7 delims=>T:-" %%a IN ('FIND "/StartTime" %PROGINFO%') DO SET DATETIME=%%a-%%b-%%c %%d%%e
::========= Log Results =====
ECHO RENAMED WITH DATE/TIME: %DATETIME%>>%NPVRLOG%
IF "Date/Time: %DATETIME%"=="" GOTO END
::======== Set intial value for counter ======
SET /A i=1
::======== Route to desired naming format depending on subtitle and description values ===
IF "%SUBTITLE%" NEQ "" GOTO SUBNUL
IF "%SUBTITLE%" NEQ "%TITLE%" GOTO SUBNEQTITLE
IF "%SUBTITLE%" EQU "%TITLE%" GOTO SUBEQUTITLE
::======== If Subtitle is not blank ======
:SUBNUL
IF "%SUBTITLE%" EQU "%TITLE%" GOTO SUBEQUTITLE
ECHO %TITLE% (%DATETIME%) %DESCRIPTION%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO %~dp1%NEWFNAME%>%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
IF EXIST "%NEWFNAMEPATH%" GOTO SUBNULDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
:SUBNULDUP
ECHO %TITLE% (%DATETIME%) (%i%) %DESCRIPTION%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO %~dp1%NEWFNAME%>%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
SET /A i=%i%+1
IF EXIST "%NEWFNAMEPATH%" GOTO SUBNULDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
::======== If Subtitle and Title are not equal ====
:SUBNEQTITLE
ECHO %TITLE% (%DATETIME%) %SUBTITLE%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO "%~dp1%NEWFNAME%>%TEMPFILE%">%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
IF EXIST "%NEWFNAMEPATH%" GOTO SUBNEQTITLEDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
:SUBNEQTITLEDUP
ECHO %TITLE% (%DATETIME%) (%i%) %SUBTITLE%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO %~dp1%NEWFNAME%>%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
SET /A i=%i%+1
IF EXIST "%NEWFNAMEPATH%" GOTO SUBNEQTITLEDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
::======== If Subtitle and Title are equal ====
:SUBEQUTITLE
ECHO %TITLE% (%DATETIME%) %DESCRIPTION%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO %~dp1%NEWFNAME%>%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
IF EXIST "%NEWFNAMEPATH%" GOTO SUBEQUTITLEDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
:SUBEQUTITLEDUP
ECHO %TITLE% (%DATETIME%) (%i%) %DESCRIPTION%%~x1>%TEMPFILE%
SET /P NEWFNAME=<%TEMPFILE%
ECHO %~dp1%NEWFNAME%>%TEMPFILE%
SET /P NEWFNAMEPATH=<%TEMPFILE%
SET /A i=%i%+1
IF EXIST "%NEWFNAMEPATH%" GOTO SUBEQUTITLEDUP
IF NOT EXIST "%NEWFNAMEPATH%" GOTO NAMEDONE
:NAMEDONE
::========= Ensure that the target file name doesnt already exist (again) and then rename to new file name =====
IF NOT EXIST "%NEWFNAMEPATH%" RENAME %1 "%NEWFNAME%"
::========= Ensure that the target file name does exist now and then update the SQLite3 database ====
IF EXIST "%NEWFNAMEPATH%" %SQLITE3% %DB% "update scheduled_recording SET filename = '%NEWFNAMEPATH%' where status = '2' and filename = '%OLDFNAME%';"
::========= Log Results ======
IF EXIST "%NEWFNAMEPATH%" ECHO RENAMED TO: "%NEWFNAME%">>%NPVRLOG%
:END
::========= Delete temp files =======
IF EXIST %PROGINFO% DEL %PROGINFO%
IF EXIST %TEMPFILE% DEL %TEMPFILE%
NPVR has been working for about a week just fine in win7 for me.
I went to manually record a program today and because we can not specify the time directly I choose 6:20 for the program to start recording, it was already 6:21. Immediately after hitting okay the service changed the channel and the Next PVR interface crashed. I thought that was all, seems the service crashed as well. I restarted the service from the try icon and it changed channels again. I went to look for the file and could not find it.
After looking I looked at the service directly and noticed it not running, when I ran it, it would change channels and then stop again and windows would tell me so.
win7, UAC on
pvr 350
HD-PVR installed and not setup in nextPVR
P.S. I got a prompt that that next PVR wanted to access the network, this is most likely because a few days ago I enabled the web portal, I did allow access to private and public networks. Also while I'm at it does or will Next PVR support Colossus?
hi - since getting a recording device from my cable provider, my pvr has (just) been a media player so PVRX2 has been more than adequate for what i need.
I upgraded my old NPVR install to the latest non-beta version and am amazed! it is absolutely brilliant! Sub - you have played a blinder with this version - it's fantastic.
I particularly like the menu bar at the top, the settings right click bit and how easy it is to setup (i've not done anything complex - just 2 freeview tv cards using the dvb epg - can't be bothered setting up my hauppauge PVR-150).
My only question is on the folder icons when looking at pictures (within folders) - the icon seems to have a folder image in the background with an image over the top which doesn't cover up the other image...hard to describe! i'll post a pic when i get home if no-one knows what i'm on about. (i have searched forum, but get a lot of results for 'folder icon').
I am running the last released copy of GBPVR under XP+SP3.
I only have one PCI slot in the machine so I have a Hauppauge Nova-S PCI card in that and a Hauppauge Nova-S USB2 plugged into a USB port to provide a second tuner.
I use "Hibernator" to put the system into hibernation (duh) when it becomes idle.
All works well after a reboot but after coming out of hibernation the USB tuner records videos that have horizontal stripes (a bit like pixelation).
Rebooting the machine fixes the problem, but of course it goes bad again the next time the system goes into hibernation.
I tried "DEVCON.EXE" to "restart" the USB device - but that says that "a reboot is necessary".
It looks as though the USB tuner needs a reset/reload after waking.
Anyone know of a fix for this ??
nPVR isn't really an option at the moment because (for me at least) there are some missing features that I need.
As per the subject line your ip 76.76.102.42 for the forums is in a range that is spammer friendly - so people that use spamhaus for blocklists etc are going to pickup that emails from the forums are spam and potentially get blocked
is your hosting with gogax by any chance ? it sounds they are spammer friendly.
i ask cause i have a mail server and this is whats coming up when i get in the header of emails that come from the forum
Code:
X-hMailServer-Spam: YES
X-hMailServer-Reason-1: Sender domain does not have any MX records. - (Score: 2)
X-hMailServer-Reason-2: Rejected by Spamhaus. - (Score: 3)
X-hMailServer-Reason-Score: 5
npvr has been working fine for a week, with several back-to-back recordings using both of my recorders.
Tonight, Glee stopped recording (with the titled error) at 7:58 pm just as 'V' started recording at 7:58 pm (I have 2 min buffer before and after recordings). There was only ~5 seconds of 'V' recorded.
In addition, right-clicking on the tray icon did not result in any options (show status/star npvr/restart). I had to stop then start the npvr service to start 'V' again at ~ 08:16 pm.
The 2 shows are on different channels. Other back to back recordings that worked earlier in the week were on the same channel. Logs attached.
The "Time Bar" and "Description" have recently gone missing on my NPVR V2 Client when playing Recordings such as during a "Pause". I could not see anything in "Settings" so deleted the Data Directory and did a reinstall but this has not cured the problem.
A dedicated server that will host eight tuner cards - 1 TBS DVB-S2 Quad Tuner Card and 2 Blackgold BGT3620 cards (this will give 4 DVB-T2 signals and 4 DVB-S2 signals) and server will do all my recording and serving to three clients.
In terms of the clients, I shall have three acer revos aspires.
All computers, including the server will be running Windows 7.
There were a couple of things that I wanted to be able to do with the setup in particular.
Have a dedicated hard disk just for time shifting that all the clients could use for pausing live TV.
The ability to have a centralised EPG on the server itself rather than on each client (meaning that if I could set a recording from any client and this will show up on the EPG on any of the other clients).
Watch live TV on any of the clients
Ability to record more than one channel from a single tuner if it is on the same MUX.
At the moment, I have an HTPC in my living room that is acting as both a server and client and a single Revo in my bedroom that acts as a client. I have a hvr-2200 dual DVB-T and a Nova single DVB-S2 card in the HTPC.
I have been using Windows 7 for well over 18 months and it has been great but for the fact that there are lots of limitations that I am beginning to dislike, now I am thinking about piping live TV round the house (e.g. limits on numbers of tuners, not sharing EPGs etc).
I then gave Media Portal a go and it did exactly what I wanted to do except for it being unbelievably slow and crashed a couple of times.
Someone recommended that GBPVR would be a perfect solution for what I am trying to achieve, but I need to make sure before I start adding yet another PVR program.
I have played around a bit with AC3Filter and ffdshow for audio decoding on my setup and I can't shake this popping and clicking I get with the channels (only a subset of the, at that) from my HDHR. It's beginning to drive me batty. ffdshow doesn't pop or click but has this raw, ripp-y sound to it and I haven't figured out how to successfully preamp the volume (the volume on those channels is super quiet if I don't).