Open Troyciv opened 6 years ago
@Troyciv still fail here too with
sudo youtube-dl -U
version
youtube-dl is up-to-date (2018.06.04)
I timed it a few times and it seems the error always occurs after 20min. maybe the connection times out or something?
here is a traceback:
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 376 (attempt 2 of 3)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 376 (attempt 3 of 3)...
ERROR: giving up after 3 fragment retries
File "/home/user/.local/bin/youtube-dl", line 11, in <module>
sys.exit(main())
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/__init__.py", line 472, in main
_real_main(argv)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/__init__.py", line 462, in _real_main
retcode = ydl.download(all_urls)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2001, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 803, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 857, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1635, in process_video_result
self.process_info(new_info)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1908, in process_info
success = dl(filename, info_dict)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1847, in dl
return fd.download(name, info)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 364, in download
return self.real_download(filename, info_dict)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/downloader/hls.py", line 163, in real_download
'giving up after %s fragment retries' % fragment_retries)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 165, in report_error
self.ydl.report_error(*args, **kargs)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 620, in report_error
self.trouble(error_message, tb)
File "/home/user/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 582, in trouble
tb_data = traceback.format_list(traceback.extract_stack())
@Troyciv youtube-dl version 2018.06.11 with --cookies
option returns:
ERROR: Globo returned error: Video is for subscribers only. Authorization required.
i'm using FVD and still works, so this is a youtube-dl problem only.
i think yours is a different problem. does -u username -p password
give you the same error?
@Troyciv you are right! this is a cookie problem only because youtube-dl -f hls-515-1 -u username -p password https://globoplay.globo.com/v/6812462/programa/
works like a charm while with valid --cookies
returns this:
[Globo] 6812462: Downloading JSON metadata
[Globo] 6812462: Downloading security hash for 6812462_90_720_collection
ERROR: Globo returned error: Video is for subscribers only. Authorization required.
I had a cookie problem recently, turned out it was because I had automatic cookie deletion activated in my browser
Read here
@Troyciv Bingo! The cookie expiration block the download, thank you! Problem solved =D
@Troyciv The 20 minutes problem may be associated with some Globo Play mechanism for protection against ad blockers.
I also suspect that it is some weird server behavior, because of the constant 20min
I'm working at a python wrapper script right now that re-runs youtube-dl until no more error gets raised.
But because I'm really not a coder that might take a little while.
This of course is not a fix but it's the only thing that I am capable to do by myself.
[x] I've verified and I assure that I'm running youtube-dl 2018.06.02
[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
What is the purpose of your issue?
[x] Bug report (encountered problems with youtube-dl)
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-v
flag to your command line you run youtube-dl with (youtube-dl -v <your command line>
), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
The download starts as expected, but aborts after ~20min and I need to
<ctrl-c>
and run it again to resume the download. I need to repeat that process untill the download is finished.This happens with the
-u 'username' -p 'password'
option as well as the--cookies file.txt
option