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.08k stars 112 forks source link

Unable to download age-restricted videos from the Videos tab #657

Open Repetria opened 3 days ago

Repetria commented 3 days ago

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?

Windows 11

What version of Tartube are you using?

v2.5.040

Hello everyone. I came across a bug that prompted me to write this post.

In the 'classic mode' tab, the cookie login works fine, but when I try to download a channel in the 'videos' tab, the cookie age verification doesn't work.

You can reproduce this bug by doing the following: :

  1. prepare a link to a mature YouTube video.
  2. first check that the video downloads correctly in the 'Classic Mode' tab.
  3. if the video downloads correctly, go to the 'Videos' tab, add a channel ending in /videos and press the 'Download Channel' button, you should see the following error message:

ERROR: [youtube] (your video link) : Sign in to confirm your age. This video may be inappropriate for some users.

You may see an error called !

Hopefully this will be fixed soon.

Repetria commented 3 days ago

This looks like the error I get when I try to download a channel.

If I get download a single age-restricted video, it doesn't cause any problems.

Repetria commented 3 days ago

image

I find the solution.

Set it up exactly like the screenshot provided

But this method isn't perfect yet either. And I messed with a lot of other settings, so this might not work for you.

It could be a translation issue, but some of the options in tartube do the opposite of what they say in the description.

The cookies in the txt and the cookies in the browser are causing a conflict.

So install firefox (chrome doesn't work due to security issues) and log in with an account from a country where age verification is complete or not required.

Then set firefox to take cookies in real time(Like the image I posted) and the problem is solved.

Repetria commented 2 days ago

It still doesn't work when I try to download a lot of videos. So for now, the solution is to download them little by little

axcore commented 1 day ago

The first question is, do you have separate sets of download options for the Videos tab and the Classic Mode tab? You can check this for yourself in Edit > System preferences... > Options > Download options.

This screenshot shows the default setup. There are two sets of download options; perhaps you only configured your login credentials in one of them.

options

In that case, the solution would be to use a single set of download options for both tabs, or to add your login credentials to both sets.

Repetria commented 1 day ago

image Hi developers, I apologize for not writing down the details properly. I do know about that system and both tabs are sharing the same download option!

axcore commented 1 day ago

If this solution doesn't work, try downloading the video in both the Videos tab and the Classic Mode tab, then show me the contents of the Output tab for both videos (including the yellow text at the top).

You should edit the screenshot (or copied text) to remove your username and password, of course.

axcore commented 1 day ago

It could be a translation issue, but some of the options in tartube do the opposite of what they say in the description.

I can't read Korean, but hopefully the quality of the translation is acceptable. If not, perhaps you could improve it. Hopefully the original English text is mostly correct, because I used the original yt-dlp instructions.

By the way, there are many yt-dlp options that contradict each other. Some of them are obvious (like --update and --no-update), some of them might not be obvious at all, even after reading the yt-dlp instructions.

Because I can't predict which combinations of download options will cause problems, I let the user choose anything they want; it's their responsibility to choose the right options (or to ask for help, if they need it.)

Repetria commented 1 day ago

번역 문제일 수도 있지만, tartube의 일부 옵션은 설명에 나와 있는 것과 반대의 결과를 보입니다.

저는 한국어를 읽을 수 없지만, 번역의 품질이 수용 가능하기를 바랍니다. 그렇지 않다면, 아마 개선할 수 있을 겁니다. 원래 영어 텍스트가 대부분 정확하기를 바랍니다. 왜냐하면 저는 원래 yt-dlp 지침을 사용했기 때문입니다 .

그런데, 서로 모순되는 yt-dlp 옵션이 많이 있습니다. 그 중 일부는 명백하고(예: --update 및 --no-update), 일부는 yt-dlp 지침을 읽은 후에도 전혀 명백하지 않을 수 있습니다.

어떤 다운로드 옵션 조합이 문제를 일으킬지 예측할 수 없기 때문에 사용자가 원하는 것을 선택하게 했습니다. 올바른 옵션을 선택하는 것은 사용자의 책임이며(필요한 경우 도움을 요청하는 것도 사용자의 책임입니다.)

Yes I realized that the Korean translation was not correct and it is now set to English. Thanks for your response!

Repetria commented 1 day ago

It could be a translation issue, but some of the options in tartube do the opposite of what they say in the description.

I can't read Korean, but hopefully the quality of the translation is acceptable. If not, perhaps you could improve it. Hopefully the original English text is mostly correct, because I used the original yt-dlp instructions.

By the way, there are many yt-dlp options that contradict each other. Some of them are obvious (like --update and --no-update), some of them might not be obvious at all, even after reading the yt-dlp instructions.

Because I can't predict which combinations of download options will cause problems, I let the user choose anything they want; it's their responsibility to choose the right options (or to ask for help, if they need it.)

Since you mentioned it, I've tried downloading just one channel to reproduce the error, and it didn't happen. I think this issue is probably caused by overload when trying to download multiple channels at once.

axcore commented 1 day ago

That might be true. No-one knows why YouTube allows big downloads today, but refuses big downloads tomorrow.

In most cases, downloading 10 channels simultaneously is not much faster than downloading 2 or 3 channels simultaneously. Usually it's better just to download 1 or 2 simultaneously.

Repetria commented 1 day ago

Thanks for the answer. As you said, downloading up to 2 simultaneously seems to be the safest and fastest solution. It's good enough as it is, but I hope there's a better alternative :)