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 … 12 13 14 15 16 … 433 Next »
Forcing a SXXEXXX when one doesn't exist

Forcing a SXXEXXX when one doesn't exist
bigoldboy
Offline

Junior Member

Posts: 15
Threads: 4
Joined: Dec 2017
#11
2019-12-10, 01:57 AM
(2019-12-09, 11:57 PM)sub Wrote:
(2019-12-09, 11:50 PM)bigoldboy Wrote: Hmmm.  I am a big news fan. I like to record cable news which has not season/episode, but I want plex to see it. Would that not be a good reason to want a function like this?
I totally understand why you want it  - I was just saying that when I implemented this stuff using 'season/episode naming' didn't make sense when you didn't have season/episode numbers, so I didn't implement a feature like that.

NextPVR v4 has reached the end of the road for new features.  I can look into a feature like this in v5 though.

Thank you so much!
paul67
Offline

Junior Member

Posts: 21
Threads: 2
Joined: Jun 2016
#12
2019-12-11, 01:48 PM
Plex should handle date based, but the underscores confuse it (doesnt have to be in SxxExx format)

DailyNews_20191211_10301130.ts would not be recognised by Plex as mentioned
but
DailyNews - 20191211 - 10301130.ts should be fine
bigoldboy
Offline

Junior Member

Posts: 15
Threads: 4
Joined: Dec 2017
#13
2019-12-11, 02:47 PM
(2019-12-11, 01:48 PM)paul67 Wrote: Plex should handle date based, but the underscores confuse it (doesnt have to be in SxxExx format)

DailyNews_20191211_10301130.ts would not be recognised by Plex as mentioned
but
DailyNews - 20191211 - 10301130.ts should be fine

Good to know. I just knew I had to manually edit the file each day.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#14
2019-12-11, 11:40 PM (This post was last modified: 2019-12-11, 11:42 PM by JavaWiz.)
Here is a script to do the rename after a recording is complete...  Place it in a file called c:\Users\Public\NPVR\Scripts\PostProcessing.bat.  It renames the physical file on disk, and also in the NPVR database.

You can test it by running:
  Postprocessing.bat "Fully_Qualified_Filename_to_rename.ts"

Replace the parameter with the name of the file you want to rename (put it in quotes if there are any spaces in the FQDN)

Code:
@Echo off
GoTo :BEGIN
=============================================================================================
PostProcessing.bat
Rename the file and remove all _ with -
=============================================================================================
:BEGIN
    Set RENAMER="c:\Program Files (x86)\NPVR\NScriptHelper.exe"

    echo.
    If not exist %RENAMER% (
        echo Unable to locate Renamer utility: %RENAMER%
        GoTo :ENDJOB
    )
    If %1.==. (
        Echo 1st parameter MUST be filename
        GoTo :ENDJOB
    )
    Set oldFN=%1
    Set newFN=%oldFN:_=-%

    if %oldFN%==%newFN% (
        echo Nothing to rename.
    ) else (
        echo Input Filename: %oldFN%
        echo New   Filename: %newFN%
        echo.
        Call :RENAME "%oldFN%" "%newFN%"
    )
    GoTo :ENDJOB

:RENAME
    Echo - Rename on filesystem
    set FN=%~nx2
    Rename %1 to "%FN%"
    Echo - Rename in NPVR database
    %RENAMER% -Rename %1 %2
    Echo done.
    GoTo :EOF

:ENDJOB
        Echo.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR Recording Service doesn't install from Services SamM 4 2,113 2020-08-02, 01:11 AM
Last Post: SamM
  2020 TV Guide Doesn't Show up rmahlberg 14 9,567 2020-01-04, 06:43 PM
Last Post: sub
  Local News M3U8 link doesn't play audio caseguy 37 13,328 2019-11-26, 05:11 PM
Last Post: caseguy
  Issue with Beast IPTV recording - Skipping + Doesn't record full show abrupt ending russmehta01 3 3,074 2019-02-26, 09:20 PM
Last Post: sub
  NextPVR Kodi plugin doesn't remeber the group setting when it is re-run Beeman 5 1,763 2019-01-11, 11:53 PM
Last Post: Beeman
  4.2.3 install doesn't update version in config.xml sgilani 3 1,693 2018-11-12, 05:17 AM
Last Post: sub
  Mdapi stopped working, Acamd doesn't get any data Sheik Yerbouti 4 2,398 2018-09-17, 06:27 AM
Last Post: Reddwarf
  NextPVR Refuses to Record if signal doesn't lock fast enough ChaosMageX 2 1,797 2018-05-02, 08:26 PM
Last Post: ChaosMageX
  VLC Media Player doesn't play 4.1.0 BrianGGG 2 1,552 2018-03-13, 02:42 PM
Last Post: BrianGGG
  Channels with AC3 give laggy video and doesn't work when streaming jeppetinghoej 12 3,401 2018-02-26, 09:23 PM
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