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

Script not adding new videos #41

Closed
aaronkru opened this issue Sep 18, 2019 · 13 comments
Closed

Script not adding new videos #41

aaronkru opened this issue Sep 18, 2019 · 13 comments
Assignees

Comments

@aaronkru
Copy link

aaronkru commented Sep 18, 2019

The script was working perfectly until yesterday. It doesn't show any errors but new videos are not being added to my playlist. I tried to disable and re-enable the YouTube API but that didn't help. I attached the updatePlaylists script.. could someone please check to see if it looks correct? I have around 1100 videos on my playlist but that shouldn't be an issue (I know it stops working once you have 5000 videos on the playlist).

Any help would be appreciated.
Thanks in advance,

Aaron

@Elijas Elijas assigned Elijas and victorjzsun and unassigned Elijas Sep 18, 2019
@Elijas
Copy link
Owner

Elijas commented Sep 18, 2019

@dudemario Could you take a look at this?

@victorjzsun
Copy link
Collaborator

victorjzsun commented Sep 18, 2019

Looking into it right now, I can still pull and add videos that were created yesterday and before, but for some reason the ones created today aren't searchable using YouTube's api

@victorjzsun
Copy link
Collaborator

Once again, YouTube has broken its search as mentioned here. We'll just have to wait for them to fix it, nothing we can do.

@aaronkru
Copy link
Author

@dudemario does the fix you referenced solve the search API issue?

@victorjzsun
Copy link
Collaborator

@aaronkru No, that's a separate fix, mainly for error checking. This one is up to YT to fix and they still haven't done it yet.

@victorjzsun
Copy link
Collaborator

victorjzsun commented Sep 30, 2019

Does the script add any videos anymore? Try changing the timestamp to 2/3 days before

@Fabian42
Copy link
Contributor

Fabian42 commented Oct 1, 2019

The script has started working again for me. Does anyone else still have problems?

@victorjzsun
Copy link
Collaborator

victorjzsun commented Oct 1, 2019

The script works, but sometimes doesn't add videos due to YouTube's Search API missing results. When I run the script, it misses 7 videos and when I look any of them up on YouTube's Search API, I can't find the video I'm looking for. Try running the script yourself and see if you have any missing videos. It isn't the channel's problem, since the API can find earlier videos (in fact, by the time you open that link, maybe it will find it), just not recent ones

@aaronkru
Copy link
Author

aaronkru commented Oct 1, 2019

The script seems to be working again for me! I have it set to update every 6 hours. I will keep checking over the next 24 hours to see if misses any videos. I'll report back

@JesperDramsch
Copy link
Collaborator

Started working again for me.

@dudemario Considering that Youtube at that scale has to use sharding, I can imagine that it might be a "sync issue" on Youtube's side. What I've done to combat that in my script is offset "publishedAfter" by -1h and added the publishedBefore keyword to set it to now() -1. That way I don't get all of the super latest stuff immediately, but at least I (hopefully) get all of them. If it works out, I'll let you know.

@victorjzsun
Copy link
Collaborator

Thing is that it's older stuff like 10+ hours before. Anyways, it seems like it's improving, today I was able to run with only 1 missing, so I guess YT is fixing it. @JesperDramsch you should be fine with keeping it as normal since this issue is resolving itself, but if you prefer it that way, go ahead. If no one has any further issues, I'll close this issue in a few days due to not applicable anymore/inactivity.

@victorjzsun
Copy link
Collaborator

Thanks for all of your constant monitoring of the script's status, cleared up the issue a lot faster.

@aaronkru
Copy link
Author

aaronkru commented Oct 7, 2019

I've been monitoring the script for the past week.. everything seems working again.. Thanks @dudemario and @Elijas for helping with this!

@aaronkru aaronkru closed this as completed Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants