woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
179 stars 20 forks source link

Duration Column #25

Closed zoidby closed 4 years ago

zoidby commented 4 years ago

I often only have time to watch a short video, but you only see the duration after starting one. Thus i often have to cancel videos until i find a short one.

Would it be possible to add a duration column, so one could see the time needed right away?

woefe commented 4 years ago

I like the idea, but with the current code base it is not so easy to implement and will slow the updating process down significantly, because the feeds do not provide this info. Instead, it would be implemented through youtube-dl, which can provide more metadata about a video. Letting youtube-dl fetch new metadata on every update probably slows things down significantly.

I'll think more about it for a v2 of ytcc.

woefe commented 4 years ago

The duration column is now available in the v2 branch. v2 is still very unstable. I'll update the README as soon as I have a beta version ready.

I was able to get fast updating with youtube-dl working by making use of youtube-dl internals. The duration column is still not very readably see #32 .