Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

privat videos #6576

Closed
6 of 9 tasks
khk58 opened this issue Mar 20, 2023 · 7 comments
Closed
6 of 9 tasks

privat videos #6576

khk58 opened this issue Mar 20, 2023 · 7 comments
Labels
question Question

Comments

@khk58
Copy link

khk58 commented Mar 20, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Please make sure the question is worded well enough to be understood

Dear all,
first I beg pardon for my poor english.
On downloading playlists
(yt-dlp --ignore-errors --cookies-from-browser firefox --download-archive ..\archive.txt -i --geo-bypass -o "%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLE8Tj3_cWP6inKzBHVkjOVfyctP86y50a)
I get the following message
'[youtube] Extracting URL: https://www.youtube.com/watch?v=65sbzMV7Bjs
[youtube] 65sbzMV7Bjs: Downloading webpage
[youtube] 65sbzMV7Bjs: Downloading android player API JSON
ERROR: [youtube] 65sbzMV7Bjs: Private video. Sign in if you've been granted access to this video'

My questions are:

  1. How to get in contact with the people putting these videos to 'Youtube' ?

or

  1. How to skip downloading these videos ?

Kind regards and thanx in advance

Kurt (Austria) - [email protected]

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

No response

@khk58 khk58 added the question Question label Mar 20, 2023
@Feathered-Serpent
Copy link

  1. in your case I would say it's going to the Youtube channel from the playlist and check the info there and hope for a contact address:
    https://www.youtube.com/@wocomoLIVING/about

  2. It does so automatically, it just continues with the next video.

@khk58
Copy link
Author

khk58 commented Mar 22, 2023

How to skip downloading these videos ? My question in this point is, how to skip without trying to download

@Feathered-Serpent
Copy link

I don't think yt-dlp can know it's private before trying to download it. Why do these 2 seconds matter?

@khk58
Copy link
Author

khk58 commented Mar 22, 2023

Because in playlists are often lots of privat videos.

@pukkandan
Copy link
Member

don't think yt-dlp can know it's private before trying to download it

@deanrobin333
Copy link

I found a solution. Indeed you use 'ignoreerrors': True. and you can pass this directly to YoutubeDl.

with YoutubeDL(
        {'quiet': True, "logger": CustomLogger(), 'ignoreerrors': True}
    ) as temp:
    info_temp = temp.extract_info(link, download=False)
  • The other options I have used are up to you.

  • quiet - just hides the details on the console.

  • CustomLogger() is a custom logger i have implemented so that it doesn't print the log on the console but to a file.

  • download=False is so that it doesn't download immediately. I have implemented the download elsewhere. My script can download and as well just get information about a video or playlist without downloading it.

  • when we use YoutubeDl we are creating a yt_dlp.YoutubeDL.YoutubeDL object which then can be used to get various details from youtube links. so temp then is that object.

what is important is ignoreerror. YoutubeDl is right where the program starts. so we usually have a dictionary called yt_opts where we specify key-value pairs that will be passed to YoutubeDL. so you can pass them directly.

or better yet you can indeed create this yt_opts dictionary. so we would do:

link = "https://youtu.be/SaC8X-IHGiU?si=rkAN-ICgDk-7b2Em"
yt_opts({'ignoreerrors: True})

with YoutubeDL(yt_opts) as temp:
    info_temp = temp.extractinfo(link, download=False)
    # do more with info_temp eg `info_temp.get('title')` etc

@maaaaz
Copy link

maaaaz commented May 1, 2024

cf. #9810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

5 participants