peercast-enqueue-in-xmms.pl
来自「P2P应用 : Peercast的源代码」· PL 代码 · 共 19 行
PL
19 行
#!/usr/bin/perl# Peercact URL handler for xmms.# By Romain Beauxis <toots@rastageeks.org># Usage: peercast-enqueue-in-xmms.pl <peercast://foo># This script search for a string in the following mask: peercast://pls/HASHNUMBER# And then call xmms to enqueue the URL: http://127.0.0.1:7144/stream/HASHNUMBER# WARNING: this does not handle any parametrs like ?foo after the HASH, # But xmms seems to accept it.my $args = shift;$args =~ /peercast:\/\/pls\/(\w*)/;my $regex = $1;exec("xmms --enqueue \"http://127.0.0.1:7144/stream/$regex\"")
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?