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

YouTube search broken -> App broken #34

Closed
JesperDramsch opened this issue Mar 20, 2019 · 10 comments
Closed

YouTube search broken -> App broken #34

JesperDramsch opened this issue Mar 20, 2019 · 10 comments

Comments

@JesperDramsch
Copy link
Collaborator

Currently the app is broken and it's basically impossible to fix, without rewriting this thing entirely.

https://support.google.com/youtube/thread/2494861?hl=en

YouTube have broken their search filters a couple days ago. You can try it out on the website itself too, it's not just the API we use.

Writing this as top issue for people to find easily. The rewrite of this app would include some kind of cache of videos that have already been added. Considering the amount of work this would take and the space this would take up, I'd suggest waiting until YouTube itself is fixed.

You can subscribe to the issue on Google to get updated. The newest version here with PR #33 will not stop the error messages, but it will make sure the script will start with the videos where YouTube got broken, instead of updating itself despite the errors.

@JesperDramsch
Copy link
Collaborator Author

This also explains the quota errors:

Before the search would return only video IDs after the timestamp in your spreadsheet. Then add each one.

The quota costs are outlined here.

Now that filters are broken, YouTube returns ALL videos from a channel and adds every video to the playlist instead of only the most recent ones. Depending on the channel, that's a whole lot of videos to write.

Since quotas are daily, that will cause some funny behaviour.

@Elijas
Copy link
Owner

Elijas commented Mar 20, 2019

#33 is merged

The info and work done is much appreciated! 🥇

@JesperDramsch
Copy link
Collaborator Author

#33 is merged

The info and work done is much appreciated! 🥇

Thanks! Hope this will help some people find the right answers. I was thoroughly confused why my gmail was getting spammed 🤷‍♂️

@LSC2019
Copy link

LSC2019 commented Mar 20, 2019

Thank you, this is very helpful. I wondered why i reached my Youtube API quota everyday;)

@aspera7
Copy link

aspera7 commented Mar 25, 2019

So basically the script has no chance to work until google fixes their stuff? That's unfortunate

@JesperDramsch
Copy link
Collaborator Author

That is correct. Try the search on their website. Can't sort by date

@Alleckz
Copy link

Alleckz commented Mar 25, 2019

Have a workaround, that is valid even after this is fixed (if Google dont f.. up there api even more). Ide from https://stackoverflow.com/a/55207539.
Its cost a little more api call point but seams valid, just tried it for one chanel. (Hope there are no edge cases that is not valid)

  1. You use the Chanel.list, and in ”part” add “contentDetails” cost 2 points. (Can probebly be done on init where we get the channel id grab. But if it’s a one time thing we need too test soo the playlist id don’t change overtime)
  2. Then you get the get the “contentDetails.relatedPlaylists.uploads”
  3. Add that Chanel uploads playlist id to the playlistItems.list
  4. Wolla You have a sorted list of all uploads from a Chanel and the latest video is on top :D

I may have some time this week to try to implement this but no promessis.

@oberien
Copy link

oberien commented Mar 25, 2019

From what I've read, the google video search should still work. Maybe a swap from the youtube API to the google video API might be possible until google fixes youtube's APIs.

@oberien
Copy link

oberien commented Mar 28, 2019

The API is back up since ~20 hours, so I guess this can be closed now 🎉

@Fabian42
Copy link
Contributor

Fabian42 commented Mar 28, 2019

Confirmed, it runs fine for me again. It even checked the last 12 days of my 84 sources and added 46 videos without going over the time limit.
Interestingly, I got no notification from the followed YouTube bug report.

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

7 participants