MatteoGuadrini / mkpl

Make M3U format playlist from command line
https://matteoguadrini.github.io/mkpl
GNU General Public License v3.0
27 stars 2 forks source link

Ability to use full paths in the playlist file output #8

Closed biosmatrix123 closed 1 year ago

biosmatrix123 commented 1 year ago

Description

Currently the playlist is generated relative to the directory, for example if I have my files in c:\files\music\ and run mkpl from c:\files\ the generated playlist items will have the path music\tune.mp3

Can an option be added to enable full paths (c:\music\tune.mp3)

Proposed names of the parameters (short and long)

-fp -fullpath

MatteoGuadrini commented 1 year ago

Hi @biosmatrix123, the flag that you proposed isn't necessary, because mkpl born with -a or --absolute argument that provide a get absolute path nomenclature (in Windows terminology, FullPath):

>$ mkpl -h | grep 'absolute'
  -a, --absolute        Absolute file name (default: False)

The relative path mode is enabled by default.

biosmatrix123 commented 1 year ago

Not sure how I missed that! Thanks!

MatteoGuadrini commented 1 year ago

Hi @biosmatrix123 , I found a bug with -a flag. I will fix soon as possible.

MatteoGuadrini commented 1 year ago

Fixed with release 1.8