import mkplaylist:

The script scans the given directories for media files with known file
name extensions and writes the names into a playlist file in M3U,
extended M3U or PLS format. Those very simple formats are used or at
least understood by the vast majority of media players on different
platforms.

For huge collections which have to be rescanned after adding or
modifying some files, the program can cache the meta data to speed up
subsequent runs.

from maintainer Girish Venkatachalam,
reworked to use python.port.mk and setuptools by wcmaier@
This commit is contained in:
sthen 2008-06-04 07:33:20 +00:00
parent 695170e33a
commit aa98de9b6c
6 changed files with 132 additions and 0 deletions

32
audio/mkplaylist/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/06/04 07:33:20 sthen Exp $
COMMENT= creates playlists from directory trees
MODPY_EGG_VERSION= 0.4.5
DISTNAME= mkplaylist-${MODPY_EGG_VERSION}
CATEGORIES= audio
HOMEPAGE= http://bj.spline.de/software.html
MAINTAINER= Girish Venkatachalam <girish1729@gmail.com>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://bj.spline.de/download/mkplaylist/
MODULES= lang/python
PKG_ARCH = *
NO_REGRESS= Yes
pre-patch:
@cp ${FILESDIR}/setup.py ${WRKSRC}/.
@mv ${WRKSRC}/mkplaylist.py ${WRKSRC}/mkplaylist
post-install:
${INSTALL_MAN} files/mkplaylist.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (mkplaylist-0.4.5.tar.gz) = wHOVDtILOjomospudQt+uw==
RMD160 (mkplaylist-0.4.5.tar.gz) = 6sWgHMZBdqkaNUBfVX6c/UT+qHc=
SHA1 (mkplaylist-0.4.5.tar.gz) = WVWYxSaARIVWtTSFXb1qH2KGPxA=
SHA256 (mkplaylist-0.4.5.tar.gz) = 5r5E0Z/kFz601HF+JLKx5F6bc4nUt8t4zSx9g0Req4w=
SIZE (mkplaylist-0.4.5.tar.gz) = 21922

View File

@ -0,0 +1,67 @@
.\" Copyright (c) 2007, Girish Venkatachalam, <girish1729@gmail.com>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd
.Dt MKPLAYLIST 1
.Os
.Sh NAME
.Nm mkplaylist
.Nd create a playlist from directories
.Sh SYNOPSIS
.Nm
.Bk -words
.Op Fl chqrv
.Op Fl f Ar playlist_format
.Op Fl o Ar playlist_file
.Ek
.Sh DESCRIPTION
.Nm
is a small python script that creates m3u, extended m3u or PLS playlists
from ac3, flac, it, mod, mp3, ogg, s3m and wav files.
.Pp
.Sh OPTIONS
Here are the command line options.
.Bl -tag -width Ds
.It Fl c
use a cache file. Default is not to use one.
.It Fl h
help message
.It Fl q
be really quiet
.It Fl r
write relative paths. Default is absolute paths.
.It Fl v
be verbose
.It Fl -shuffle
shuffle the playlist before saving it
.It Fl o
output playlist filename
.El
.Pp
.Sh EXAMPLES
.Bd -literal
Create the playlist playlist.m3u from the audio files in
/data/music directory.
mkplaylist --cache -o playlist.m3u /data/music
Create a playlist in m3u format with relative paths from
two directories /data/music/Various and /data/music/Soundtracks.
mkplaylist -r -f m3u --shuffle /data/music/Various \
/data/music/Soundtracks
.Ed

View File

@ -0,0 +1,15 @@
# $OpenBSD: setup.py,v 1.1.1.1 2008/06/04 07:33:20 sthen Exp $
from distutils.core import setup
import sys, os
setup(
name = "mkplaylist.py",
version = "0.4.5",
description = "creates playlists from directory trees",
author = "Marc 'BlackJack' Rintsch",
author_email = "marc@rintsch.de",
license = "GPL",
url = "http://bj.spline.de/software.html",
scripts = ('mkplaylist',),
)

View File

@ -0,0 +1,9 @@
The script scans the given directories for media files with known file
name extensions and writes the names into a playlist file in M3U,
extended M3U or PLS format. Those very simple formats are used or at
least understood by the vast majority of media players on different
platforms.
For huge collections which have to be rescanned after adding or
modifying some files, the program can cache the meta data to speed up
subsequent runs.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/06/04 07:33:20 sthen Exp $
bin/mkplaylist
lib/python${MODPY_VERSION}/site-packages/mkplaylist.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
@man man/man1/mkplaylist.1