streamtuner2是一个Internet广播浏览器
streamtuner2的Python项目详细描述
streamtuner2列出了诸如shoutcast、xiph、live365、myogradio、jamendo等无线电目录服务。它允许通过任何音频播放器收听,并通过streamripper录制流。
下载
这还不是一个合适的python包,而是一个pyz应用程序。
http://sourceforge.net/projects/streamtuner2/files/streamtuner2-2.2.0.pyz/download
它主要用于测试版测试。
可重复使用组件
一些组件是可重用的,而且可能是感兴趣的。(公共域,甚至不需要归属)。
uikit
模块提供了一些gtk抽象
- Mainly the TreeView list construction
columns()
which accepts a column-mapping structure and simpler dict-lists.- A
pixbuf
reader from internal PYZ package contents with some auto-decoding.- Widget wrpaping with background, alignment, hbox packing etc.
action
模块包含一些实用函数,用于转换播放列表格式:
- M3U,
- PLS,
- XSPF,
- JSPF,
- ASX/WVX,
- ASF,
- SMIL,
- .URL/DESKTOP files.
信道数据模型
此外,各种无线电目录服务主要以数据模型的形式实现。它们并没有完全与应用程序分离。当前依赖于准备好的请求会话、内部config.conf对象和一些实用程序代码。但是它们可以在没有活动gui组件的情况下被实例化和使用:
sys.path.insert(0, "./streamtuner2.pyz") from channels.shoutcast import shoutcast parser = shoutcast(parent=None) print(parser.categories) stream_list = parser.update_streams("Pop")
它返回一个字典列表,包含title
、playing
描述、genre
、流url
、bitrate
、format
等。
其他可用的频道模块:
- shoutcast
- xiph
- radionet
- radionomy
- myoggradio
- jamendo
- youtube
- ubuntuusers
- filtermusic
- difm
- dirble
- internet_radio
- radiobrowser
- surfmusik
- magnatune
- listenlive
- windowsmedia
- tunein, etc.
使用它们可能会进一步简化,与主应用程序和自定义配置实例等适当分离。你知道,如果有人表示有兴趣…(?)