Skip to content

Instantly share code, notes, and snippets.

@somian
Created December 27, 2014 06:16
Show Gist options
  • Save somian/b2ad45b059c56363483c to your computer and use it in GitHub Desktop.
Save somian/b2ad45b059c56363483c to your computer and use it in GitHub Desktop.
playlist to filename listing (media files)
perl -MURI::Encode=uri_decode -MFile::Spec::Functions=:ALL -MFile::stat -wne 'if(/([.][.]\/.+\.\w\S+)[<]/){$y=uri_decode($1);$d=stat($y);next if!$d; printf "%s %s\n",$d->ino(),rel2abs($y); }' < HI-Light.xspf
@somian
Copy link
Author

somian commented Dec 27, 2014

Input (data to be handled) is a .xspf format

XSPF is some kind of playlist file. Uses XML markup.

The files can be copied in a pipeline extension:

 | cpio -p0v -d /path/name/spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment