NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
1 2 3 Next »
mac os

 
  • 0 Vote(s) - 0 Average
mac os
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#11
2023-02-03, 01:40 AM
Great I will check this later this week and copy it to the wiki, you probably could have used a normal linux script so will try that too. I might add that.

I am also wondering if this script runs for all users or the current user only?

Kind of off topic but you are the first user talking about multi-instance pvr-nextpvr. How is that working for you?

Martin
sdennis91
Offline

Junior Member

United States
Posts: 9
Threads: 1
Joined: Jan 2023
#12
2023-02-03, 11:19 PM
This script will work for all users provided that the nextpvr under applications permissions is set to system the same as the applications folder. To do this just right click the applications folder click get info, your see sharing and permissions. below that is a lock, unlock the window, and click the dropdown beside the - and click apply to enclosed items. Also do this for launch agents to give the com.nextpvr.plist the same permissions as the launch agents folder.

As far as a linux script goes, it may work or it may not. If your findings come to a halt on linux, I will install nextpvr on linux as well and see what I come up with.

As for using a multi-instance pvr-nextpvr, it works great, I find that the channels load faster when channel surfing, as well as on initial boot of kodi when the nextpvr plugin is loading. All I did to get a dual setup working was changed the port number on the mac os nextpvr to a different port in the config.xml. With that I am able to update and change both nextpvr servers on either mac or windows just by changing the ip address and port number in the web browser.

Nextpvr works great so far with a few flaws i found. Such as the automap feature, it doesn't work as well as it should. The drop down should be by name, by number or by id, the id would be the tvg id in the m3u file. Right now the way it is setup it will only automap the channels on the xmltv guide and removes any that is mapped. Or it maps the channels wrong if not at all. Another problem I found is with auto merge and merge/unmerge. Automerge is as bad as the automap, if you merge them manually and then unmerge them, the channels disappear. So them things need addressed to correct them. Another thing that needs fixed is download icons, when you click download channel icons, it also downloads the program icons and makes it a channel icon. Screws up the entire idea of a channel logo. That needs to be sorted out and have a channel logo button that will only download the channel logo icon from the m3u or guide. The program icon source needs to be ignored at this stage. As for the program source icon section, that should only be read when a guide update is being done, and icon applied to the program info in the guide. Other then that I love the program and server, I even paid for and bought the android version of the client. Which that needs a way to change port numbers so it connects to second nextpvr with a different port as I have set up.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#13
2023-02-03, 11:33 PM (This post was last modified: 2023-02-03, 11:34 PM by mvallevand.)
My point about the script was with multiple user how could it know where ~/.NPVR-data is

Automap depends on the guide source. IPTV is what it is. If you aren't using Schedules Direct for North American TV you should.

NextPVR doesn't support episode data. Some users think there is too much art as is.

Glad you like the multi-instance work it was a bit of work figuring it out but it is something I wanted to see in Kodi. I don't understand why you need to change ports though? Are you running Windows and macOS on the same PC? Just run different static IP"s (static IPs for servers make sense)

Martin
sdennis91
Offline

Junior Member

United States
Posts: 9
Threads: 1
Joined: Jan 2023
#14
2023-02-03, 11:47 PM (This post was last modified: 2023-02-03, 11:54 PM by sdennis91.)
The script will see next pvr installed in the applications folder no matter what user is logged on. As the launch agents folder is in the library folder of the system not per user. Yes there is a library folder under each user account as well. Library is basically program data on windows. I have multiple users on my mac and have tested this out. As for data which is in .NPVR-data of each user account. I have yet to figure that out. I will look into that. For now it has a next pvr data folder for each user. I may need a script to direct nextpvr to use a .npvr data folder in the shared folder of mac. The shared folder is the same as the public folder on windows. 

Ok then why is nextpvr downloading episode data such as the program icon as a channel icon. That needs checked.
As far as ports go, I needed to change ports to be able to use kodi on my phone while away from home. If I pointed my phone to my isp ip address it would only see one instance.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#15
2023-02-04, 12:13 AM
Ok yes it will make a new user folder, the environment variable I showed earlier could be used to have one NextPVR setup.

Kodi doesn't support episode art. There is a Kodi setting to get show art in the EPG but I don't enable it one by default since it can take a few seconds to get new art that isn't cached and the server is doing a lot of work capturing junk art for shows you pass by getting to the show you want. Sub downloads large background art too even though Kodi won't ever use it.

Yes the phone would need to have instances with different ports on the DMZ but the internal addresses could still have the same port.

Martin
sdennis91
Offline

Junior Member

United States
Posts: 9
Threads: 1
Joined: Jan 2023
#16
2023-02-04, 01:54 AM
How do i set the environment variable so that it stays, I tried everything and it will not stay. I enter this in manually NEXTPVR_DATADIR_USERDATA=/Users/Shared/NextPVR/ then launch nextpvr right after, that works. Trying to change this in a script don't work, it comes up with more then 1 window. Any ideas on where I can change the variable.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#17
2023-02-04, 02:11 AM
Inside the <dict> maybe try this.

Code:
<key>EnvironmentVariables</key>
    <dict>
           <key>NEXTPVR_DATADIR_USERDATA</key>
           <string>/Users/Shared/NextPVR/ </string>
    </dict>
sdennis91
Offline

Junior Member

United States
Posts: 9
Threads: 1
Joined: Jan 2023
#18
2023-02-04, 04:19 AM
Ok I solved the environment variable. I now have a file that allows any user to login and use the same nextpvr server coming from the shared folder. To do this create a environment.plist. file and paste the following code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>my.startup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>launchctl setenv NEXTPVR_DATADIR_USERDATA /Users/Shared/NextPVR/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

Save this file into the /Library/LaunchAgents folder where you have placed com.nextpvr.plist file. This will allow nextpvr to launch and use the shared folder for any user that logs in. To use per user nextpvr you don't need the environment.plist file per user will allow each user to make there own nextpvr server.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


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

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

Linear Mode
Threaded Mode