axcore / tartube

A GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3
GNU Lesser General Public License v2.1
2.05k stars 111 forks source link

Why Tartube no longer saves livestreams under their names? #553

Closed 1chan-level-journalist closed 8 months ago

1chan-level-journalist commented 1 year ago

For some reason any time I try to download a livestream it gets a name "livestream_1" instead of what it was called. It started doing that after I updated Tartube to the newest version. Here's what the window looks like: 1

EDIT: After it finished downloading the stream it shows this error: 2

Also, when I try downloading the stream after it already started, it no longer downloads the segments that were streamed before I started downloading the stream. It now only downloads the stream from the moment I started downloading, ignoring the segment I missed.

axcore commented 1 year ago

Tartube uses one of three methods to download livestreams; you don't mention which one you have selected. The options are in Edit > System preferences... > Operations > Livestreams.

livestreams

The default option is .m3u manifest. If that is not working as expected, you can try streamlink. Streamlink must first be installed on your system, you can do that from Tartube's menu (Operations > Install streamlink).

Failing that, try downloading a stream and, when it fails, show me the output generated in Tartube's Output tab.

1chan-level-journalist commented 1 year ago

I never changed the option from the default. It looks like the issue is that there are differences in how older and new versions download livestreams. For example, here's what the output looks like in version 2.4.165: 1 And here's what it looks like in 2.4.370: 2 .m3u manifest was selected in both cases. Is there a way to make it download livestreams how it did in the older versions? Selecting yt-dlp makes the download freeze with Tartube is starting the livestream download (yt-dlp)... in the output

axcore commented 1 year ago

I checked the code for downloading livestreams in versions 2.4.165 and 2.4.370; they appear to be almost identical.

I tested downloading a livestream with both versions, first checking that the .m3u manifest option is selected. The output for 2.4.165 does not resemble your screenshot:

livestest1

Here's the output for 2.4.370, which looks to be almost the same:

livetest2

I'm guessing that for your first screenshot, the yt-dlp (not recommended) setting was enabled.

axcore commented 1 year ago

For some reason any time I try to download a livestream it gets a name "livestream_1" instead of what it was called

I haven't tested this specific problem yet, as a livestream download typically takes several hours and I haven't been at my desk for long enough to do it.

EDIT: I completed a test and checked the code responsible. Tartube downloads the livestream as a file called 'livestream_N' when the livestream's actual name is not known. This only affects downloads in the Classic Mode tab.

it no longer downloads the segments that were streamed before I started downloading the stream

This is a known issue for downloading livestreams. yt-dlp provides the option --live-from-start, but it is marked as "experimental", which is why Tartube doesn't select it automatically. You can try enabling it: Edit > General download options... > Downloads > Live > Download livestreams from start

1chan-level-journalist commented 1 year ago

I'm guessing that for your first screenshot, the yt-dlp (not recommended) setting was enabled

I did a fresh install of both versions 165 and 370, made sure .m3u manifest was selected in both cases, tried the download, and got the results shown on my screenshots. yt-dlp (not recommended) doesn't work for me in version 370 - the livestream is stuck with Waiting... status and with Tartube is starting the livestream download (yt-dlp)... in the output when I try that. I'm at a loss as to what might be causing this.

yt-dlp provides the option --live-from-start, but it is marked as "experimental", which is why Tartube doesn't select it automatically. You can try enabling it: Edit > General download options... > Downloads > Live > Download livestreams from start

I had it enabled in both versions 165 and 370, for some reason it did nothing in version 370.

axcore commented 1 year ago

Are you sure you are editing the right set of options? Depending on your setup, one set of options may apply to the Videos tab, and a different set may apply to the Classic Mode tab. (That would explain why you are changing settings, but nothing is happening.)

options

axcore commented 8 months ago

Closed for inactivity.