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
"Video not found. youtube.playlistItem" when adding to a playlist #305
Comments
Having the same issue in the last couple of days. It is 'random'. In 5 uploads it happens 2 times. |
Agreed, that is exactly what I see. It has been around for maybe 1-3 weeks now. I have not checked yet if the video's actually make it into the playlist. It really seems like an easy-to-fix timeout or similar. |
So the error code is 404 (Not found). This seems to be a change on Youtube end. So far the video ID was available directly after upload, this seems to be a little slower now. The questions is how much slower. Adding a 1-5 sec wait between the upload and the playlist addition may solve the issue, but what if the wait time has to be >6 seconds? |
@schneemaier Interesting idea (to at least try the 1-5 sec addition). Do you know where to patch this in the code please? |
Sorry, did not look into the code, so i have no idea where this delay can be added |
Same issue here. I only have two playlists on the account and less than 30 videos in each playlist. The requests I'm making are also uploading a custom thumbnail. |
Same here. Could we have a fix please? |
using old 2016 version, same problem |
@vigilantspb what sort of errors, these ones or? |
@RoelVdP nope, same as here #298 and smth like
|
channel has 10.000+ videos in 20 playlists, with this situation uploading fails from time to time. Sometimes with this error video appears on the channel, sometimes not |
Same issue! Waiting for a solution. |
It may be a very easy to insert a "sleep" patch in the code somewhere? It's starting to happen more frequently too, almost every video now.
|
@RoelVdP should be easy but nobody knows the answer :) |
Created a fork: https://github.com/schneemaier/youtube-upload Added 5 seconds wait between the video upload and any other operations on the video in main.py `def run_main(parser, options, args, output=sys.stdout):
` I don't have time for testing now, but feel free to download it from my fork. This is not a nice solution and it is only for testing! |
added sleep to my main.py (didn't download new file, just added "from time import sleep" & "from io import open" in the beginning and sleep(7) after "debug("Video URL: {0}".format(video_url))", got same error as before |
It is strange, I have scripts run at night, generating and uploading timelapses from several ip cameras, videos 1-2 minutes, same options, same channel, each goes to a playlist. Every night video for one playlist fails to upload, for another it's ok.. ) No difference, failing playlist is shorter.. |
Just to make it sure: did you run |
@schneemaier without setup.py cause it was not changed |
@vigilantspb do you call |
@ schneemaier at first I made some mistake in the code, upload failed with
so I decided it should be fine without any additional movements) fixed and it uploaded with same error as before (404 etc) |
Having the same issue, tested the fork above with no luck. The video uploads to youtube but the code produces error:
|
@vigilantspb you mentioned above your video actually does not upload? It thought that (for this issue) the video's succeed in uploading, but only the playlist addition fails? Or do the actual video uploads sometimes fail also? |
I had some time to do a few test. Interestingly both the video upload and the playlist addition works (i can see the video on the correct playlist in youtube), but the result is still failed on the client end. I tried it with 20 sec wait between the upload and the playlist addition, thus this seem to be an issue on Youtube end, which cannot be fixed form this code :( |
Thank you for the update! |
This is my experience too |
Hi everyone, I have the same problem, has anyone found a solution or a workaround? Thanks in advance |
I found that after upload the video is available in youtube and it is in the playlist despite the error message. You can check if the error is 404, but the function returned a video id then just ignore the error message. I updated my scripts to check for the video ID after the error, and ignore it if the video id is present |
Thanks for your reply schneemaier, can you share your updated script? |
@schneemaier yeah I do the same by scanning the log for that failure and ignoring. Seems your method is better as you check for VideoID. Can you share your script. Thank you for confirming it actually does add to the playlist. |
This is what i use: lnk='/usr/local/bin/youtube-upload` --credentials-file="$credFile" --client-secrets="$clieFile" --privacy="unlisted" --title="$cm" --recording-date="$dateRec" --description="$date" --category="Music" --playlist="$cm" $i' |
@schneemaier thanks. Please use code blocks. Your solution only checks for success/fail, not specific errors. |
The error has changed.
The videos still seem to upload just fine otherwise. |
If you pipe the result/output of youtube-upload to an output file like /dev/shm/upload_last.log, you can some something like:
|
The YouTube error seems to have disappeared for the moment. |
Yep, seems fixed on YouTube side. Closing ftm. Feel free to re-open if you see it again after this comment. |
Describe the bug
I get the following on a subset of my uploads:
This may be related to having many playlists or many video's in the channel, i.e. some sort of timeout.
To Reproduce
Upload regularly to a channel with many large playlists and many video's
Expected behavior
No such error, as is shown on the other subset of my uploads. Really does like a timeout issue.
Desktop (please complete the following information):
Additional context
Please check if the timeout can be increased? Perhaps few seconds more? Happy to test any proposed fixes? Thank you
The text was updated successfully, but these errors were encountered: