NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 168 169 170 171 172 … 433 Next »
NextPVR not Naming Files wtth Subtitle, Season and Episode ... What have I missed?

NextPVR not Naming Files wtth Subtitle, Season and Episode ... What have I missed?
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#1
2015-09-06, 08:24 AM (This post was last modified: 2015-09-06, 10:56 AM by puck64.)
Hi All,

I have a feeling that Sub may be the only person who can answer this Big Grin

I have run "Empty EPG" and "Update EPG" from Settings/Channels, at the conclusion of the update "PostUpdateEpg.bat"
kicks in and runs my RexX program that Cleans EPG_EVENT.title (gets rid of unwanted trailing info and places it in Description).
It then finds Season and or Episode info within EPG_event.description and inserts it into the Season and Episode columns.

At the same time it grabs the Cleaned Title, Formatted Season and Episode and Channel.name and places them into the EPG_EVENT.subtitle column.

When the recording schedule kicks in the file name generated should have Title.season&episode.Subtitle.ts and xml, it usually fails and generates Trawlermen_20150906_16301700.ts and Trawlermen_20150906_16301700.xml :confused:

WHY ?????

Attached Logs, DataBase, RexX Program, PostUpdateEpg.bat (as text) and Trawlermen_20150906_16301700.xml
Added config.xml.

I hope you (anyone) can Point out what I have done wrong :confused:
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2015-09-06, 12:08 PM
puck64 Wrote:When the recording schedule kicks in the file name generated should have Title.season&episode.Subtitle.ts and xml, it usually fails and generates Trawlermen_20150906_16301700.ts and Trawlermen_20150906_16301700.xml :confused:
WHY ?????

I suspect that NextPVR uses the "season" and "episode" columns in the "epg_event" table to construct file names ... Does Trawlermen have values in these columns?
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2015-09-06, 07:45 PM
as I said before, if you make any changes to the database which you want reflected in scheduled recordings, you have to run nextpvr.exe -recurring after the changes. it should be ok to call that at the end of your postupdateepg.bat.

@sub - I suppose another solution for this sort of issue would be to have yet another script called something like "PreScheduling.bat" which fires after the epg update but before "2015-09-05 04:36:00.279 [INFO][10] UpdateAllRecurringRecordings()". then those manipulating the database would put their code there rather than in PostUpdateEPG.bat which is really more useful for other housekeeping tasks.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#4
2015-09-06, 10:35 PM
Graham Wrote:I suspect that NextPVR uses the "season" and "episode" columns in the "epg_event" table to construct file names ... Does Trawlermen have values in these columns?

Yep, see below .....

Title subtitle sea ep
"Trawlermen" "Trawlermen E01 [SBS HD]" "0" "1"
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#5
2015-09-06, 10:41 PM
johnsonx42 Wrote:as I said before, if you make any changes to the database which you want reflected in scheduled recordings, you have to run nextpvr.exe -recurring after the changes. it should be ok to call that at the end of your postupdateepg.bat.

@sub - I suppose another solution for this sort of issue would be to have yet another script called something like "PreScheduling.bat" which fires after the epg update but before "2015-09-05 04:36:00.279 [INFO][10] UpdateAllRecurringRecordings()". then those manipulating the database would put their code there rather than in PostUpdateEPG.bat which is really more useful for other housekeeping tasks.

Hi Johnsox42,
I took your advice Smile .... here is my PostUpdateEpg.bat (included in NextPVR_Query.7z). I even added -reload to try and get it to work.

echo off

cd /d "%~dp0"

SET Path="C:\Program Files\ooRexx";%path%

IF EXIST Rexx2.Log (
DEL /Q Rexx2.Log
)
IF EXIST Rexx.Log (
REN Rexx.Log Rexx2.log
)

ECHO Post Up Date EPG Start - EPG Update with Series / Episode Data At %DATE% %TIME% >> "C:\Users\Public\NPVR\Scripts\Rexx.Log"

rexx Season_Title.rex

ECHO Post Up Date EPG End - EPG Update with Series / Episode Data At %DATE% %TIME% >> "C:\Users\Public\NPVR\Scripts\Rexx.Log"

ECHO Post Up Date EPG Start - recurring At %DATE% %TIME% >> "C:\Users\Public\NPVR\Scripts\Rexx.Log"

nextpvr.exe -recurring
nextpvr.exe -reload

ECHO Post Up Date EPG End - recurring At %DATE% %TIME% >> "C:\Users\Public\NPVR\Scripts\Rexx.Log"
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,989
Threads: 770
Joined: Nov 2003
#6
2015-09-06, 11:08 PM
I suspect you need this updated dll. You'll need to reschedule any recordings too.
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#7
2015-09-06, 11:15 PM
Thanks Sub .... I'll give it a go Smile
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#8
2015-09-07, 12:54 AM
sub Wrote:I suspect you need this updated dll. You'll need to reschedule any recordings too.

Hi Sub,

It looks ok. Big Grin

Would I be correct to assume (no we are not asses) Smile that subtitle is only used when the episode > 0 ?

A quick question, is there a "Stop recording button / command" ?

I love the "+24" and "-24" menu buttons in the EPG.

A couple of results ...
Bananas In Pyjamas.S01E999.Test new dll.ts

<?xml version="1.0" encoding="UTF-8"?>
<recording>
<filename>G:\Recorded TV\Bananas In Pyjamas.S01E999.Test new dll.ts</filename>
<channel>ABC2</channel>
<status>READY</status>
<startTime>2015-09-07 09:55:51</startTime>
<endTime>2015-09-07 10:24:31</endTime>
<channel_OID>7163</channel_OID>
<title>Bananas In Pyjamas</title>
<subtitle>Test new dll</subtitle>
<description>When Rat organises a movie night for the town, the Bananas and Teddies combine to make a film - but the result is not what they were hoping for.</description>
<uid></uid>
<firstrun>true</firstrun>
<season>1</season>
<episode>999</episode>
<genres>
<genre></genre>
</genres>
</recording>

dirtgirlworld.S01E999.Test new dll-0.ts

<?xml version="1.0" encoding="UTF-8"?>
<recording>
<filename>G:\Recorded TV\dirtgirlworld.S01E999.Test new dll-0.ts</filename>
<channel>ABC2</channel>
<status>READY</status>
<startTime>2015-09-07 10:30:11</startTime>
<endTime>2015-09-07 10:36:11</endTime>
<channel_OID>7163</channel_OID>
<title>dirtgirlworld</title>
<subtitle>Test new dll</subtitle>
<description>Roger the rooster has left for the weekend so of course the chickens are throwing a huge party they call the &apos;Wing Ding&apos;.</description>
<uid></uid>
<firstrun>true</firstrun>
<season>1</season>
<episode>999</episode>
<genres>
<genre></genre>
</genres>
</recording>
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,989
Threads: 770
Joined: Nov 2003
#9
2015-09-07, 01:17 AM
puck64 Wrote:Hi Sub,

It looks ok. Big Grin

Would I be correct to assume (no we are not asses) Smile that subtitle is only used when the episode > 0 ?
"episode" yes (season can be zero). ie, if it uses the SxxExx naming at all, then it will also include the subtitle if it has one.
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#10
2015-09-07, 02:29 AM
Thanks Mate.

The new "NUtility.dll" will become a production dll with the next release, I hope Smile
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR - EPG Setup - XML/XMLTV EPG - Zap2it & Zap2xml Erdrick 126 147,096 2024-01-29, 01:07 AM
Last Post: stoenjes44
  Add Series/Episode Info to Recording Metadata andrewj 2 1,402 2023-11-20, 03:42 PM
Last Post: sub
  NextPVR VOD through Kodi unmich 2 1,563 2023-06-18, 03:54 AM
Last Post: sub
  Can NextPVR switch graphics mode to best match content ? madbrain 2 2,438 2021-09-25, 02:25 AM
Last Post: madbrain
  NextPVR and Remote viewing MaxiBelas 2 1,934 2021-09-07, 05:29 PM
Last Post: sub
  Help with NextPVR evinahmad86 1 1,660 2021-07-23, 07:01 PM
Last Post: sub
  Epg setting SD token NextPvr 4.2.4 casimir@zyxu.ca 1 1,806 2021-03-05, 01:38 PM
Last Post: mvallevand
  NextPVR hangs when tuning to offline channel? CormacBaptiste 2 2,233 2021-02-03, 01:29 PM
Last Post: Graham
  NextPVR V4 Web Issue meccano 3 2,153 2021-01-30, 04:20 AM
Last Post: meccano
  TV very choppy after downgrade from Nextpvr v5 riverboat2001 18 5,747 2021-01-26, 01:51 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode