NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 4 5 6 7 8 … 34 Next »
Import multiple recording XML files

 
  • 0 Vote(s) - 0 Average
Import multiple recording XML files
ceejayemm
Offline

Member

Posts: 124
Threads: 21
Joined: Sep 2019
#1
2022-04-02, 08:12 AM
Current Version: 5.2.6.220206, hardware as shown in signature.

A little while ago the ability to import a single recording XML file was fixed and I have been using this, on and off, to reorganise my recordings library to be more along the lines of the Kodi Movies/Files  and TV Shows. This almost complete but I am currently left with several seasons of some TV Shows I record for the kids which each have multiple episodes (25/30 per season). Each season has its own folder and I have come across a Powershell script that allows me to make bulk changes to the <filename> tags in each of the XML files to point to the new file locations. Nothing else in the XML file has been changed.

Having made the changes above I was faced with the task of importing each XML file back into NextPVR until I remembered that the import facility (Settings / General/ Import Recordings) can (should ?) also handle a zip file (of XML files ?). I bundled up all the XML file for each season into a zip file and tried to import the zip file. Nothing happened. Checking the log files I can see that tha zip file is recognised, as are the XML files, but nothing happens to them after that:

2022-04-01 10:28:59.585 [DEBUG][79] {"current": "5.2.6.220206","available": "5.2.6.220206"}
2022-04-01 10:29:31.920 [DEBUG][105] Got request [192.168.86.50]: /import
2022-04-01 10:29:31.929 [DEBUG][105] Received import of type: application/x-zip-compressed
2022-04-01 10:29:31.940 [DEBUG][105] Thunderbirds.Are.Go.S01E01.Ring.of.Fire.xml
2022-04-01 10:29:31.940 [DEBUG][105] Thunderbirds.Are.Go.S01E02.Ring.of.Fire.xml
2022-04-01 10:29:31.940 [DEBUG][105] Thunderbirds.Are.Go.S01E03.Space.Race.xml
2022-04-01 10:29:31.940 [DEBUG][105] Thunderbirds.Are.Go.S01E04.Crosscut.xml
2022-04-01 10:29:31.940 [DEBUG][105] Thunderbirds.Are.Go.S01E05.Fireflash.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E06.Unplugged.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E07.Runaway.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E08.EOS.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E09.Slingshot.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E10.Tunnels.of.Time.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E11.Skyhook.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E12.Under.Pressure.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E13.Heavy.Metal.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E14.Falling.Skies.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E15.Relic.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E16.Breakdown.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E17.Heist.Society.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E18.Recharge.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E19.Extraction.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E20.The.Hexpert.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E21.Comet.Chasers.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E22.Designated.Driver.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E23.Chain.of.Command.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E24.Touch.and.Go.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E25.Undercover.xml
2022-04-01 10:29:31.941 [DEBUG][105] Thunderbirds.Are.Go.S01E26.Legacy.xml
2022-04-01 10:29:50.959 [DEBUG][4] Got request [192.168.86.50]: /services/service (system.logs)


Despite trying this import yesterday (April 1) this is NOT an April Fools Day question but a real request for help. Full logs attached.

Is it possible to do what I am trying to do or am I missing something ?

Thanks in advance for any help anybody can provide.

Regards.

Chris


Attached Files
.zip   logs-20220401-1029.zip (Size: 1.15 MB / Downloads: 0)
Server          Headless RPi4 4GB, RaspberryPI OS Lite on USB mounted SSD
Recordings: OpenMediaVault (v6.x) NAS, NFS share, mounted to RPi via autofs
Client:          Kodi on Firestick 4K
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,311
Threads: 739
Joined: Nov 2003
#2
2022-04-02, 04:16 PM
You can import either a single .xml, or a .zip file.

The .xml file can be called whatever you want.

When you try to import a .zip file, it's really intended for a zip file created earlier using the 'export recordings' feature. ie, it's specifically looking for the recurring-backup.xml and recording-backup.xml files within the zip. (it'll ignore random other xml files you might have put in there(
ceejayemm
Offline

Member

Posts: 124
Threads: 21
Joined: Sep 2019
#3
2022-04-03, 08:26 AM
Sub

Thanks for this explanation, I guess I will now have to resign myself to importing 100+ recording XML files individually to complete my re-org.

Regards.

Chris
Server          Headless RPi4 4GB, RaspberryPI OS Lite on USB mounted SSD
Recordings: OpenMediaVault (v6.x) NAS, NFS share, mounted to RPi via autofs
Client:          Kodi on Firestick 4K
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,519
Threads: 166
Joined: Jun 2007
#4
2022-04-03, 02:38 PM
(2022-04-03, 08:26 AM)ceejayemm Wrote: Thanks for this explanation, I guess I will now have to resign myself to importing 100+ recording XML files individually to complete my re-org.

You should search for NextTool in the forums. I think that you will find it will meet your needs.
ceejayemm
Offline

Member

Posts: 124
Threads: 21
Joined: Sep 2019
#5
2022-04-04, 04:49 PM
Martin

You previously supplied me with a version of NextImport on Forum post:

https://forums.nextpvr.com/showthread.ph...#pid557788 

In this post you also provided an outline on its options and use. Did you ever get round to adding the software and these notes to the Wiki ? If not it would be extremely useful as a reference point as my search of the forum as suggested by BrettB returned many references to the NextImport utility and many zip file versions of it, including the version referenced above. Other search results also seem to imply that NextImport is now called NextTool. Has NextTool been released anywhere in place of NextImport ??

Thanks

Chris
Server          Headless RPi4 4GB, RaspberryPI OS Lite on USB mounted SSD
Recordings: OpenMediaVault (v6.x) NAS, NFS share, mounted to RPi via autofs
Client:          Kodi on Firestick 4K
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 44,890
Threads: 862
Joined: May 2006
#6
2022-04-04, 05:23 PM
Yes it is now NextTool and it supersedes NextImport because a database change sub made. I know I should do a wiki page, I started one but I get bored easily doing it. Feel free to write one based on my posts here and I will upload it for you.

The syntax is the same for importing in NextTool as NextImport . I don't know if I have publicly uploaded the current version that has wmv and HDHomerun DVR metadata importing.

Martin
ceejayemm
Offline

Member

Posts: 124
Threads: 21
Joined: Sep 2019
#7
2022-04-04, 05:38 PM
Martin

I would happily have a go at writing such a page, not that it is something I have done for a long time :-). If you would be so kind as to cast your eye over it once its done. Are there any guides as to what to do and what is acceptable ?  Also what file type should be use (.txt, .md, .doc or something else) ? Would it be possible to get a look at your earlier attempt ?

Are there any new features/options I should know about beyond the post I referenced earlier? You say above you also support other file types, do you have any further details as to how these are handled ?  

If I am successful can you provide the utility and add a link to be able to access it ?

Regards.

Chris
Server          Headless RPi4 4GB, RaspberryPI OS Lite on USB mounted SSD
Recordings: OpenMediaVault (v6.x) NAS, NFS share, mounted to RPi via autofs
Client:          Kodi on Firestick 4K
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 44,890
Threads: 862
Joined: May 2006
#8
2022-04-04, 06:05 PM
Sure that would be great.  If you can get the initial formatting I can fill in some blanks.

The file needs to be in markdown (.md) format and I would suggest Visual Studio Code or Notepad+ with plugins.  They provide a WYSIWYG editor.

Attached is the current version.

Martin


Attached Files
.zip   NextTool-1.1.0.zip (Size: 159.51 KB / Downloads: 12)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  TV Guide Recording Buttons Out of Sync with Actual DVR Recording Status LinuxDVR 17 424 2022-11-19, 06:58 PM
Last Post: sub
  Linux Ending Tuner Recording Early For New Recording Despite Idle Tuners Available LinuxDVR 5 206 2022-11-18, 09:30 PM
Last Post: mvallevand
  Recording tuner ordering snagglewest 6 219 2022-11-17, 12:33 AM
Last Post: sub
  Can we tell NextPVR to rebuild the recording list? kamhouse 15 1,333 2022-10-26, 12:29 AM
Last Post: mlb
  Guide not showing current recording VCR58 6 247 2022-10-07, 07:25 PM
Last Post: mvallevand
  Advanced recording for something not in epg (yet) psycik 3 209 2022-10-03, 08:16 AM
Last Post: psycik
  Recording Next available Movie after Failure jw1 6 189 2022-09-26, 06:45 PM
Last Post: mvallevand
  Import recordings from TvHeadEnd? aTF6i 24 1,823 2022-06-16, 12:57 PM
Last Post: mvallevand
  Schedule advanced recording VCR58 2 312 2022-06-11, 11:19 PM
Last Post: VCR58
  Keep Awake During Remote Viewing of a Recording DarkJediTL 13 589 2022-05-25, 09:58 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