Dear Home Owner, このページをアンテナに追加 RSSフィード

 | 

2007-04-08

Twittering my playlist  Twittering my playlist - Dear Home Owner, を含むブックマーク はてなブックマーク -  Twittering my playlist - Dear Home Owner,  Twittering my playlist - Dear Home Owner, のブックマークコメント

config.yaml

plugins:
  - module: Subscription::Config
    config:
      feed:
        - http://ws.audioscrobbler.com/1.0/user/youpy/recenttracks.rss

  - module: Filter::Rule
    rule:
      module: Fresh
      duration: 10 minutes

  - module: Summary::Lastfm

  - module: Publish::Twitter
    config:
      username: youpy
      password: *******

Summary/Lastfm.pm (Bad)

package Plagger::Plugin::Summary::Lastfm;
use strict;
use base qw( Plagger::Plugin );

sub register {
    my($self, $context) = @_;
    $context->register_hook(
        $self,
        'summarizer.summarize' => \&summarize,
    );
}

sub summarize {
    my($self, $context, $args) = @_;
    return "Listening " . $args->{entry}->title;
}

1;
トラックバック - http://subtech.g.hatena.ne.jp/youpy/20070408
 |