NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 16 17 18 19 20 … 101 Next »
MediaPortal recordings import

 
  • 0 Vote(s) - 0 Average
MediaPortal recordings import
fritzelly
Offline

Junior Member

Ireland
Posts: 14
Threads: 3
Joined: Jan 2024
#1
2024-01-07, 08:55 PM
Is there any powershell/batch script to convert the MediaPortal recordings XML file to NextPVR format for importing?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#2
2024-01-07, 09:01 PM
Can you zip and send me the XML file that you are talking about I will see. If it is bigger than 2MB you need to use an external link.

Martin
fritzelly
Offline

Junior Member

Ireland
Posts: 14
Threads: 3
Joined: Jan 2024
#3
2024-01-07, 09:34 PM
Here attached - I've also attached the powershell script I have but while everything looks the same when I try to import the file I get "Nothing imported" - am I missing something else, do the recordings need to be in their own folders


Attached Files
.zip   ps1.zip (Size: 1.66 KB / Downloads: 5)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#4
2024-01-07, 10:09 PM
I don't know the answer since I can't really debug a ps1 script but filename will need the full filename of the filename including extentions and I didn't see that in the script.

No recordings don't need to be in their own folder.

Does MP create one of these XML files per recording? Doesn't look too hard to import.

Martin
fritzelly
Offline

Junior Member

Ireland
Posts: 14
Threads: 3
Joined: Jan 2024
#5
2024-01-07, 11:24 PM (This post was last modified: 2024-01-07, 11:26 PM by fritzelly.)
I've attached my final code which is working (maybe it will help someone else) bar at least this one below (have over 70 recordings to import)

I can't see anything wrong with the XML
Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
  <filename>D:\recordings\70s Party Night!-NOW 70s2021-04-21.ts</filename>
  <channel>NOW 70s</channel>
  <status>READY</status>
  <startTime>2021-04-21 05:13</startTime>
  <endTime>2021-04-21 05:13</endTime>
  <size>1417</size>
  <channel_OID>1</channel_OID>
  <title>70s Party Night!</title>
  <subtitle></subtitle>
  <description>From the era of Glam Rock, New Wave &amp; Disco - it&apos;s all the party hits from just one decade - the 1970s! Platform boots &amp; flares at the ready?</description>
  <uid>1</uid>
  <firstrun>true</firstrun>
</recording>


Attached Files
.zip   MP_import.zip (Size: 884 bytes / Downloads: 6)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#6
2024-01-07, 11:43 PM
Changing the .xml to .ts makes more sense. You may need to XML encode any fields that have non XML characters.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#7
2024-01-07, 11:58 PM
Do you have an XML sample for episodic shows or just Films?

Martin
fritzelly
Offline

Junior Member

Ireland
Posts: 14
Threads: 3
Joined: Jan 2024
#8
2024-01-08, 05:19 PM
Attached


Attached Files
.zip   episode.zip (Size: 627 bytes / Downloads: 6)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#9
2024-01-08, 05:38 PM
Ok thanks it doesn't have S/E info either so I wasn't sure how MP does that. Your last post looked more like Rytec XMLTV with the EPISODENAME being a catchall.

Martin
fritzelly
Offline

Junior Member

Ireland
Posts: 14
Threads: 3
Joined: Jan 2024
#10
2024-01-08, 07:36 PM
Not sure what you mean "doesn't have S/E info either"

Here's another one (nearly all the recordings are one off shows)

Code:
<tags>
<tag>
<SimpleTag>
<name>TITLE</name>
<value>Revolution in Colour</value>
</SimpleTag>
<SimpleTag>
<name>COMMENT</name>
<value>1909-1918: The story of Ireland's struggle for independence during the early decades of the 20th Century is brought vividly to life with period photographs and footage shown in colour. (Part 1 of 2)</value>
</SimpleTag>
<SimpleTag>
<name>GENRE</name>
<value> </value>
</SimpleTag>
<SimpleTag>
<name>CHANNEL_NAME</name>
<value>PBS America</value>
</SimpleTag>
<SimpleTag>
<name>EPISODENAME</name>
<value>1909-1918</value>
</SimpleTag>
<SimpleTag>
<name>SERIESNUM</name>
<value> </value>
</SimpleTag>
<SimpleTag>
<name>EPISODENUM</name>
<value> </value>
</SimpleTag>
<SimpleTag>
<name>EPISODEPART</name>
<value> </value>
</SimpleTag>
<SimpleTag>
<name>STARTTIME</name>
<value>2022-01-24 23:00</value>
</SimpleTag>
<SimpleTag>
<name>ENDTIME</name>
<value>2022-01-25 00:00</value>
</SimpleTag>
<SimpleTag>
<name>PROGRAMSTARTTIME</name>
<value>2022-01-24 23:00</value>
</SimpleTag>
<SimpleTag>
<name>PROGRAMENDTIME</name>
<value>2022-01-25 00:00</value>
</SimpleTag>
</tag>
</tags>
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Since v7: EPG mostly "no listings", and channels change during recordings :'( rightbryce 38 2,742 2025-05-19, 03:18 PM
Last Post: erik123
  How to Trigger EPG Import? banshee2005 4 279 2025-05-07, 02:30 AM
Last Post: mvallevand
  Failed recordings "Operation timed out" Stanno 8 409 2025-04-27, 07:26 PM
Last Post: Nick017
  Can't delete scheduled recordings Druhl 3 161 2025-04-22, 09:10 PM
Last Post: mvallevand
  Manual Recurring Recordings jcole998 3 188 2025-04-17, 09:10 PM
Last Post: mvallevand
  NPVR Windows recordings folder cleanup.... Colincam 21 2,840 2025-04-16, 07:38 PM
Last Post: mvallevand
  Portions of recordings are missing MovieBuff 6 419 2025-04-14, 03:15 PM
Last Post: MovieBuff
  Recordings not displaying Jakesty 4 211 2025-04-12, 01:15 PM
Last Post: mvallevand
  Scheduled Late Night through-midnight recordings suddenly stop at midnight Andre_Mikulec 4 309 2025-03-29, 12:56 AM
Last Post: mvallevand
  postprocessing tsduck on recordings Druhl 3 271 2025-03-07, 02:24 AM
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