nandyalu / trailarr

Trailarr is a Docker application to download and manage trailers for your Radarr and Sonarr libraries.
GNU General Public License v3.0
114 stars 7 forks source link

[Bug] Known working cookies not working in trailarr #70

Open Glynax opened 2 weeks ago

Glynax commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is. I have 3 ytdl-sub containers (ytdlp) that all use my google accounts youtube cookie and they seem to bypass age restriction and everything else, but in trailarr I can't download ANYTHING because of this "yt_dlp.utils.DownloadError: ERROR: [youtube] YwEZv8NJSEA: Sign in to confirm your age. This video may be inappropriate for some users." The path in trailarr and permissions are correct and I'm not sure what else there is for me to check really.

I've even followed instructions on your subreddit and documentation here, trying to make another youtube/google account and doing all the directions to a T and I still get the same error.

The only thing different between my compose and yours I think is I am running mine inside a gluetun docker network so I don't get IP banned from youtube again.

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Actual behavior A clear and concise description of what is happening.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image image

App Information (please complete the following information):

Additional context Add any other context about the problem here.

` trailarr: image: nandyalu/trailarr:latest container_name: trailarr network_mode: "service:gluetun" environment:

`

nandyalu commented 1 week ago

Do you mind if I ask what are those other yt-dl containers? I am only asking because I want to check their implementation of yt-dl

DenisSolonevich commented 1 week ago

Do you mind if I ask what are those other yt-dl containers? I am only asking because I want to check their implementation of yt-dl

I think I also faced this issue sometimes. I added some local logging to check that cookies path read correctly - it is. On the code level for the first sight it looked ok so I didn't dig deeper. If I remember correctly I compared it with a TubeArchivist.

Glynax commented 1 week ago

ytdl-sub, it's kind of just a fancy wrapper around dlp.

https://ytdl-sub.readthedocs.io/en/latest/introduction.html

nandyalu commented 2 days ago

Can you check the cookies file and confirm that it starts with the below 2 lines?

Screenshot_20241201_234345_RaspController.jpg

Glynax commented 1 day ago

Yep

image

nandyalu commented 1 day ago

That confirms that yt-dlp used that cookies.

I am using cookies exported from an incognito tab as described here

Moreover, there seems be multiple issues with yt-dlp and YouTube cookies yt-dlp issue

Sadly, there is not much I can do!

Glynax commented 1 day ago

Ah that sucks I didn't realize they were having issues. I guess all I can ask of you is instead of the entire task breaking when a video fails (for say being age limited and not having a cookie) can it continue so I can at least use your software? Or make that an option to toggle? I'm sure if that were the case I could get a large % of my trailers downloaded instead of almost none.

nandyalu commented 1 day ago

I can definitely do that!