File: deadbeef.ru_RU.UTF-8.sh

package info (click to toggle)
eiskaltdcpp 2.2.9-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 20,676 kB
  • sloc: cpp: 94,106; ansic: 8,832; perl: 1,523; xml: 1,378; sh: 685; php: 661; makefile: 101
file content (20 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# This script is designed to show what is playing now in a DeaDBeeF music player
#
# Authors: Unreal7z (unreal777z (at) gmail.com)
# License: Public Domain
# Depends: bash
#
# Example output:
# console: /me DeaDBeeF playing now:Black Heaven - Himmel ohne Sterne, длина песни 3:59, уже прослушал 2:38 ( <magnet>/media/Music/Фашисты/Black Heaven/Black Heaven - Discography (2001-2011), AAC/2011 - Dystopia/07 Himmel ohne Sterne.m4a</magnet> ) [Powered by DeaDBeeF 0.5.1 | GNU/Linux]

# chat: /me DeaDBeeF playing now:Black Heaven - Himmel ohne Sterne, длина песни 3:59, уже прослушал 2:54 ( 07 Himmel ohne Sterne.m4a (9.1 МиБ) ) [Powered by DeaDBeeF 0.5.1 | GNU/Linux]]
# See also:
# http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Title_Formatting

db=$(deadbeef --nowplaying "%a - %t, длина песни %l, уже прослушал %e")
directory=$(deadbeef --nowplaying "%D")
version=$(deadbeef --nowplaying "%V")
file=$(deadbeef --nowplaying "%f")
echo /me DeaDBeeF playing now:$db "( <magnet>$directory/$file</magnet> )" "[Powered by DeaDBeeF $version | GNU/Linux]"
exit