zefr0x / cwitch

A CLI tool to watch Twitch live streams and videos with the help of mpv and yt-dlp.
GNU General Public License v3.0
9 stars 1 forks source link

When selecting multible videos they are added to the playlist in the wrong order #1

Closed zefr0x closed 2 years ago

zefr0x commented 2 years ago

Expected behavior

Videos should be added to the mpv playlist from the oldest to the most recent, so you will start with watching the oldest video.

Actual behavior

Videos are added from the most recent to the oldest, so you will start watching the most recent video rather then the oldest one.

maitreyi14522 commented 2 years ago

Hi! im a first time contributor could you pls mention the source code that needs to be rectified

zefr0x commented 2 years ago

First, thank you for your interest in contributing.

It should be here. This function will print info about the selected videos/streams, ask for a format, and add them to the playlist, then it will start MPV.

There is no problem with the text printed in the CLI (it is in the preferred order). It is just about the playlist order in MPV, so it would be better if you can find a way to play it in reverse (or add them in reverse) with the MPV api.