<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/xslt/html.xsl"?>
<page 
	title="software - MythTV::Suggest | robert klep"
	description="MythTV::Suggest - TiVo-like suggestions for MythTV"
	keywords="mythtv, suggestions, tv, tivo, bayes, bayesian, learning"
	>
	<content>

		<paragraph title="MythTV::Suggest - description">
			<link url="dl/myth-suggest.tar.gz">This Perl-module</link> can be used
			to learn your <link url="http://mythtv.org">MythTV</link> viewing
			preferences, and suggest upcoming TV-shows which you might like.
		</paragraph>
		<paragraph title="SYNOPSIS">
<pre>
use MythTV::Suggest;
use Lingua::StopWords::EN;

my $my = MythTV::Suggest->new(
  hostname    => $hostname,
  database    => $database,
  username    => $username,
  password    => $password,
  statefile   => $statefile,
  stopwords   => Lingua::StopWords::EN::getStopWords(),
)
  or die MythTV::Suggest->error;

if ($learn)
{
  $my->learn();
}
else
{
  my $suggestions = $my->suggest();

  for my $show (@$suggestions)
  {
      print &lt;&lt;EOB;
    SCORE   = @{[sprintf "%0.2f", $show->{score} ]}
    TITLE   = $show->{title}
  SUBTITLE  = $show->{subtitle}
DESCRIPTION = $show->{description}
  STARTTIME = $show->{starttime}
    CHANNEL = $show->{channel}
      LINK  = http://my.mythtv.box.local/mythweb/tv/detail/$show->{chanid}/$show->{timestamp}
----------
EOB
  }
}
</pre>
		</paragraph>
		<paragraph title="API">
			API documentation is included in the module's POD.
		</paragraph>

	</content>
</page>

