sparanoid/live-dl

Download did not start

chbndrhnns opened this issue · 3 comments

I experienced trouble that the download did not begin when the live stream has started. Instead, there was always the same error message. I was able to download with another tool then.

[Wed Apr 21 18:02:46 UTC 2021] URL (URI) to process           : https://www.youtube.com/watch?v=bvxA9yzUpSo
[Wed Apr 21 18:02:46 UTC 2021] Mode                           : download
[Wed Apr 21 18:02:46 UTC 2021] Output base dir                : ./downloads
[Wed Apr 21 18:02:46 UTC 2021] Run interval (when loop)       : 10
[Wed Apr 21 18:02:46 UTC 2021] Use youtube-dl for streams     : false
[Wed Apr 21 18:02:46 UTC 2021] Skip convert                   : false
[Wed Apr 21 18:02:46 UTC 2021] Skip embedding metadata        : false
[Wed Apr 21 18:02:46 UTC 2021] Skip email notification        : false
[Wed Apr 21 18:02:46 UTC 2021] Skip Slack notification        : false
[Wed Apr 21 18:02:46 UTC 2021] Skip Telegram notification     : false
[Wed Apr 21 18:02:46 UTC 2021] Email provider                 : ses
[Wed Apr 21 18:02:46 UTC 2021] One-time execution             : false
[Wed Apr 21 18:02:46 UTC 2021] YouTube URL detected
[Wed Apr 21 18:02:46 UTC 2021] YouTube video detected
[Wed Apr 21 18:02:46 UTC 2021] Checking https://www.youtube.com/watch?v=bvxA9yzUpSo...
[Wed Apr 21 18:02:46 UTC 2021] DEBUG: start func_check_state
[Wed Apr 21 18:02:46 UTC 2021] Not a valid page, something wrong with your internet connection?
[Wed Apr 21 18:02:46 UTC 2021] DEBUG: Not valid at the moment, continue running
[Wed Apr 21 18:02:46 UTC 2021] DEBUG: Stream unavailable, retry in 10s...
[Wed Apr 21 18:02:56 UTC 2021] DEBUG: start func_check_state
[Wed Apr 21 18:02:56 UTC 2021] Not a valid page, something wrong with your internet connection?
[Wed Apr 21 18:02:56 UTC 2021] DEBUG: Not valid at the moment, continue running
[Wed Apr 21 18:02:56 UTC 2021] DEBUG: Stream unavailable, retry in 10s...
[Wed Apr 21 18:03:06 UTC 2021] DEBUG: start func_check_state
[Wed Apr 21 18:03:06 UTC 2021] Not a valid page, something wrong with your internet connection?
[Wed Apr 21 18:03:06 UTC 2021] DEBUG: Not valid at the moment, continue running
[Wed Apr 21 18:03:06 UTC 2021] DEBUG: Stream unavailable, retry in 10s...
[Wed Apr 21 18:03:16 UTC 2021] DEBUG: start func_check_state
[Wed Apr 21 18:03:17 UTC 2021] Not a valid page, something wrong with your internet connection?
[Wed Apr 21 18:03:17 UTC 2021] DEBUG: Not valid at the moment, continue running
[Wed Apr 21 18:03:17 UTC 2021] DEBUG: Stream unavailable, retry in 10s...

The video provided in your log is private so I'm not able to debug. Did you run it locally or in Docker?

I was running it in Docker and the video was not private at the time of streaming and before. Is there anything I could try next time to make it easier to find the issue?

I suspect this might be due to Youtube now displaying a landing page that forces user to give consent to tracking cookies, as I mentioned there: https://github.com/mrwnwttk/youtube_stream_capture/issues/3#issuecomment-819812339

If that is the case, youtube-dl implemented a fix there. It should not be too difficult to work around it.

I have written this similar workaround in my script here too.