completed Upgrading YouTube to newest version 1.2.0

michael
@michael
9 years ago
7,697 posts
This is an announcemnet as much as it is a blog post. YouTube/Google have change the way they allow Developers to access their data.

https://developers.google.com/youtube/v3/

This has a big effect on the way the YouTube Support module works. There would be no need to change the way the module works, except that YouTube have cancelled their v2 API so its starting to no longer work.

It does seam to work on occasion, but it will get worse and worse, so today the new version of the YouTube Support module has hit the marketplace.

https://www.jamroom.net/the-jamroom-network/networkmarket/25/youtube-support

This new version 1.2.0 uses the updated current v3 API provided by YouTube/Google. However it does require registration in order to use it.

Steps to get the needed KEY can be found here:

https://www.jamroom.net/the-jamroom-network/documentation/modules/295/youtube-support#c2665

If you are running the YouTube module and plan to upgrade, please follow the steps to get the newer version working.
updated by @michael: 06/16/15 07:00:12AM
blindmime
@blindmime
9 years ago
772 posts
Thanks for your fast work on this, Michael. It's much appreciated!
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Do I choose "server key" when I get to the following choice?:
type key.jpg
type key.jpg  •  37KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/08/15 08:44:56AM
brian
@brian
9 years ago
10,144 posts
You choose "Browser Key":

https://www.jamroom.net/the-jamroom-network/documentation/modules/295/youtube-support#c2676


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, done.
Now, it says:

"Create a browser key and configure allowed referrers
This key can be deployed in your clients' applications.
API requests are sent directly to Google from your clients' browsers. Learn more
Accept requests from these HTTP referrers (web sites) (Optional)
One URL or pattern per line. Example: *.example.com/*
Or if you leave this blank, requests will be accepted from any referer. Be sure to add referers before using this key in production."


--should I fill in "*.mysite.com/* in the referers box, or leave it blank to accept any referers?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,144 posts
From the document I linked:

Quote:
When prompted with the dialog to "Configure allowed referrers" You can put your site in or just leave it blank.

let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, I got a key code. so once I paste that new YT API key into the new jamroom Youtube support module input box and 'save changes', I should be all set?




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/08/15 09:05:10AM
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
thanks I went throgh all this, got my api key added it to module but when I click on YouTube Search button all I see is this

Youtube has changed their API. Steps need to be taken by this sites administrator to make this module work again.
See here: Connecting to the YouTube v3 API

Even through I have pasted the api key into the modules global config option.
brian
@brian
9 years ago
10,144 posts
gary.moncrieff:
thanks I went throgh all this, got my api key added it to module but when I click on YouTube Search button all I see is this

Youtube has changed their API. Steps need to be taken by this sites administrator to make this module work again.
See here: Connecting to the YouTube v3 API

Even through I have pasted the api key into the modules global config option.

Upgrade to version 1.2.1 - this has been fixed.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,144 posts
Strumelia:
Ok, I got a key code. so once I paste that new YT API key into the new jamroom Youtube support module input box and 'save changes', I should be all set?

Yes.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
And no new API YT problems will happen due to my using Seamless to pool all my videos types together in various places on my site? (sorry for all the questions!)




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/08/15 09:19:05AM
brian
@brian
9 years ago
10,144 posts
Strumelia:
And no new API YT problems will happen due to my using Seamless to pool all my videos types together in various places on my site? (sorry for all the questions!)

No - this change is not related to Seamless - it just updates the API that is used to talk to Google.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Painless fix- took just a second- thanks Michael
(tested with new videos and works fine)
updated by @derrickhand300: 05/08/15 11:37:54AM
brian
@brian
9 years ago
10,144 posts
derrickhand300:
Painless fix- took just a second- thanks Michael
(tested with new videos and works fine)

Right on - glad to hear that :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
hehehe if I can do it ANYONE CAN DO IT :) so its a good test
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Yeah likewise here. Thanks to the Jamroom Team....right on it, once again! :D


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
blindmime
@blindmime
9 years ago
772 posts
Today, when importing a video, I got an error indicating it was unable to import the video because no data was found for the ID. Same error on multiple jamroom sites. I went back to the youtube developer area and emptied out the referrers box (just in case) and also regenerated a key. This got it working, but I'm noticing on the youtube credentials page that is says: Status Active until May 9, 2015, 10:40:00 PM, which is 24 hours after the Activation Date. Does the key expire after 24 hours? Does it reactivate automatically? I guess we'll see. Wondering if anyone else is encountering this behavior.
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
I can't tell because my site is not live yet. But if the JR Team wants to go in to test from my site, that's cool.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Uh oh, during my site overnight maintentence check, I have it set to check the status of 50 youtube vids per day. Looks like it went through the allotted 50 for today and DELETED them all. I'm thinking it's going to go through 50 every day now and delete them off my site. UNtil i have no YT vids left.
=8-(

core_activity_log.jpg
core_activity_log.jpg  •  145KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/09/15 09:40:56AM
brian
@brian
9 years ago
10,144 posts
Set your daily maintenance to 0 (zero). I will open a ticket on this.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, thanks Brian. Let us know when the issue is adjusted. Merci beaucoup, as always!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,144 posts
This should be fixed now - update to version 1.2.2 and the daily maintenance should not do this. Note that I did NOT see this on my test site, so my assumption is that YouTube failed to respond on your requests and the module interpreted that as a failure.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
What, you fixed it already??? =8-*
Next you'll be fixing things before they even break. Oh wait, you do that already too. D'oh!

Hey, if I set my YT daily maintenance to 15/day or so now...will it still function properly in detecting and deleting YT vids that no longer exist? Guess I should just try it out, huh?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
blindmime
@blindmime
9 years ago
772 posts
There still appear to be lingering issues. Today, when importing a video, it's not importing any information except an odd duration. No title, to description, etc. I'm seeing this on multiple jamroom installs. Most recent updates. See screenshot. The gray bar at top is where the linked title normally is displayed.

The datastore entry looks like this:

youtube_artwork_url:
youtube_category:
youtube_category_url:
youtube_description:
youtube_display_order: 0
youtube_duration: 397560:03:56
youtube_id: -PM20-1pRaM
youtube_pending: 0
youtube_short_url: 5ac1Nvb5
youtube_stream_count: 1
youtube_title:
youtube_title_url:

This began happening with v 1.2.2
screenshot_257.jpg
screenshot_257.jpg  •  62KB


updated by @blindmime: 05/10/15 06:34:59AM
blindmime
@blindmime
9 years ago
772 posts
Now today this is not happening. However, I was getting errors unable to import youtube ID so I regenerated a key which still didn't fix the errors, but after testing on a few different jamroom installs, a couple different hosts, the imports began working perfectly. Doesn't really make sense to me though.
brian
@brian
9 years ago
10,144 posts
blindmime:
Now today this is not happening. However, I was getting errors unable to import youtube ID so I regenerated a key which still didn't fix the errors, but after testing on a few different jamroom installs, a couple different hosts, the imports began working perfectly. Doesn't really make sense to me though.

I'm suspecting on the new V3 API that Google is doing some caching - this is the same type of "issues" we see with Facebook. the V2 AP worked perfectly, but this new API will allow Google to monetize their customers even more, so I know why they are forcing everyone to upgrade :(


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Damn!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
ok, I set the YT daily check to 6 yesterday, and my log today shows no deletions:
system: jrYouTube daily maintenance - 6 items checked, 0 deleted

Thanks Brian for fixing that!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
So here is the new issue(s) occurring when adding new YT vids.

Previously, all info and thumbnail etc was being pulled in nicely automatically:
previous-YT-vid.jpg
previous-YT-vid.jpg  •  525KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/10/15 12:11:14PM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Now:
new-YT-vid.jpg
new-YT-vid.jpg  •  398KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/10/15 12:13:13PM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
and...
new-YT-vid2.jpg
new-YT-vid2.jpg  •  249KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/10/15 12:15:07PM
michael
@michael
9 years ago
7,697 posts
Try going into that one via the UPDATE button and saving it. I just tried with that video URL and it did pull in the info.
brian
@brian
9 years ago
10,144 posts
I'm not seeing any issues here either - working well.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
I'm going to add another youtube video as a regular member and see what the new experience is like, as opposed to how it was before.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, this is not working well at all.
As a regular member, or as admin:
I add a new YT video but no thumbnail, no vid title, no description, not even a way to click to the video as it now semi-appears in the member's video list. Any of this info would now have to be pasted or typed in individually by hand through the update/gear window.

Here are some screenshots to clarify:

First issue: the add YT will not accept the basic "Share this" code that YT handily supplies (as in for example: https://youtu.be/zvzVwPZJAMw)
Instead, I get this error and I have to paste in the larger/longer browser location window URL, as in: https://www.youtube.com/watch?v=zvzVwPZJAMw
This seems like going backwards...



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 11:18:07AM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Next problem:
Prior to the whole YT & JR change, any YT video automatically pulled in thumbs, title, description, and of course showed the video immediately without needing to go into any update form.
This is how the video would immediately appear, with no fussing or editing:
prior YT.jpg
prior YT.jpg  •  158KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 11:22:04AM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Now when the same member adds a new YT vid, we get this instead....NOTE: the new video doesn't even show- it's the BLANK space on top of the older video here:
now YT.jpg
now YT.jpg  •  73KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 11:23:40AM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Then even if i click on the update 'gear' icon, I get this to fill in everything laboriously by hand somehow, by going back and forth from youtube:

This is probably the most important activity shared by my music network's members- their YT videos. Obviously I must fix this situation somehow to what it was like before.


update.jpg
update.jpg  •  37KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 11:27:54AM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Maybe there is an issue with some of the custom code on my video/seamless layout or video info views that is interfering?

Oh, and here is what the two latrest YT vids look like in my site's /video page now...(one added yesterday by me, one added by a regular member):
video list.jpg
video list.jpg  •  112KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 11:31:52AM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
sorry I have an off topic question- gonna seem like a stupid one but "How are you adding images to each post?"
I have NEVER found that option
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Make your post and post it. Then go back to it and click the gear icon to update it, and theres' a button to attach a file or image. Then save again.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
derrickhand300
@derrickhand300
9 years ago
1,353 posts
wow thanks!
I have NEVER noticed that- always hosting screenshots off site- never understood why we could not keep posting screenshots...now i know...thanks!
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Hey whaddya know...something I knew and you didn't!

Maybe I'm not such a 'silly old woman' after all... ;D




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/11/15 02:20:33PM
blindmime
@blindmime
9 years ago
772 posts
strumelia's issue appears to be the same one I am seeing as I noted above where Brian indicated it was possibly a youtube caching issue.

I've tried regenerating a key which has both worked and not worked. Not sure if that's what "fixed" it or if this issue is just a periodic caching glitch, however. Just sharing what I've encountered.

I haven't been seeing the issue today, incidentally.
michael
@michael
9 years ago
7,697 posts
There's a newer version of youtube in the markeplace now, run your system updates and see if that fixes it.
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
So sorry Michael, ran the update, integrity check etc... still no joy:
video-problem.jpg
video-problem.jpg  •  452KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/12/15 06:50:58AM
MAD
MAD
@madc
9 years ago
600 posts
Thanks Michael. Will update and check it. Cheers


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
michael
@michael
9 years ago
7,697 posts
Hey @madc good to see you around again :)

@strumelia, looks like your not quite setup at google,

With your credentials, I get this as the return info from youtube:
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "ipRefererBlocked",
    "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
    "extendedHelp": "https://console.developers.google.com"
   }
  ],
  "code": 403,
  "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
 }
}

The error says there is some sort of restriction based on IP setup in your google developers account.

Try following the instructions here:

https://www.jamroom.net/the-jamroom-network/documentation/modules/295/youtube-support#c2665

again to get another key. Sorry for the hassle, google grrrrrr.....
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Michael- thank you so much!
It WORKED! :)

Perhaps because i had put (mysite).com in the permitted referrers window screwed it up, who knows? All other steps I had done the same. So this time I left that box BLANK.

Anyway all is working great now.... wheeeeeee! :)

By the way, the instructions with step by step screenshots you guys gave are wonderful- couldn't be clearer and otherwise I would have been floundering a bit. Jamroom = GREATEST





--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/13/15 07:16:57AM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Strumelia:
Hey whaddya know...something I knew and you didn't!

Maybe I'm not such a 'silly old woman' after all... ;D

I am not prepared to go that far....
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Well, silly is as silly does... so I'm not too worried.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
MAD
MAD
@madc
9 years ago
600 posts
Hi Michael, Yeah my lifes been hectic lately. Catch you in IRC sometime eh?
Anyway we tested this remedy and everything is AOK. Cheers :D


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, sorry to bring this up yet again, but...
I'm seeing a whole bunch of "!" notes in my activity log since yesterday or the day before, having to do with the YT API and videos.
Even though I applied the new fix and new key and everything seems to be working fine when adding new videos...
I get these errors, many of them- see my two screenshots please- it even happens when I'm simply updating to the latest modules that have nothing to do with videos...
1.jpg
1.jpg  •  266KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/14/15 04:40:03PM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
and here's the detail, similar for all the "!" errors:
2.jpg
2.jpg  •  138KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/14/15 04:40:47PM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Hoping to fix this somehow...there is something not quite right....see above errors.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,767 posts
If you have the Developer Mode enabled, you'll see those. They aren't really errors, I believe they are just debug entries. If you turn the Developer Mode off, they should not show.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
They do show. My "run in developer mode" box wasn't and isn't checked.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,767 posts
Is there any reason you haven't deleted your activity log? Are you keeping them for a reason or can I delete them?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
delete away! :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,697 posts
I don't think that info is related.

That info is supposed to help provide some extra data to diagnose problems when there are problems. The log is not showing any of those things as a problem.

The reason I dont think its related is because when your daily maintenence starts, there is this log entry: (screenshot)

which has a url /angela when that is unrelated to the daily mantenence starting and it has some data, which is also un-connected.

It feels like info that has been collected when something that could fail was happening was not cleared and just happens to be there when something else that is not an error happens so it gets attached.

Ignore it. We'll try to track down the source and stop it from happening. If the error log is YELLOW and demanding attention like the "Errors Only" section shows and they have attached data, that is probably important.
updated by @michael: 05/16/15 01:37:45AM
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok Michael, I'll try to ignore them. Thank you!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,144 posts
That's not a problem at all, and is normal - there's no changes on our end needed.

How "queues" work in Jamroom is that a module can create a queue entry which goes into a database table. A request for a page at a later point can "kick off" the worker for that queue entry. So in this case, a visitor to the URL "/ashley" is what started the daily maintenance worker.

It will likely be a different URL every day that kicks off the maintenance work, but that's "how it works".

We store that URL as part of the debug collection so if it is an actual error we have an idea of where to go to try and replicate the issues.

Let me know that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,602 posts
Ok, I feel reassured now- I will pay it no mind- thanks for the explanation. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags