Skip to content

Added white- and blacklist feature for playlist creation

Latest
Compare
Choose a tag to compare
@thedava thedava released this 01 May 12:42
· 92 commits to master since this release

The create command now supports black and whitelisting.

create [options] [--] <playlist-file> <file-or-folder> (<file-or-folder>)...

Arguments:
  playlist-file              The playlist file that should be created
  file-or-folder             Files and folders that should be added

Options:
  -w, --whitelist=WHITELIST  Whitelisted file patterns (e.g. *.avi) (multiple values allowed)
  -b, --blacklist=BLACKLIST  Blacklisted file patterns (e.g. *.db) [default: ["*.db",".*"]] (multiple values allowed)

Example

Assuming the following files:

  • HomeVideo CD1.avi
  • HomeVideo CD2.avi
  • HomeVideo CD1.jpg
  • HomeVideo CD2.jpg

If you want to create a playlist with all "HomeVideo" video files but without the covers using the new white and blacklist feature, the command would look like this:

php xspf.phar create "HomeVideo.xspf" "./" -w "*HomeVideo*" -b "*.jpg"

Matching Priority

If white and blacklist are given, whitelist will be checked first. If a file matches the whitelist it will checked again against the blacklist.

Changelog

  • Removed static filter for "Thumbs.db" and "*.bak" from Release 0.5.1
  • Added whitelist feature
  • Added blacklist feature