NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 47 48 49 50 51 … 93 Next »
Video Library Archive addon beta

 
  • 0 Vote(s) - 0 Average
Video Library Archive addon beta
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2006-12-14, 10:58 AM
i recently made a batch to "archive" shows to a new location and adjust the database to reflect it, so all info is retained..
Code:
sqlite3.exe -separator "," "%db%" "UPDATE RECORDING_SCHEDULE SET filename = 'z:\newlocation\show1.mpg' where filename like 'show1.mpg';"
and added some batch file copy bits, and a profile to allow 'archiving' from the video library...Big Grin
archive.bat:
Code:
@echo off
echo starting from %cd%  >archive.log
echo %0 %1 %2 %3 %4 %5 %6 %7 %8 %9  >>archive.log
set db=GBPVR.DB3
set oid=
for /f "usebackq tokens=1,2 delims=," %%v in (`sqlite3 "%db%" "SELECT programme_oid FROM recording_schedule where filename like '%%%~nx1'; " `) do set oid=%%v
echo oid = %oid%  >>archive.log
if "%oid%" EQU "" (
echo.  >>archive.log
echo ******** That file is not in GBPVR database!  >>archive.log
goto :eof
)
echo. >>archive.log
if not exist "%~dp2" md "%~dp2"
copy "%~1" "%~2"
echo copyerrors = %errorlevel%  >>archive.log
if not errorlevel 1 (
echo running sqlite >>archive.log
sqlite3.exe -separator "," "%db%" "UPDATE RECORDING_SCHEDULE SET filename = '%~2%~nx1' where filename like '%~1';"
del "%~f1" 2>NUL
) else (
echo Copy problem!  >>archive.log
)
echo Done.  >>archive.log
ECHO. >>archive.log
ECHO. >>archive.log
goto :eof

profile:
Code:
<Conversion name="Archive to k" exe="archive.bat" cmd=" {SOURCE_FILE} z:\newlocation\archive\ " targetExtension=".avi" />

place archive.bat in gbpvr\third party\ dir and adjust profile in config.xml to reflect your needs..
i'll probably make an installer soon..will make a nice n simple conflict-free archiving solution...Smile
[so you can use multiple drives to store files and offload main rec drive seamlessly!]

Enjoy...Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#2
2006-12-14, 02:37 PM
The video archive plug-in includes an EXE that will do this too (and ccan be used without the video archive plug-in if desired). it will move all files older than N days old (where N is configurable) and can choose from a list of destinations, where it will either try to (i) move all that fit to the first destination in the list and, if more space is needed look in the next destination in the list and so on or (ii) it can be configured to move files to the destination with the most free space, in which case the drives will more or less fill up evenly over time.

Jeff
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2006-12-14, 07:37 PM
i noticed that....i just wanted one for one-offs and such...tho i did see how the automatic aspect is very usefull...Smile
[plus this has the added 'advantage' of being user modifyable to some extent for customization..]

also played with ntfs mountings but quickly realized that although you can mount a drive as multiple dirs under your recording directory, you couldn't actually use it practically with GBPVR....Sad
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,832 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,263 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 6,585 2021-03-07, 09:20 PM
Last Post: Syler
  Resuming a video imilne 28 14,599 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,275 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,483 2015-08-06, 10:43 PM
Last Post: sub
  Inset Video - Stop mvallevand 2 2,082 2013-08-07, 09:57 PM
Last Post: mvallevand
  Video Library Fanart Transparency tieke 7 3,909 2013-01-09, 08:23 AM
Last Post: tieke
  NMT Video Playback - does it receive start/stop events psycik 8 3,413 2012-07-15, 10:01 PM
Last Post: mvallevand
  Resume or Restart dialog for video psycik 6 3,035 2011-12-22, 02:52 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