Giter VIP home page Giter VIP logo

smithjd15 / playlist Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 112 KB

A tool for converting, inspecting, and modifying media playlists. It can transform playlist targets into relative or absolute paths, and insert, append, reorder, remove or change entries. It can remove duplicate and unfound entries, randomize the order of entries and can convert between asx, cue, jspf, m3u, pls, wpl and xspf playlist formats.

License: GNU General Public License v3.0

CMake 4.31% C++ 95.69%
pls m3u xspf cli convert inspect reconstruct transform cue jspf

playlist's People

Contributors

smithjd15 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zhenhuaw-me

playlist's Issues

Feature Request: Sort by arbitary combination of fields

I have a very large playlist, and I'd like to sort it by a choice of fields.

The order of sort fields should be configurable.

For most music, I'd use something like this:

  • Genre, Artist, Year, Album Name, Album Path, Track Number, Song Name, Song Path

(Album path is present to handle cases where an album was captured twice, but is not an exact duplicate)

TagLib linking issue on macOS

Seen TagLib linking issue on macOS Montrey (12.5.1).

  • Reported error
Consolidate compiler generated dependencies of target playlist
[ 10%] Linking CXX executable playlist
ld: library not found for -ltag
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [playlist] Error 1
make[1]: *** [CMakeFiles/playlist.dir/all] Error 2
make: *** [all] Error 2
  • Lib existed as it is
$ ls /usr/local/lib/libtag*.dylib
/usr/local/lib/libtag.1.18.0.dylib  /usr/local/lib/libtag.dylib         /usr/local/lib/libtag_c.0.dylib
/usr/local/lib/libtag.1.dylib       /usr/local/lib/libtag_c.0.0.0.dylib /usr/local/lib/libtag_c.dylib
  • The hack: Change -ltag in playlist/build/CMakeFiles/playlist.dir/link.txt to the path to the library /usr/local/lib/libtag.dylib (similar to pugixml).

    • Before
    /Library/Developer/CommandLineTools/usr/bin/c++ -O2 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/playlist.dir/src/main.cpp.o CMakeFiles/playlist.dir/src/playlist.cpp.o CMakeFiles/playlist.dir/src/asx.cpp.o CMakeFiles/playlist.dir/src/cue.cpp.o CMakeFiles/playlist.dir/src/jspf.cpp.o CMakeFiles/playlist.dir/src/m3u.cpp.o CMakeFiles/playlist.dir/src/pls.cpp.o CMakeFiles/playlist.dir/src/wpl.cpp.o CMakeFiles/playlist.dir/src/xspf.cpp.o -o playlist  -Wl,-rpath,/usr/local/lib -lcurl -ltag /usr/local/lib/libpugixml.1.12.dylib
    
    • After
    /Library/Developer/CommandLineTools/usr/bin/c++ -O2 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/playlist.dir/src/main.cpp.o CMakeFiles/playlist.dir/src/playlist.cpp.o CMakeFiles/playlist.dir/src/asx.cpp.o CMakeFiles/playlist.dir/src/cue.cpp.o CMakeFiles/playlist.dir/src/jspf.cpp.o CMakeFiles/playlist.dir/src/m3u.cpp.o CMakeFiles/playlist.dir/src/pls.cpp.o CMakeFiles/playlist.dir/src/wpl.cpp.o CMakeFiles/playlist.dir/src/xspf.cpp.o -o playlist  -Wl,-rpath,/usr/local/lib -lcurl /usr/local/lib/libtag.dylib /usr/local/lib/libpugixml.1.12.dylib
    
  • Now it can build

$ make -j4
[ 10%] Linking CXX executable playlist
[100%] Built target playlist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.