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 … 130 131 132 133 134 … 1231 Next »
How to undelete deleted video file

 
  • 0 Vote(s) - 0 Average
How to undelete deleted video file
Pilot
Offline

Member

Posts: 243
Threads: 27
Joined: Jul 2005
#11
2005-10-14, 05:01 AM
I think it would also help a lot if you just made it more difficult to delete a file (like have a confirmation). That would probably be a lot easier to implement than a recycler, but what do I know -- I ain't no developer of nuthin' no how....I reckon....
Chris
GBPVR system info intentionally left blank because I'm personally
insulted that you can't remember it from previous signatures.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#12
2005-10-14, 05:47 AM
Pilot Wrote:I think it would also help a lot if you just made it more difficult to delete a file (like have a confirmation). That would probably be a lot easier to implement than a recycler, but what do I know -- I ain't no developer of nuthin' no how....I reckon....
It took about three lines of code to delete the file normal system recycle bin. It'll probably take about 50 for a confirmation window, and will require a new skins file and changes to every GB-PVR skin etc.
blader_se
Offline

Senior Member

Posts: 484
Threads: 64
Joined: Aug 2004
#13
2005-10-14, 08:29 AM
jorm Wrote:I would also recommend adding a path to the recycler directory in xrecord video path so you will see recycled videos.

Thanks for the explanaition.

I'm running out of video paths, can I just add path number 5-10 manually in Config.xml?

Pilot - Did you know that XRecord already have this "Really delete?" confirmation...
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#14
2005-10-14, 12:06 PM
You can add as many paths as you want manually in the config.xml.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#15
2005-10-14, 12:09 PM
sub,

attached is my recycler class. Basically it is a predefined directory that if the recycler is active i move the file to instead of deleting it. Then I set the last modified time to the current system time so I know in what order to delete them.

There is a method in the recycler to delete the file called recycleIt takes a filename (full path) and the folder name so I can create the folders in the recycler directory.

Then I run perform audit. That sorts and removes.

Take a look at the code if you want to use it please feel free. if you have any questions just post or pm me.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jtokach
Offline

Member

Posts: 192
Threads: 36
Joined: Oct 2004
#16
2005-10-14, 02:53 PM
jorm Wrote:xrecord has a recycler included. When you do a "delete" and the recycler is active it moves it to a recycled directory (not the recycled bin). We do this for a couple of reasons. One mpegs are typically too big for your recycle bin two we can clean them up easier.

Correct me if I'm wrong, the only recycle bin file size restriction that I know of is that files larger than the capacity of the recycle bin will be permanently removed. The default is 10% of the total partition size. Based on other's server specs, I'm on the short end with 300GB but that still allows 30GB of deleted items.

Point is that I don't use xrecord and would like to see this as an option in gbpvr rather than a plugin. I understand why this was implemented it in xrecord and can appreciate the added value of managing recycled files through the UI.
-Jim
---------------------------------------------
GBPVR Website
GBPVR Wiki
jtokach
Offline

Member

Posts: 192
Threads: 36
Joined: Oct 2004
#17
2005-10-14, 03:42 PM
sub Wrote:It took about three lines of code to delete the file normal system recycle bin. It'll probably take about 50 for a confirmation window, and will require a new skins file and changes to every GB-PVR skin etc.

If the recycler is implemented, I wouldn't need a confirmation or would probably disable it given the option but if developed properly I could see implementing these as public methods for all devs to use and apply where confirmation is desired.

Looking at it, this feature is probably a must if gbpvr is going to expand into the non-techie realm.
-Jim
---------------------------------------------
GBPVR Website
GBPVR Wiki
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#18
2005-10-14, 03:46 PM
you do not need xrecord to use the recycler. It is just a component that comes with xrecord. I was just offering it as another possible solution if you dont want to use a plugin for it that is fine.

The problem is your windows recycle bin does not auto cleanup its files by default when you start running low on space. And with 2 gig mpegs it fills up quickly.

The restriction that you mentioned does not mean you can have "30GB of deleted items" it means you can delete a 30 gig file without it being permenantly deleted. You will fill up your recycle bin till your drive is full and all new recordings fail unless you find a 3rd party tool to do that.

And if you do use your recycle bin to hold movie files and find a way for them to automatically be cleaned up you will never be useful for non movie files since they will be deleted all the time.

Thus the recycler was born. If sub finds it useful and adds it to the core of gbpvr it is already written he would just need to itegrate with it and expose an api for deleting a file.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#19
2005-10-14, 04:47 PM
No offense Jorm, but I think the idea sounds a bit ugly.

I'm starting to question whether we really need this type feature. Sure, I probably make it a little easy to delete things at the moment. I'm tempted to just add a delete confirmation popup, and put the calls back to File.Delete(), or maybe SHFileOperation(FO_DELETE|FOF_ALLOWUNDO) so it goes to the system recycler.
jtokach
Offline

Member

Posts: 192
Threads: 36
Joined: Oct 2004
#20
2005-10-14, 04:56 PM
jorm Wrote:you do not need xrecord to use the recycler. It is just a component that comes with xrecord. I was just offering it as another possible solution if you dont want to use a plugin for it that is fine.

I misunderstood you then. I thought this was only available through the plugin.

jorm Wrote:The problem is your windows recycle bin does not auto cleanup its files by default when you start running low on space. And with 2 gig mpegs it fills up quickly.

The restriction that you mentioned does not mean you can have "30GB of deleted items" it means you can delete a 30 gig file without it being permenantly deleted. You will fill up your recycle bin till your drive is full and all new recordings fail unless you find a 3rd party tool to do that.

And if you do use your recycle bin to hold movie files and find a way for them to automatically be cleaned up you will never be useful for non movie files since they will be deleted all the time.

This is completely incorrect. The Recycle Bin works as FIFO within the designated percentage allotment per partition. It will never exceed the percentage allotment. The percentage allotment is sensitive to free space but based on total partition space. You've recreated the wheel, but like I said, your solution allows control of "recycled" files through the UI.
-Jim
---------------------------------------------
GBPVR Website
GBPVR Wiki
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,760 2012-09-30, 05:20 PM
Last Post: sub
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,107 2012-02-03, 02:41 AM
Last Post: slowtech
  Two Channels Without Video skycyclepilot 5 3,599 2011-10-29, 07:49 PM
Last Post: sub
  Zehd's Video Library Slick Skin Snooze 0 2,259 2011-09-03, 01:09 AM
Last Post: Snooze
  New Machine (probably old problems), Video Render Options jvcleave 12 5,556 2011-02-01, 08:37 AM
Last Post: stustunz
  No Video in PVRX2 GUI TonySmith35 13 5,101 2011-01-09, 10:31 PM
Last Post: steevo
  Attempts to play .dvd files in Video Library results in PVRX2 not responding Jwbrit 2 2,077 2010-11-04, 11:37 PM
Last Post: Jwbrit
  deleted pending recording stays red in search guide speising 4 2,398 2010-11-02, 03:56 PM
Last Post: sub
  Resolution Issues when re-encoding captured video bgrieb 5 2,998 2010-11-02, 03:52 AM
Last Post: mvallevand
  Skip forward during playback freezes video then audio smiffypr 3 2,897 2010-10-19, 12:46 AM
Last Post: smiffypr

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

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

Linear Mode
Threaded Mode