Free the mouse Replay ReplayTheme
Home | Changes | Index | Search | Go

About ReplayTheme

ReplayThemes are keyword based recordings. This structure is also used for ReplayZones.

4.1 and 4.3:

Offset Size Name Notes
0 4 flags flags bitmask
4 4 suzuki_id SuzukiID of zone to record
8 4 minutes minutes to store for this theme
12 52 keywords words to search for

4.5 and 5.0:

Offset Size Name Notes
0 4 flags flags bitmask
4 4 suzuki_id SuzukiID of zone to record
8 4 minutes minutes to store for this theme
12 48 keywords words to search for

Flags

flags:

Bitmask Shift amount Meaning
0x00000001 0 Actor search
0x00000002 1 Director search
0x00000004 2 Title search
0x00000008 3 Title match
0x00000010 4 Description search
0x00000020 5 Random

How It Works

When a program is compared against a theme, the result is a matching score. The pseudocode below shows the order and exact meaning of the flags and fields:

If the program's PPV ProgramFlag is set
  if automatic PPV authorization isn't enabled
    return 0
if suzuki_id is set
  if the program's SuzukiString contains that ID
    return 4096
if the Random flag is set
  select a random number betweeen 0 and ??? * 24
  if it's < 5, return 50
  else, return 0
Trim any trailing whitespace from the end of the keywords
if the Title match flag is set
  if keywords exactly match the program's title (including case and punctuation)
    return 100
  else
    return 0
if the Title search flag is set
  if MatchThemeString(title)
    return 100
if the Actor search flag is set
  if MatchThemeString(actor) or MatchThemeString(guest)
    return 99
if the Director search flag is set
  if MatchThemeString(director)
    return 98
if the Description search flag is set
  if MatchThemeString(episode_title) or MatchThemeString(description)
    return 97
return 0
-- ToddLarason - 22 Mar 2002

-- LeeThompson - 12 May 2003


Your post will appear before this form in chronological order (newest at bottom)

Topic ReplayTheme . { Edit | Attach | Ref-By | Printable | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.5 - 12 May 2003 - 17:09 GMT - LeeThompson
Parents: GuideSnapshot > ReplayChannel
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.