NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
« Previous 1 2 3 4 5 6 … 13 Next »
Path Substitution

 
  • 0 Vote(s) - 0 Average
Path Substitution
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#11
2018-09-07, 12:44 PM
First to confirm that Path Substitution now works on the AMD powered client after restoring the config files from the PC where it works! This is the advancedsetting.xml but the problem has to be somewhere else other than this file as just copying this file over did not work!

<advancedsettings>
<pathsubstitution>
<substitute>
<from>D:\</from>
<to>smb://NPVR-SERVER/d/</to>
</substitute>
</pathsubstitution>
</advancedsettings>

The reference to playing the file from (smb://npvr-server/D/) is nothing to do with the Path Substitution and is a location I created in Kodi to give easy access to the recordings on the server and could have called it anything such as "Recordings" instead of "D".

On the RPi3 I restored the original config even though I am reasonably certain it rejected the Kodi config from the PC. Enclose is RPi log file with playing NPVR recording as a video in Kodi on SMB source I created to NPVR-SERVER D: drive at 11:06:27 then at 11:08:21 playing a recording in X-NEWA.

Thanks for your help Martin.

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,670
Threads: 170
Joined: Jun 2007
#12
2018-09-07, 01:26 PM
jcjefferies Wrote:The reference to playing the file from (smb://npvr-server/D/) is nothing to do with the Path Substitution and is a location I created in Kodi to give easy access to the recordings on the server and could have called it anything such as "Recordings" instead of "D".

If I'm understanding your comment correctly, I don't believe it is correct. I think that you're saying you created a "Media Source" in the Kodi front-end which maps to an SMB path on your server so that you can access that from things like the Videos, Music, etc. And you are thinking that the Path Substitution is pointing to that. I'm pretty sure that is not the case since I don't have Media Sources created for all of the shares on my NextPVR server, but it still works. Also, the Kodi developers have said multiple times that the video player in Kodi used its own smbclient library when attempting to play files beginning with "smb:"--and until just recently it was an old version that only supported smb V1 which caused problems as Windows updated began disabling smb V1. Try changing your "D"s to "Recordings" (make sure you do not have a share named "Recordings" on the server) and see if it works.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#13
2018-09-07, 01:50 PM
Your logs are missing in your post however you have some mis conceptions, It is true you added the smb function to the library and so subtituion is not taking place so direct access can happen

12:22:54.156 T:1944928256 DEBUG: CGUIMediaWindow::GetDirectory (smb://npvr-server/D/)
12:22:54.157 T:1944928256 DEBUG: ParentPath = [smb://npvr-server/]
12:22:54.161 T:1944928256 DEBUG: Loading items: 134, directory:

The file that it is trying to find is shown as

12:20:34.232 T:1743778720 DEBUG: D:/Horizon/The Horizon Guide to AI_20180904_22002300.ts

so the substitution should match unless you are running Windows. Maybe Kodi is smart at handling this but I see it just as a global search and replace of from and to


Martin
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#14
2018-09-07, 11:24 PM
I said exactly the opposite that the location I created had NOTHING to do with the Path Substitution location:-

"The reference to playing the file from (smb://npvr-server/D/) is nothing to do with the Path Substitution and is a location I created in Kodi to give easy access to the recordings on the server and could have called it anything such as "Recordings" instead of "D"."

I dont know what happened to the logs as they were definitely in place shortly before I posted! The times are in the previous post.

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#15
2018-09-13, 06:34 PM
I did clean install of LibreElec for RPi2 on spare SD card, I installed X-NEWA and went through the LibreElec, Kodi and X-NEWA settings so X-NEWA is working as normal. I added known working copy of advancedsettings.xml and after a reboot Path Substitution works! The new SD card is unnecessarily large so I created a LibreElec backup and copied it to a USB drive. I swapped the SD card for the original one where Path Substitution does not work and restored the settings from the file on the USB drive so Path Substitution now works! This would seem to indicate that some LibreElec or Kodi setting was preventing Path Substitution from working!
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#16
2018-09-15, 07:37 PM
Great glad you got it sorted.

Martin
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#17
2018-09-17, 09:33 AM
I looked at the new imported settings but found no obvious changes that may have enabled Path Substitution to start working.

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
« 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
  Clarification of Path Substitution Phydeaux 19 8,462 2017-03-06, 02:10 PM
Last Post: jksmurf
  Problem with path substitution BrettB 21 12,655 2016-05-05, 08:14 AM
Last Post: nitram
  X-NEWA UNC Path? smajor 7 3,763 2014-12-31, 11:06 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