Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.09k stars 87 forks source link

Download finished before stream ended #34

Closed Lytexx closed 3 years ago

Lytexx commented 3 years ago

i'm on this commit https://github.com/Kethsar/ytarchive/commit/5f9a5f594742394e54dd33172a6f674f4a10280b it usually keeps retrying i don't know what happend this time

02:40:19 DEBUG: video1: Error with fragment 2345: The read operation timed out                                                                                                                                               
02:40:21 DEBUG: audio0: Error with fragment 2345: The read operation timed out                                                                                                                                               
02:40:22 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:24 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:25 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:28 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:28 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:31 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:31 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:34 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:34 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:37 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:37 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:40 DEBUG: audio0: Error with fragment 2345: The read operation timed out
02:40:40 DEBUG: audio0: Fragment 2345: 10/10 retries
02:40:40 DEBUG: Livestream status is LIVE_STREAM_OFFLINE mid-download
02:40:40 DEBUG: audio0: exiting
02:40:40 DEBUG: audio-download thread closing
02:40:40 DEBUG: video1: Error with fragment 2345: The read operation timed out
02:40:40 DEBUG: video1: Stream has ended and fragment number is within two of the known max, probably not actually created
02:40:40 DEBUG: video1: exiting
02:40:40 DEBUG: video-download thread closing
Video fragments: 2345; Audio fragments: 2345; Max sequence: 2344; Total Downloaded: 1.29GiB
Download finished

edit: this is the error i got when i started the script while its offline maybe it helps

Traceback (most recent call last):
  File "/home/lytexx/ytarchive.py", line 2236, in <module>
    main()
  File "/home/lytexx/ytarchive.py", line 1973, in main
    if not info.gvideo_ddl and not get_video_info(info):
  File "/home/lytexx/ytarchive.py", line 851, in get_video_info
    vals = get_playable_player_response(info)
  File "/home/lytexx/ytarchive.py", line 703, in get_playable_player_response
    sched_time = int(playability["liveStreamability"]["liveStreamabilityRenderer"]["offlineSlate"][
KeyError: 'scheduledStartTime'
Kethsar commented 3 years ago

Looks like I should probably change what I return from a function. I'll get to it after work today probably, in around 17-18 hours.