Search found 9 matches

by darknicht
Fri Oct 27, 2017 10:22 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

Closing the loop on this question in case anyone else is looking for an example. Below is what I ended up using to create the new recording rule... use strict; use warnings; use XML::LibXML; use LWP::UserAgent; my $browser = LWP::UserAgent->new; my $response = ""; my $backend = "myth_backend_hostnam...
by darknicht
Fri Oct 20, 2017 10:01 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

Thanks for the link. It looks like it has all the logic I'm missing. I should be able to use that to get something working for myself.
by darknicht
Fri Oct 20, 2017 3:24 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

Here's a snippet from my Python version that may help you. <snip> Thanks. That looks like it'll push me in the proper direction. At the very least it gives me an indication of which parameters are mandatory for the API call. I was figuring I'd have to do a code-dive or trial and error to figure out...
by darknicht
Wed Oct 18, 2017 11:54 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

Try looking here: https://www.mythtv.org/wiki/Perl_API_examples#Writing_to_the_database That's pretty close to what I imagine I'll need to do. My last piece of the puzzle is to figure out if there's an easy way to parse through the DOM and pass all the key=>value pairs found. Otherwise, I'll just p...
by darknicht
Wed Oct 18, 2017 11:50 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

wouldn't it be possible to use one of the toString/serialize methods to pass the DOM instead using individual nodes? That's what I was looking for an example of doing. I was hoping somebody had a slick example already cooked up that I could run with. I'm not really familiar with manipulating the DO...
by darknicht
Tue Oct 17, 2017 7:49 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

I can't help with the Perl bindings...but are you sure you need them? Can you not create a custom recording schedule in Myth and let it set up the rules? <snip> Craig I could create a custom rule every time I think of a show or movie that I might want to see if it ever makes it to one of the TV cha...
by darknicht
Tue Oct 17, 2017 7:33 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

Re: AddRecordSchedule Perl example?

Not a perl person, but did a quick google of "perl http post xml". looks like you need to use LWP::UserAgent and HTTP::Request to create an http post request. Yeah, I saw how to post via UserAgent, but I was hoping that there was a method to do so using LibXML since it can get from a URL. I'll like...
by darknicht
Mon Oct 16, 2017 5:37 pm
Forum: Services API
Topic: AddRecordSchedule Perl example?
Replies: 13
Views: 2472
Canada

AddRecordSchedule Perl example?

Can anyone supply a Perl LibXML example for using Dvr/AddRecordSchedule in v29? I am knocking together a small program to search the guide for movies that meet my search criteria and schedule them for recording when/if they show up. I've got everything working except POSTing the schedule back to Add...
by darknicht
Thu Sep 28, 2017 11:13 pm
Forum: General Discussion
Topic: [SOLVED] Metadata lookup fails in 0.29 on 16.04
Replies: 17
Views: 3842
Canada

Re: [SOLVED] Metadata lookup fails in 0.29 on 16.04

I just wanted to mention that I had the same issue after upgrading from Mythbuntu 14.04/0.27 to Ubuntu 16.04/0.28 I had intermittent failures with mythmetadatalookups erroring out with code 128. It turned out that only my master backend was successfully running mythmetadatalookup. Both slave backend...