Releases: thedava/xspf-tools
Release 0.6
Changelog
Breaking changes
- Removed
clean
command - Renamed
copy
command tofile:copy
- Removed
update
command - Dropped PHP5 support
New Features
- Added Index feature
- Added Duplicates feature
- Added
batch:concurrent
command
Features
Index
An index is a meta file which can be used to create playlist files. Index files store file paths relative (instead of XSPF which stores file paths absolute). This makes it easier to share index files instead of xspf files. You can also store index files on folders that are shared between multiple systems. Every system can create its own playlist file from the exact same index.
Additionally you can create one or more playlists from the same index (You could add all files of a folder to an index and create white- and blacklist based playlists from this index).
Summary
- File extension: .xdc (Compressed. Takes a lot less disk space)
- File extension: .xd (Raw text file. Good for debugging)
Duplicates
Various commands for finding duplicate files by comparing checksums of all files within the given location.
Summary
- Can check index files
- Can check playlist files
- Can check file paths
Concurrent Batch Execution
There is a new command for improving the batch file functionality even more. The batch:concurrent
command allows multiple Batch files to be processed concurrently. A more detailed description can be found in the wiki
Added white- and blacklist feature for playlist creation
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
Fixed bug with file name encoding/decoding
There was a bug which caused file name problems if you use the order
-command on a playlist which was created by the create
-command
Added filter for file names
Added filter for following file patterns:
- Thumbs.db
- *.bak
Those files will not be added to a playlist file
Optimized self-update
Self-Update will only update the xspf if a newer version is available
Added self-update
- Added a self-update command
- Added a version command
UTF8 Encoding Fix
Fixed a bug that appeared in vlc media player with utf8 chars in file names
Fixed file paths
VLC had a problem with reading the files that were generated using the create
command. This problem should be fixed now.