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

[Bug] Small error in logging #2

Open
Wei-Chen-hub opened this issue Apr 16, 2024 · 2 comments
Open

[Bug] Small error in logging #2

Wei-Chen-hub opened this issue Apr 16, 2024 · 2 comments

Comments

@Wei-Chen-hub
Copy link

Wei-Chen-hub commented Apr 16, 2024

Hi thanks for releasing this dataset. The videos are really cool.

There is an error in logging, when some of the videos are deleted or changed to private, resulting errors like:

youtube_dl.utils.DownloadError: ERROR: Private video
Sign in if you've been granted access to this video

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/e/MiraData/download_data.py", line 61, in <module>
    logging.debug(f"Can not download video {key}, skip")
NameError: name 'key' is not defined

From my side, i modified the code in download_data.py

        except Exception as error:
            print(error)
            # logging.debug(f"Can not download video {key}, skip")
            # logging.debug(f"Try another time")
            fail_times+=1
            if fail_times==3:
                break

Also another issue, youtube dl from pip install does not work for me. If you face similiar error, consider to try:

pip install --upgrade --force-reinstall "git+https://github.com/ytdl-org/youtube-dl.git"
@Wei-Chen-hub Wei-Chen-hub changed the title [Bug report] Some videos are not avaliable, might need minor update the download code [Reminder] Some videos are not avaliable, might need minor update the download code Apr 16, 2024
@Wei-Chen-hub Wei-Chen-hub changed the title [Reminder] Some videos are not avaliable, might need minor update the download code [Bug] Small error in logging Apr 16, 2024
@Zane0227
Copy link

it helps, thanks!

@hello-bluedog
Copy link

thanks very mush!!!

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

No branches or pull requests

3 participants