Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev
[PATCH] Control duplicates by channel ID
 

Index | Next | Previous | View Flat


david at shay

Aug 2, 2007, 9:49 PM


Views: 2291
Permalink
[PATCH] Control duplicates by channel ID

Attached is a patch that controls duplicates by channel ID.

It adds a new option to the Scheduling Options recording rule screen
that can be set to either "Match duplicates Ignoring Channel ID"
(which is the current behavior), or the new behavior "Match duplicates
considering channel ID".

You can then setup multiple record rules that either specify certain
channels or prefer certain inputs, and if the new match duplicates
setting is selected, you will get multiple copies of the same show.
My primary purpose for the patch is to be able to record both a
high-def and low-def version of the same show, but there are many
other uses as well as pointed out in other threads.

I've created a new field called "dupchanid" in programinfo that
controls this with two new constant values -- kDupIgnoreChanID and
kDupConsiderChanID. Yes, it could have been a boolean, but I
purposely did it this way so that it could be extensible later to
other things, such as just source ID or some other variant just by
setting new values. (perhaps the field shouldn't be called dupchanid,
then -- let me know if you've got a better name for it) I've added
these to the to and from string lists and updated the protocol to
version 36 with this patch. There is a a new field called dupchanid
in the record table as well, so an update to dbcheck.cpp is included
as well.

The main changes to get this implemented were in the big scheduler
query in scheduler.cpp as well as in IsSameProgram in programinfo.cpp.

I've tested this with and without programid's, and for both programs
on at the same time as well as those that are on at different times,
and it "works for me". Please test and give me feedback.

Thanks.
Attachments: dupchanid.patch.gz (3.90 KB)

Subject User Time
[PATCH] Control duplicates by channel ID david at shay Aug 2, 2007, 9:49 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 2, 2007, 10:06 PM
    Re: [PATCH] Control duplicates by channel ID bjm at lvcm Aug 3, 2007, 7:06 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 3, 2007, 7:30 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 3, 2007, 11:47 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 3, 2007, 11:58 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 4, 2007, 8:51 AM
    Re: [PATCH] Control duplicates by channel ID bjm at lvcm Aug 4, 2007, 10:29 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 4, 2007, 4:19 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 5, 2007, 5:42 AM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 5, 2007, 10:01 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 5, 2007, 12:06 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 5, 2007, 12:47 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 5, 2007, 12:49 PM
    Re: [PATCH] Control duplicates by channel ID bjm at lvcm Aug 5, 2007, 5:31 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 5, 2007, 8:08 PM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 5, 2007, 9:30 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 6, 2007, 4:05 AM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 6, 2007, 11:58 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 6, 2007, 7:54 PM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 7, 2007, 7:26 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 7, 2007, 11:56 AM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 7, 2007, 12:57 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 7, 2007, 4:47 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 7, 2007, 9:48 PM
    Re: [PATCH] Control duplicates by channel ID david at shay Aug 8, 2007, 12:45 PM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 8, 2007, 7:06 PM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 8, 2007, 9:52 PM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 9, 2007, 11:54 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Aug 10, 2007, 12:00 PM
    Re: [PATCH] Control duplicates by channel ID bjm at lvcm Aug 10, 2007, 4:05 PM
        Re: [PATCH] Control duplicates by channel ID david at istwok Aug 11, 2007, 9:43 AM
    Re: [PATCH] Control duplicates by channel ID david at istwok Aug 11, 2007, 9:36 AM
        Re: [PATCH] Control duplicates by channel ID david at shay Sep 6, 2007, 7:04 PM
    Re: [PATCH] Control duplicates by channel ID david at istwok Sep 8, 2007, 9:47 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.