NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 9 10 11 12 13 … 93 Next »
how does RecordingService.ArchiveRecording work exactly?

 
  • 0 Vote(s) - 0 Average
how does RecordingService.ArchiveRecording work exactly?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2012-11-30, 12:48 AM
Hi does anyone know how

RecordingService.ArchiveRecording()

works exactly?

I'm wanting to be able to move a entire group of recordings (ie all recordings in a folder, like "Stargate") to another recording directory. This directory might contain 10 (or 100 or whatever) recordings.

Can I just call RecordingService.ArchiveRecording() for every item to move, and that will queue them up to be moved?

Also if that is the case, what happens if during the move I request they be moved again?

eg first I move 10 Stargate recordings to "Tv Shows" recording directory
then I decide I want to move them to "SciFI Tv Shows" whilst its moving number 5.

Does it just wait until that move is finish then reprocess the 10 to move again? (or just add the new 10 to the list of moves, so it has 15 moves in the list, 5 of which will be to the old location)

I noticed there is a .CurrentlyArchiving() method which returns true/false which I could use if ArchiveRecording doesnt work that way at all (ie make my own queue and call .CurrentlyArchiving() every few seconds to move to the next item to move).

TIA
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#2
2012-11-30, 03:10 AM
From memory it queues the up and does them one at a time. If you move an item again, it'll process each move request in sequence.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2012-11-30, 04:53 AM
oh cheers, thats fine then, dont have to write my own queue system Smile
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2012-11-30, 05:53 AM
getting this error when i try and do the ArchiveRecording command

Code:
2012-11-30 18:50:15.869    [ERROR][16]    Unable to find target destination directory: D:\Videos\NPVR Recordings\Users\john\TV Shows
that directory does exist on disk, and even with trailing \ which gave this error
Code:
Unable to find target destination directory: D:\Videos\NPVR Recordings\Users\john\TV Shows\

im passing in the full path to the archive command, when i passed in the recordingdirectoryid i got this error
Code:
2012-11-30 18:48:08.861    [ERROR][16]    Unable to find target destination directory: [john - TV Shows]
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2012-11-30, 11:01 AM
silly me i forgot to remove the "[" and "]" from the recordingdirectoryid, passing in "john - TV Shows" works perfectly Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How Does "Use S01E01 File naming format if possible" work puck64 7 5,336 2015-08-25, 10:21 AM
Last Post: puck64
  How does @visible work? mvallevand 11 4,589 2011-05-19, 02:49 AM
Last Post: sub
  1.0.8: LoadRecordingSchedule doesn't work anymore? Remco 4 2,018 2007-07-28, 08:27 AM
Last Post: Remco
  Make GBPVRPlugInSkeleton work? capone 4 1,878 2007-06-10, 09:16 PM
Last Post: capone
  Does .NET 2.0 work with GBPVR? mitcheloc 2 1,834 2005-10-07, 06:38 AM
Last Post: mitcheloc
  gbpvr without recordingservice etc loading reven 9 2,558 2005-05-17, 02:42 AM
Last Post: markm
  Weather Plugin - Some cities wont work 0 517 Less than 1 minute ago
Last Post:

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

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

Linear Mode
Threaded Mode