同步 FanRadio 到 Last.fm

把豆瓣电台里的收听记录 scrobbleLast.fm 一直是我的一个梦想( Last.fm 在兲朝的速度实在是太过坑爹),先是写过一个 Greasemonkey 脚本 dbScrobbler, 后来又在 gae 上跑了一个定时从豆瓣和虾米抓取收听记录的 app,最后由于豆瓣播放器的升级等原因都失效了。

后来发现 mac 上的豆瓣电台客户端 FanRadio 支持 AppleScript 后,一直就在想能不能做点什么,于是昨天和今天边看球边捣鼓了一套同步 Last.fm 的方法出来(其实最后没用 AppleScript …… -_-)。

  1. 安装 Last.fm 官方客户端,http://www.last.fm/download
  2. 安装我写的这个 Growl 插件,LastFanPlugin.growlView (双击或者丢到 ~/Library/Application Support/Growl/Plugins/)
  3. Growl 中设置如下: lastfan-growl-settings

同时运行 FanRadio 和 Last.fm,就可以 scrobbling 啦 FanRadio-LastFM

已知缺点:

  1. 不能显示 FanRadio 的 Growl 通知了 FanRadio-Growl-Notification 不过可以用 Last.fm 的简陋版本勉强替代 LastFM-Growl_Notification
  2. 如上图,由于不能获取歌曲长度,每首歌都是三分钟

Growl 插件的源码放在了 github,https://github.com/mybeky/GrowlLastFanPlugin

Notes

  1. mybeky posted this