NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 59 60 61 62 63 … 93 Next »
GBPVR.pm - initial release for discussion

 
  • 0 Vote(s) - 0 Average
GBPVR.pm - initial release for discussion
dwestbrook
Offline

Junior Member

Posts: 41
Threads: 7
Joined: Feb 2005
#1
2005-04-28, 01:36 AM
I have started to create a perl module for accessing the GBPVR (and Video Archive plugin db) database based upon Class::DBI and DBD::ODBC. The goal is to provide an easy-to-use object-oriented interface for both reading and writing (w/transactions) to the database where knowledge of actual SQL or schema is not required.

I'm posting the initial creation here and would welcome comments/discussion, specifically:
  1. Is this a good thing to have?
  2. Will you use it?
  3. Do you have specific uses in mind?
  4. Do you have any comment on the structure (names space, method names, relationships, etc)?
  5. Comments on TODO items in the doc


Attached is a zip with the .pm and docuemention in POD and HTML formats with many more details.

As a short summary, these are the table classes provided:
[INDENT] GBPVR::CDBI::RecordingSchedule
GBPVR::CDBI::Programme
GBPVR::CDBI::PlaybackPosition
GBPVR::CDBI::Channel
GBPVR::CDBI::CaptureSource
GBPVR::CDBI::VA::ArchiveTable
[/INDENT]

And here are a few snippets to help illustrate the usage:
Code:
use GBPVR;
# search listings for titles of Star*
@rows = GBPVR::CDBI::Programme->search_like(name => 'Star%');
# find recorded shows
@rows = GBPVR::CDBI::RecordingSchedule->search(status => 2);

# find and output details for pending recordings
my @rows = GBPVR::CDBI::RecordingSchedule->search(status => 0);
@rows = sort { $a->manual_start_time cmp $b->manual_start_time } @rows;
foreach my $row (@rows){
  printf "%-20s %8s %s - '%s'\n",
    $row->manual_start_time,
    $row->programme_oid->channel_oid->name,
    $row->programme_oid->name,
    $row->programme_oid->sub_title;
  printf "   %s\n", $row->programme_oid->description;
}
botha
Offline

Junior Member

Posts: 3
Threads: 0
Joined: May 2005
#2
2006-02-18, 06:00 PM
I'm curious if you have pursued this any further. I tried to download the module but it is comes up as a corrupt zip file. I would love to get a copy and try it.


thanks!
smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#3
2006-02-18, 06:31 PM
It's a known problem with internet explorer. Download the file, extract the file it contains and put ".zip" on the end. Then try that zip file, sort of a zip file within a zip file.
jsteele
Offline

Senior Member

Posts: 434
Threads: 63
Joined: Dec 2004
#4
2006-02-18, 09:01 PM
Yes, I'd like to use it, I do a lot of work in PERL/PERLScript-ASP. What I'd really like to see is a generalized interface module to get status, control functions, etc.
ASUS A7V880, Athlon XP 3000+, 1024MB, 250GB (Prog/DB), 40GB (Buffer/Temp), 670GB SATA (Video Library), PVR150MCE Video (2), NEC DVD+/- RW, Liteon DVD, nVidia FX5600 AGP, Onboard AC 97 Audio, Hauppauge Remote, Girder, USBUIRT,802.11G WLAN, nVidia Platinum Decoders
jsteele
Offline

Senior Member

Posts: 434
Threads: 63
Joined: Dec 2004
#5
2006-02-18, 09:03 PM
smeghead Wrote:It's a known problem with internet explorer. Download the file, extract the file it contains and put ".zip" on the end. Then try that zip file, sort of a zip file within a zip file.

I don't think it's a problem with IE. I only have this problem on this forum, I can click and download from other sites all day and night without a problem. It is definately RELATED to IE, but only with respect to this forum.
ASUS A7V880, Athlon XP 3000+, 1024MB, 250GB (Prog/DB), 40GB (Buffer/Temp), 670GB SATA (Video Library), PVR150MCE Video (2), NEC DVD+/- RW, Liteon DVD, nVidia FX5600 AGP, Onboard AC 97 Audio, Hauppauge Remote, Girder, USBUIRT,802.11G WLAN, nVidia Platinum Decoders
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#6
2006-02-18, 09:18 PM
Yeah, it is something to do with the web host used for the forums. I've talked to the hosting guy, but he didnt come up with a cause.

Strangely it only affects some users. I have two machines here that IE can open every zip attachment without fail, and one further machine that has problems. Its very strange.
botha
Offline

Junior Member

Posts: 3
Threads: 0
Joined: May 2005
#7
2006-02-19, 05:55 AM
Thanks for the tip. I was able to start using the module. I work a lot with perl and have written scripts connecting to SQL but not Access so this will save me some time. I'm not quite sure what I'll use for just yet but this has some interesting potential.

BTW, thanks Sub for GBPVR. I have it running with 2 MVPs and it works great!
dwestbrook
Offline

Junior Member

Posts: 41
Threads: 7
Joined: Feb 2005
#8
2006-02-19, 03:21 PM
botha Wrote:Thanks for the tip. I was able to start using the module. I work a lot with perl and have written scripts connecting to SQL but not Access so this will save me some time. I'm not quite sure what I'll use for just yet but this has some interesting potential.

Keep in touch (either on this thread or my dwestbrook gmail account) with how it goes, bugfixes, potential directions ... I haven't really touched it since i posted it originally, but would like to get back to it if there's a good place to go with it ...

I'll probably post it up to CPAN, too, so it's easier to view/download, etc .. any thoughts on the namespace? as-is or something better (maybe PVR::GBPVR:: or something)?
dwestbrook
Offline

Junior Member

Posts: 41
Threads: 7
Joined: Feb 2005
#9
2006-02-23, 02:25 PM
botha Wrote:Thanks for the tip. I was able to start using the module.

I've released it to CPAN here: http://search.cpan.org/perldoc?GBPVR::CDBI

Should be easier to install from there and easier to track updates/etc.

thanks,
--david
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 34,633 2015-08-20, 05:11 PM
Last Post: sub
  Roku & GBPVR pvruser 16 11,688 2011-10-16, 08:31 PM
Last Post: pvruser
  (Yet Another) Rename Helper script for GBPVR & NPVR pvruser 2 2,803 2011-07-22, 01:27 AM
Last Post: pvruser
  Live GBPVR CD/DVD/Thumb drive :D pBS 101 30,057 2010-01-03, 06:22 AM
Last Post: pBS
  some help on basic gbpvr plugin code Etacovda 12 4,868 2009-06-14, 08:24 PM
Last Post: Etacovda
  Linking gbpvr.db3 to Access 2003: get readonly tables Khurram 5 4,027 2008-09-11, 08:35 AM
Last Post: Khurram
  UAC and Vista with GBPVR systemshark 2 2,006 2008-08-03, 07:20 AM
Last Post: systemshark
  Controlling an Audio Receiver with the GBPVR remote erik 7 2,844 2008-06-01, 08:31 PM
Last Post: erik
  SkipTool, do you use the GBPVR SQLite database? mkenyon2 1 1,660 2008-04-21, 07:30 PM
Last Post: pastro
  GBPVR.Public.EventTypes ACTCMS 4 2,150 2008-04-11, 01:02 AM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode