Romern / syncMyMoodle

Synchronization client for RWTH Moodle
GNU General Public License v3.0
70 stars 18 forks source link

Youtube streams prevent script termination #114

Closed nilshee closed 2 months ago

nilshee commented 2 months ago

If there are currently running youtube streams in a moodle room the script won't terminate since ytdlp will continue to download the stream.

It should be checked if the youtube link contains a currently running livestream.

septatrix commented 2 months ago

It should be checked if the youtube link contains a currently running livestream.

Can this be easily checked? I have no such URL available currently. ytdlp seems to offer some flags regarding livestream but none for skipping them as far as I can see.

nilshee commented 2 months ago

It should be checked if the youtube link contains a currently running livestream.

Can this be easily checked? I have no such URL available currently. ytdlp seems to offer some flags regarding livestream but none for skipping them as far as I can see.

Found a possible solution and opened a pull request.

yt-dlp offers a flag to check if a stream is currently running see reddit