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
1 2 3 4 5 … 20 Next »
Nextool on mac

 
  • 0 Vote(s) - 0 Average
Nextool on mac
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#1
2025-02-05, 10:13 PM
Hi.

I installed nextool as follows:
- downloaded and unzipped NextTool-2.5.0.zip in my /opt/nextpvr/system/ directory (where my NextPVR program files are located);
- softlinked two files as follows (adapting the linux instructions):
  sudo ln -s /opt/nextpvr/system/runtimes/osx-x64/native/libe_sqlite3.dylib
  sudo ln -s /opt/nextpvr/system/runtimes/osx/native/libSkiaSharp.dylib

Then I tried to import a file: 
  dotnet NextTool.dll --import /Volumes/TV/Importing/Grammy.Awards.S01E66.mpg

and got these errors:
Quote:A fatal error was encountered. The library 'libhostpolicy.dylib' required to execute the application was not found in '/opt/nextpvr/system/'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because '/opt/nextpvr/system/NextTool.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the '/opt/nextpvr/system/NextTool.runtimeconfig.json' file and specify the appropriate framework.

Thoughts?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#2
2025-02-06, 12:22 AM (This post was last modified: 2025-02-06, 12:56 AM by mvallevand.)
My first thought was you should post questions on NextTool in the Addon sub forum https://forums.nextpvr.com/forumdisplay.php?fid=12 to keep everything together.

Otherwise for your non standard setup, not in the default macOS configuration, it takes a bit of setup (although macOS isn't supported well either) I created this sh file to run it with my non-standard configuration.

Code:
cd /opt/nextpvr/system
export NEXTPVR_DATADIR_USERDATA=/var/opt/nextpvr/
dotnet NextTool.dll "$@"

and then used sudo ./NextTool.sh parameters

With that I don't get that error and things work as expected with the following caveats.
- libmediainfo.dylib needs to be available to root in my environment, I had copied it earlier.
- there is a bug in the 7.0.1 release of NShard.dll dealing with media info and some file types. Sub has posted partial interim updates if you search the forum.
- the daemon needs access to the file system.

Martin
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#3
2025-02-06, 06:28 AM
Sorry. Can someone move this to the correct forum?
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#4
2025-02-07, 10:05 PM (This post was last modified: 2025-02-07, 10:06 PM by Allan.)
I followed your instructions but same error.
Specifically, created NextTool.sh script, made executable, installed NShared.dll update and ran sudo ./NextTool.sh  --import /Volumes/TV/Importing/Grammy.Awards.S01E66.mpg

Then, I looked at the installed files (given that error complained that NextTool.runtimeconfig.json was missing, and I noticed that there was a NextEnd.runtimeconfig.json, but no NextTool.runtimeconfig.json. When I changed its name to NextTool.runtimeconfig.json, I got this instead:
Quote:Error:
  An assembly specified in the application dependencies manifest (NextTool.deps.json) was not found:
    package: 'ExifLib.Standard', version: 'ExifLib.Standard'
    path: 'ExifLib.Standard.dll'
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#5
2025-02-07, 10:11 PM
Look like the file I uploaded to the wiki is bad.  here is the one I used

Martin


Attached Files
.zip   NextTool-2.5.0.zip (Size: 168.44 KB / Downloads: 3)
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#6
2025-02-08, 09:50 PM (This post was last modified: 2025-02-08, 09:51 PM by Allan.)
That fixed it, thanks.

Can you tell me - The wiki says: "--import … If there are no matching metadata files, the import process will try to use external metadata sources to provide the metadata for the imported recordings..."

The only metadata that seems to be coming in from external sources is artwork. No capsule summaries, actors, episode titles, etc. Is this expected or am I doing something wrong? "Grammy.Awards.S01E66.mpg" is representative of the file name format I have used.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#7
2025-02-08, 10:03 PM
It isn't linked to theTVdb or tmdb if that is what you mean but it will read NextPVR created XML files or if you want you can create NFO files with more metadata. There might be a utility for macos to help name and create NFO files. I don't bother with actors. Episode title would come from the filename if it follows NextPVR, or Plex/Kodi styled naming conventions.

Martin
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#8
2025-02-09, 08:53 PM (This post was last modified: 2025-02-09, 08:54 PM by Allan.)
Not having much luck. My xml files follow the format of the existing files from nextpvr recordings, but no matter what, the subtitle and description don't show up in the interface. I get a picture, the show name and s##e##. Nothing else. I have tried both nexttool and the import button. Here's a sample xml file.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
  <filename>/volumes/TV/nextpvr/Jeopardy Masters/Jeopardy.Masters.s01e10.ts</filename>
  <channel>WKBW</channel>
  <status>READY</status>
  <starttime>2023-05-25 00:00:00</starttime>
  <endtime>2023-05-25 01:03:18</endtime>
  <size>4094913728</size>
  <title>Jeopardy! Masters (Season Finale)</title>
  <subtitle>The Finals</subtitle>
  <description>The final three contestants show off their knowledge and skills to see who claims the title of champion, the Alex Trebek trophy and the $500,000 grand prize.</description>
  <firstrun>true</firstrun>
  <season>1</season>
  <episode>10</episode>
  <quality>HDTV</quality>
  <genres>
    <genre>Game show</genre>
  </genres>
</recording>
Allan
Offline

Member

Canada
Posts: 96
Threads: 10
Joined: Dec 2024
#9
2025-02-09, 09:06 PM
btw, I was able to export the data from the mythtv sql db, and if I could get the import working, I should be able to massage the xml file a little and do a quick import. This is a sample from the export file - the biggest difference is that some field names are different (easily fixed):
Code:
    <row>
        <chanid>1191</chanid>
        <starttime>2021-06-14 00:00:00</starttime>
        <endtime>2021-06-14 00:47:01</endtime>
        <title>World's Greatest Ships</title>
        <subtitle>Cutty Sark: 150 Years of War &amp; Speed</subtitle>
        <description>Rob Bell explores the extraordinary tea clipper, Cutty Sark, a ship that endured drunken captains and murderous crews.</description>
        <season>0</season>
        <episode>0</episode>
        <category>Documentary</category>
        <hostname>intelmini.local</hostname>
        <bookmark>0</bookmark>
        <editing>0</editing>
        <cutlist>0</cutlist>
        <autoexpire>0</autoexpire>
        <commflagged>1</commflagged>
        <recgroup>Default</recgroup>
        <recordid>556</recordid>
        <seriesid>EP03330746</seriesid>
        <programid>EP033307460003</programid>
        <inetref>ttvdb.py_401807</inetref>
        <lastmodified>2021-06-13 20:53:23</lastmodified>
        <filesize>5641849732</filesize>
        <stars>0</stars>
        <previouslyshown>1</previouslyshown>
        <originalairdate>2019-01-05</originalairdate>
        <preserve>0</preserve>
        <findid>0</findid>
        <deletepending>0</deletepending>
        <transcoder>0</transcoder>
        <timestretch>1</timestretch>
        <recpriority>0</recpriority>
        <basename>1191_20210614000000.ts</basename>
        <progstart>2021-06-14 00:00:00</progstart>
        <progend>2021-06-14 00:44:00</progend>
        <playgroup>Default</playgroup>
        <profile>Default</profile>
        <duplicate>1</duplicate>
        <transcoded>0</transcoded>
        <watched>0</watched>
        <storagegroup>Default</storagegroup>
        <bookmarkupdate>0000-00-00 00:00:00</bookmarkupdate>
        <recgroupid>1</recgroupid>
        <recordedid>988</recordedid>
        <inputname>1: MPEG2TS</inputname>
    </row>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#10
2025-02-09, 09:30 PM (This post was last modified: 2025-02-09, 09:43 PM by mvallevand.)
NextPVR creates different formats for the XML file, the export and the one created separately when a recording is created. NextTool should support both formats without changing the xml.

You don't match the XML format which is case sensitive. Try with startTime and endTime.

If you want to provide instructions on how to export from MythTV (for the wiki) and the output file you discuss I can add it to NextTool.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


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

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

Linear Mode
Threaded Mode