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) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 407 408 409 410 411 … 1231 Next »
how to import mpgs into Recordings->Ready list?

 
  • 0 Vote(s) - 0 Average
how to import mpgs into Recordings->Ready list?
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#11
2007-10-14, 02:49 AM
sub Wrote:You could use the 'import recordings' feature in the config app. To see the file format, look at the recordings-dump.xml file.

I don't find this option, where is it?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#12
2007-10-14, 02:54 AM
its in config under plugins bottom right corner
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#13
2007-10-14, 03:09 AM
stustunz Wrote:its in config under plugins bottom right corner

I find it now ... I'm blind. What do I do if I don't have a recording-dump.xml?
Is there a way I can create one by hand?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#14
2007-10-14, 03:12 AM
i think you can if you look at the structure by opening the one(recording-dump.xml) that you will find in your gbpvr folder
use notepad to edit/look at it
i havent tried
i did think about using word to import my folders/file names then turn it into the same file structure but am not sure if it would work
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#15
2007-10-14, 03:51 AM
There should be one in your gbpvr directory, but if there isnt then hit the 'export recordings' button to generate a recordings-dump.xml.
ApexHack
Offline

Member

Posts: 184
Threads: 34
Joined: Mar 2006
#16
2007-10-14, 04:10 AM
Does it ask for the xml file or does it need to be called recordings-dump.xml? I'm still working on building an xml file to try.
[SIZE="1"]1.3.11 / XP Pro SP2 / P5VD2-MX-SE {VIA P4M890 VT8237A} / E2200 / 2GB / 2.8TB / HVR1800 x 1, HVR1600 x 2 / 1 PCH[/SIZE]
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#17
2007-10-14, 04:14 AM
just asks to look for a xml file
so you can call it whatever
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#18
2007-10-14, 07:20 AM
Wakalaka Wrote:I want to do this because when I upgraded from 0.99.6 to 1.00.16 I lost all of my recordings from Recordings->Ready, and want to put them back. It's also better because of the show groups so you don't have so many videos to browse through.

do you use ntfs on your recordings drive? if so, the descriptions should still be attached to the files if they haven't been copied to a fat32 drive..
do a "notepad showname.mpg:metadata.xml" to see if they exist..
there's an auto-import batch file or a import program to use if they are still attached..Big Grin check the wiki for 'import'
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#19
2007-10-14, 07:27 AM
thats the bugger
sorry bit slow how do you do this exactly?
do a "notepad showname.mpg:metadata.xml" to see if they exist..?????
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#20
2007-10-14, 09:21 AM (This post was last modified: 2007-10-14, 01:41 PM by pBS.)
Smile if the show filename is "show.mpg", run from a cmd line:
notepad show.mpg:metadata.xml

that's it..
if it says not found..they aren't there..
to see if you have the syntax right, you can add one to any file like this:
echo test>>file.ext:metadata.xml
then try the command on that file..it should come up then, showing the command was correct..then try it on your show.

i wrote a batch file to build a recordings-dump.xml from all files in recordings subdir..Big Grin
run it with the path to your files.. eg: recoverrecordings.bat e:\recordings
if they are there there will be stuff in resulting file..
then go into config/plugins tab and import them..

RecoverRecordings.bat
Code:
@echo off
echo.
echo. Generating Recording Import data for all shows in %~1\ to
echo.    %~1\recording-dump.xml
echo.
echo  Errors logged to "no-metadata.log"
echo.
echo                     Please Wait....[up to 5 mins]
echo.
if %1=="" goto :error
set dumpdir="%~1\"
set orgdir=%cd%
cd /d %dumpdir%
del /q no-metadata.log>NUL 2>NUL
FOR /F "tokens=*" %%a IN ("<?xml version="1.0" encoding="UTF-8"?>") DO ECHO %%a > "%dumpdir%recording-dump.xml"
FOR /F "tokens=*" %%j IN ("<recordings>") DO ECHO  %%j >> "%dumpdir%recording-dump.xml"
FOR /F "usebackq tokens=*" %%F IN (`dir /b /s *.avi *.mpg`) DO call :add "%%F" 2>>no-metadata.log
FOR /F "tokens=*" %%x IN ("</recordings>") DO ECHO %%x >> "%dumpdir%recording-dump.xml"
goto :next

:add
FOR /F "usebackq tokens=*" %%F IN ("%~1:metadata.xml") DO (
if NOT "%%F"=="<?xml version="1.0" encoding="UTF-8"?>" (echo    %%F >>"%dumpdir:~1,-1%recording-dump.xml")
if "%%F"=="</recording>" echo.>>"%dumpdir:~1,-1%recording-dump.xml")
)
::pause
goto :eof

:next
echo.
echo Done.
echo.

:end
FOR /F "usebackq tokens=1,2,3,* delims=<>" %%F IN ("%dumpdir:~1,-1%recording-dump.xml") DO (if "%%G"=="filename" (call :nameit "%%H")
)
pause

cd /d %orgdir%
::start "Result" notepad "%dumpdir:~1,-1%recording-dump.xml"
goto :eof

:error
echo error.. mustadd path eg. recoverrecordings.bat e:\mpg
pause
goto :eof

:nameit
echo  Found:   %~nx1
goto :eof
use quotes on input path..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Live TV and recordings do not match greg in kansas 8 7,255 2013-02-22, 06:35 PM
Last Post: sub
  Can't view recordings on pc jerry430 8 6,880 2013-01-21, 07:27 PM
Last Post: jerry430
  Live TV not showing anything although recordings are OK. Pls advise. seymoria 8 4,895 2012-08-07, 05:07 PM
Last Post: ACTCMS
  CSI Miami Recordings Always In Spanish ga_mueller 6 4,728 2012-06-12, 12:41 AM
Last Post: mikeh49
  Recordings missing after switching hard drive tegat 8 5,135 2011-12-21, 03:00 AM
Last Post: tegat
  Recordings and live TV fail with TS mux dvasco 4 2,781 2011-06-22, 05:47 PM
Last Post: dvasco
  Stream errors in recordings with GBPVR seymoria 11 4,737 2011-06-19, 06:44 PM
Last Post: seymoria
  Lost all my recordings pduncan67 2 2,055 2011-02-27, 03:12 PM
Last Post: pduncan67
  Zero byte recordings chuck_2330 0 1,461 2011-02-09, 01:25 PM
Last Post: chuck_2330
  XMLTV import with UTF encoding fails (also valid for NPVR) miniGranis 4 2,359 2011-01-29, 08:16 PM
Last Post: miniGranis

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

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

Linear Mode
Threaded Mode