youtube-viewer icon indicating copy to clipboard operation
youtube-viewer copied to clipboard

*TIME* is not aligning correctly.

Open ZaxonXP opened this issue 3 years ago • 3 comments

When using custom layout option like this youtube-viewer --custom-layout=' *TIME* | *ID* | *PUBLISHED* | *TITLE*' the output is not aligned when the results contains shorter and longer videos:

  11:34 | 63-EeFrBIqs | 16 Feb 2021 | Ciamajda smerfuje przyszłość • Epizod • Smerfy
  01:07:44 | yg6xpDI4x3g | 14 Feb 2021 | 60 minut Smerfnych przygód • Kompilacja muzyki • Smerfy
  11:38 | ZSkpsAH4ZFw | 11 Feb 2021 | Mała czarownica • Epizod • Smerfy

Could you please fix it so it would always be aligned to the right using spaces if the time is shorter than 8 characters (example below)?

     11:34 | 63-EeFrBIqs | 16 Feb 2021 | Ciamajda smerfuje przyszłość • Epizod • Smerfy
  01:07:44 | yg6xpDI4x3g | 14 Feb 2021 | 60 minut Smerfnych przygód • Kompilacja muzyki • Smerfy
     11:38 | ZSkpsAH4ZFw | 11 Feb 2021 | Mała czarownica • Epizod • Smerfy

Regards, Piotr

ZaxonXP avatar Apr 01 '21 21:04 ZaxonXP

Created a fix #370

ZaxonXP avatar May 05 '21 10:05 ZaxonXP

However this "fix" will mess up the Duration: line in the display. :\

ZaxonXP avatar May 05 '21 10:05 ZaxonXP

Fixed duration issue with the pull requests #371 and #372

ZaxonXP avatar May 05 '21 10:05 ZaxonXP