orkan/winamp

Winamp 媒体库 CLI 工具

7.0.0 2024-04-12 23:09 UTC

README

修复 M3U 播放列表中的无效条目。

每次更改媒体文件的位置时,播放列表不会应用这些更改,您将获得错误的路径。此工具试图找到所有播放列表中缺失的条目并相应更新。

为了获得最佳结果,请将媒体文件放置在按字母顺序排列的子文件夹中(见媒体文件夹)。在文件夹布局不同的情况下,已实现半自动方法(见验证)。

安装

$ composer require orkan/winamp

命令

> vendor\bin\winamp show

显示 Winamp 播放列表

> vendor\bin\winamp math

添加或减去播放列表

> vendor\bin\winamp rebuild

扫描并修复来自 Winamp playlists.xml 或任何提供的播放列表文件 (*.m3u) 的所有条目。

验证

验证每首歌曲有5个步骤

  a) Check that the playlist entry is pointing to an existing file. If not, then:
  b) Check that file exists in mapped location (see Relocate). If not, then:
  c) Check that file exists after renaming (see Rename). If not, then:
  d) Check that file exists in [Media folder] by testing the first letter. If not, then:
  e) Ask for an action:
     [1] Update - enter new path for current track
     [2] Relocate - replace path for current and remaining tracks
     [3] Rename - rename filenames with regex pattern
     [4] Remove - remove current playlist entry
     [5] Skip (default) - leave current track and skip to next one
     [6] Exit - return to prompt line

有关更多信息和使用选项,请输入:vendor\bin\winamp rebuild --help

媒体文件夹

用户[媒体文件夹]结构应组织到子文件夹中,每个子文件夹都使用正则表达式表示法命名,描述它们包含的文件名字母范围,例如[A-Z]或[0-9]。

示例

[Media folder]
  |
  +-- [0-9] For filenames starting with a number (also default Escape folder)
  +-- [A-D] For filenames starting with letters: a, b, c, d
  +-- ...
  +-- [T-T] For filenames starting with letter: t

第三方包

关于

要求

PHP ^7.4

作者

Orkan

许可

MIT

更新

Sat, 13 Apr 2024 01:09:38 +02:00