neolao/music-playlist-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

neolao/music-playlist-generator

Composer 安装命令:

composer require neolao/music-playlist-generator

包简介

Playlist generator

README 文档

README

Requirement

  • PHP CLI >= 5.4
  • Perl >= 5

Usage

./bin/music-playlist-generator.phar configuration.json

Configuration

{
    "exiftoolPath"          : "/path/to/exiftool",
    "cachePath"             : "/path/to/cache",

    "mediaDirectoryPath"    : "/path/to/media/library/",
    "playlistPath"          : "./myPlaylist.m3u8",
    "format"                : "m3u8",
    "relativePath"          : true,
    "directorySeparator"    : "/",

    "rules": [
        {
            "field"     : "Popularimeter",
            "operator"  : "isEqual",
            "value"     : 5
        },
        "and",
        [
            {
                "field"     : "Genre",
                "operator"  : "isEqual",
                "value"     : "Pop"
            },
            "or",
            {
                "field"     : "Genre",
                "operator"  : "isEqual",
                "value"     : "Rock"
            }
        ]
    ]
}
Property Description Required Default value
exiftoolPath Path of the exiftool script No exiftool
cachePath Path of the cache directory No
mediaDirectoryPath Directory containing the medias Yes
mediaFilePattern File pattern No *.mp3
playlistPath Path of the playlist that will be created Yes
format Playlist format No m3u8
relativePath Indicates that the file paths in the playlist are relative No false
directorySeparator Directory separator of the file paths in the playlist No /
rules Conditions No

Note: The paths are relative to the configuration file.

Formats

Format Status
m3u Unsupported
m3u8 Available
pls Available
xspf Available
asx Available

Fields

Name Description
File Name
Directory
File Size
File Modification Date/Time
File Access Date/Time
File Inode Change Date/Time
File Permissions
File Type
MIME Type
MPEG Audio Version
Audio Layer
Audio Bitrate
Sample Rate
Channel Mode
MS Stereo
Intensity Stereo
Copyright Flag
Original Media
Emphasis
Album Artist
Band
Credits
Encoded By
Performer
Www
Year
Cover Art Front Desc
ID3 Size
Title
Artist
Album
Genre
Track
Recording Time
User Defined URL
Language
Popularimeter
Comment
Picture Mime Type
Picture Type
Picture Description
Date/Time Original
Duration

Operators

Operator Description
isEqual
= Alias of isEqual
isDifferent
!= Alias of isDifferent
isHigher
> Alias of isHigher
isHigherOrEqual
>= Alias of isHigherOrEqual
isLower
< Alias of isLower
isLowerOrEqual
<= Alias of isLowerOrEqual
contains

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: Perl

其他信息

  • 授权协议: MPL-2.0
  • 更新时间: 2013-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固