Skip to main content

A Tiny and Smart Terminal Player of douban.fm

Project description

https://badge.fury.io/py/pyfm.png

使用Python编写的豆瓣FM命令行播放器

类似项目: https://github.com/taizilongxu/douban.fm

Screenshot

特性

  • 依赖较少,易于安装和运行

  • 支持私人兆赫,红心兆赫

  • 支持豆瓣歌曲加心

  • 支持Last.fm Scrobble

运行环境

  • Linux/Mac OS X

  • Python 2.7+ , 3.3+

依赖

安装

请首先安装支持的后端播放器中的某一个,然后使用pip安装本软件:

(sudo)pip install pyfm

如果选择直接git clone整个仓库的方法安装,请先安装相关依赖,然后把pyfm目录下的fm.py移动到上层目录,最后执行 python fm.py

使用

在终端中输入

$ pyfm

配置

$ pyfm config

根据提示输入账户,密码等,豆瓣账户密码不会保存在本地,豆瓣Token,Cookie,Last.fm账户名,Last.fm密码的md5值等保存在$HOME/.pyfm/中。

快捷键

[n]  ->  跳过当前歌曲
[l]  ->  给当前歌曲添加红心或删除红心
[t]  ->  不再播放当前歌曲
[q]  ->  退出播放器

出现问题?

请尝试清空$HOME/.pyfm/目录下的所有内容,重新安装等,如还不能解决,欢迎向我提issue。

致谢

本项目主要参考了以下几个项目

感谢以上项目的作者,开源万岁!

Changelog

  • 0.2.4 修复若干问题,支持关闭通知

  • 0.2.3 修复若干Bug,加入红心兆赫,支持使用mpv和mplayer作为播放后端(felixonmars)

  • 0.2.2 修复登陆失败时登陆状态不能正确显示的Bug

  • 0.2.1 修复Last.fm密码为空时报错的Bug

  • 0.2 代码大规模重构

  • 0.1 第一个正式版本

协议

The MIT License

其中scrobbler.py遵循GPLv3协议

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfm-0.2.4.tar.gz (12.5 kB view details)

Uploaded Source

File details

Details for the file pyfm-0.2.4.tar.gz.

File metadata

  • Download URL: pyfm-0.2.4.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyfm-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b07eb9e9efbbc2638cb3697a1212a81a4d5073691bf080aaaa6918368d5fe048
MD5 3ad6da730099e37c4a2ef52ffd80c397
BLAKE2b-256 420dc09ac0297c0604f79e22c28cbcfc7561b492eebe236e98e10cc811882a0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page