Brisppy / twitch-archiver

A simple, fast, platform-independent tool for downloading Twitch streams, videos, and chat logs.
GNU Affero General Public License v3.0
67 stars 6 forks source link

chapters.json empty #35

Closed LsHallo closed 1 month ago

LsHallo commented 5 months ago

Describe the bug I'm archiving with --live-only and the chapters.json is empty. I know for a fact that at least Music and Just Chatting should be in there.

Supplied arguments --live-only -c channel -d "/output" -I "/config" -q 480p -w

Error log

twitch-archiver  | 2024-06-14 13:00:53 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 13:01:02 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 13:01:07 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 13:07:47 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 14:59:02 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 15:37:04 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 15:45:29 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 15:58:17 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 16:04:23 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 16:11:12 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 17:44:17 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 17:52:42 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 18:09:46 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 18:16:20 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 18:17:03 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 18:32:37 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 18:35:41 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
twitch-archiver  | 2024-06-14 18:36:34 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 18:39:32 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 18:44:35 [   ERROR] Exception encountered during GET request, retrying. Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
twitch-archiver  | 2024-06-14 18:49:05 [    INFO] Merging VOD parts. This may take a while.
2024-06-14 18:49:34 [    INFO] Converting VOD to mp4. This may take a while. -  ETA: ?
2024-06-14 18:49:48 [    INFO] 1 VOD(s) in download queue.-  ETA: 00:00:018  -  ETA: ?

Operating system ubuntu 22.04 (docker)

Brisppy commented 5 months ago

I'm guessing this is a channel which doesn't archive to VODs? Unfortunately with these there is no chapter data because they are usually provided with the VOD archive but I'll see what I can do in terms of manually creating these.

LsHallo commented 5 months ago

Well the stream says what category it is currently below the streamers name. I think you could store that with the segments and then when joining create the JSON with the chapters from that data. It might only be accurate to 10s but that's more than enough.

Brisppy commented 3 months ago

Added this to the stream chapters branch, will be doing some testing before adding to the next release.

Brisppy commented 1 month ago

This has been added with v4.2.0.