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

unable Playlist download problem #306

Closed
CevreMuhendisi opened this issue Oct 29, 2023 · 13 comments
Closed

unable Playlist download problem #306

CevreMuhendisi opened this issue Oct 29, 2023 · 13 comments

Comments

@CevreMuhendisi
Copy link

CevreMuhendisi commented Oct 29, 2023

i cant download playlist, please fix it

Traceback (most recent call last):
File "/ytdlbot/ytdlbot/tasks.py", line 152, in ytdl_download_entrance
ytdl_normal_download(client, bot_msg, url)
File "/ytdlbot/ytdlbot/tasks.py", line 265, in ytdl_normal_download
video_paths = ytdl_download(url, temp_dir.name, bot_msg)
File "/ytdlbot/ytdlbot/downloader.py", line 203, in ytdl_download
raise Exception(error)
Exception: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1560, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 2893, in
return type(self.ydl)._handle_extraction_exceptions(lambda _, i: self._entries[i])(self.ydl, i)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 2661, in getitem
self._cache.extend(itertools.islice(self._iterable, n))
File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 4930, in _entries
response = self._extract_response(
File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 951, in _extract_response
for retry in self.RetryManager():
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 5634, in iter
self.error_callback(self.error, self.attempt, self.retries)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 3749, in _error_or_warning
RetryManager.report_retry(
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 5642, in report_retry
raise e
yt_dlp.utils.ExtractorError: Incomplete data received

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/ytdlbot/ytdlbot/downloader.py", line 193, in ytdl_download
ydl.download([url])
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3485, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3460, in wrapper
res = func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1549, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1560, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1709, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1838, in process_ie_result
return self.__process_playlist(ie_result, download)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1913, in __process_playlist
entries = resolved_entries = list(entries)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 811, in _iter
for x in iterable:
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 2858, in get_requested_items
for i, entry in self[index]:
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 2920, in getitem
entry = self._getter(i)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/utils/_utils.py", line 2893, in get_entry
return type(self.ydl)._handle_extraction_exceptions(lambda _, i: self._entries[i])(self.ydl, i)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1578, in wrapper
self.report_error(str(e), e.format_traceback())
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1042, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 981, in trouble
raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadErr

@SanujaNS
Copy link
Collaborator

Hello @CevreMuhendisi,

Can you send the playlist URL that gave you this error?

Also It would be better if you can provide the full log(terminal output/error) as a paste using https://pastebin.com/.

@CevreMuhendisi
Copy link
Author

CevreMuhendisi commented Oct 29, 2023

Hello @SanujaNS
im using docker image ( bennythink/ytdlbot )

https://pastebin.com/GJGXa3sy

@CevreMuhendisi
Copy link
Author

@SanujaNS
Is there any progress, my friend?

@SanujaNS
Copy link
Collaborator

@CevreMuhendisi
We're trying to figure out the problem.
In the meantime,
Would you try deleting current container and rerunning it?

@CevreMuhendisi
Copy link
Author

@SanujaNS it didnt work

@SanujaNS
Copy link
Collaborator

We'll let you know as soon as we have more information.

@SanujaNS
Copy link
Collaborator

You are running an old version of docker image,
Screenshot_20231029_140453
photo_2023-10-29_14-05-51

Try running,

docker run bennythink/ytdlbot:latest

after deleting current bot container.

FYI,

  1. Get Container ID,
docker ps -a
  1. Delete container,
docker rm -f "CONTAINER ID"
  1. Delete Image,
docker rmi -f bennythink/ytdlbot
  1. Now run with your env,
docker run -e APP_ID=111 -e APP_HASH=111 -e TOKEN=370FXI bennythink/ytdlbot:latest

@CevreMuhendisi
Copy link
Author

CevreMuhendisi commented Oct 29, 2023

You are running an old version of docker image, Screenshot_20231029_140453 photo_2023-10-29_14-05-51

Try running,

docker run bennythink/ytdlbot:latest

after deleting current bot container.

FYI,

  1. Get Container ID,
docker ps -a
  1. Delete container,
docker rm -f "CONTAINER ID"
  1. Delete Image,
docker rmi -f bennythink/ytdlbot
  1. Now run with your env,
docker run -e APP_ID=111 -e APP_HASH=111 -e TOKEN=370FXI bennythink/ytdlbot:latest

@SanujaNS
When I get home, I will try. Thank you. Can you edit the command on the main page? add :latest please

Screenshot_2023-10-29-11-50-08-542-edit_com kiwibrowser browser

@SanujaNS
Copy link
Collaborator

Okay I will submit a PR for that.

Let us know your situation after...

@CevreMuhendisi
Copy link
Author

CevreMuhendisi commented Oct 29, 2023

@SanujaNS @BennyThink doesnt work my friend

https://pastebin.com/PYnvwJ99

@BennyThink
Copy link
Member

Can you try

yt-dlp "https://www.youtube.com/playlist?list=PLvQ068xq8z3D3ix9tFaMIcSe3LgpyCTHR"

Feels like a server side issue.

@SanujaNS
Copy link
Collaborator

SanujaNS commented Oct 29, 2023

Looks like there's a problem with data extraction of yt-dlp.

Issues looks alike on /yt-dlp,
[youtube:tab] "Incomplete data received" on "Redownloading playlist API JSON with unavailable videos" #8283
Intermittent "Incomplete data received" errors when downloading YouTube playlist JSON #8206

We may need to wait for a solution from yt-dlp community. @BennyThink What Do you think?

@BennyThink
Copy link
Member

try to upgrade to the latest image. Fixed in upstream

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