|
Post by JediThug on Mar 29, 2017 22:25:55 GMT
I love your script and gotten it to work once, however now I get the error:
Start Function Error Message Trigger End 3/29/17 4:08 PM updatePlaylists Bad value (line 17, file "Code") time-based 3/29/17 4:08 PM
Is there a fix for a bad value in line 17?
Thank you.
|
|
|
Post by JediThug on Mar 29, 2017 22:32:53 GMT
So it turns out if works fine if I manually run it, just does not run on a schedule. I love your script and gotten it to work once, however now I get the error: Start Function Error Message Trigger End 3/29/17 4:08 PM updatePlaylists Bad value (line 17, file "Code") time-based 3/29/17 4:08 PM Is there a fix for a bad value in line 17? Thank you.
|
|
|
Post by Hola on Apr 23, 2017 14:36:13 GMT
Why not use "SpreadsheetApp.getActiveSpreadsheet()" instead of having to write the sheet id?
|
|
|
Post by User on Jun 18, 2017 20:47:54 GMT
I'm getting this error:
TypeError: Second argument to Function.prototype.apply must be an array. (line 52, file "Code") I've tried re-enabling the Youtube Data API but doesn't work
|
|
|
Post by User on Jun 18, 2017 21:36:52 GMT
When I look into the code, this line:
AboResponse = YouTube.Subscriptions.list('snippet', {
causes this error:
The subscriber identified with the request cannot be found.
|
|
|
Post by User on Jun 18, 2017 22:22:32 GMT
For this error: I love your script and gotten it to work once, however now I get the error: Start Function Error Message Trigger End 3/29/17 4:08 PM updatePlaylists Bad value (line 17, file "Code") time-based 3/29/17 4:08 PM Is there a fix for a bad value in line 17? Thank you. You probably still need to put the spreadsheet's ID into the code, wherever it says: // Paste the Sheet ID here, it's the long string in the Sheet URL
|
|
|
Post by User on Jun 18, 2017 22:31:35 GMT
For this error: I love your script and gotten it to work once, however now I get the error: Start Function Error Message Trigger End 3/29/17 4:08 PM updatePlaylists Bad value (line 17, file "Code") time-based 3/29/17 4:08 PM Is there a fix for a bad value in line 17? Thank you. You probably still need to put the spreadsheet's ID into the code, wherever it says: // Paste the Sheet ID here, it's the long string in the Sheet URL EDIT - What I did was take remove the if statement, and just creating a new sheet every time the function is called. Look like this: function updatePlaylists(sheet) { var sheet = SpreadsheetApp.openById('1Tx-pA2R2SdVrq7k-3pfn5xlDHc_33-UnGb6Kmx_ZliY').getSheets()[0];
|
|
|
Post by Rob on Sept 8, 2017 13:42:44 GMT
I am getting an error that has developed in the last 3 days. Now after working for years, it always errors out with this: TypeError: Cannot read property "items" from undefined. (line 169, file "Code")
Line 169 is this: for (var j = 0; j < results.items.length; j++) {
Any ideas?
|
|
|
Post by |Kane on Oct 12, 2017 17:07:35 GMT
Has anyone gotten the remove viewed videos from playlist link to work. I created the bookmark but when i use it, a prompt comes up and asks if i want to remove them, i click yes, but they don't actually get removed...
|
|
|
Post by Mark on Oct 18, 2017 3:22:19 GMT
I'm really not sure what to do here. The error is listed in the 'Troubleshooting' section (TypeError: Second argument to Function.prototype.apply must be an array.). I have followed the instructions, the API was already enabled. I've tried disabling then enabling it. I've tried restoring the most recent version of the sheet that was still working. Any help would be great, I really enjoy having this tool.
|
|
|
Post by Jim on Oct 22, 2017 19:22:25 GMT
hi! trying to load this in, believe i did everything right but when trying to update the playlist i'm getting:
TypeError: Cannot read property "items" from undefined.
i'm late to the party, any chance i could get some help? thanks!
|
|
|
Post by Jim on Oct 22, 2017 19:25:56 GMT
I am getting an error that has developed in the last 3 days. Now after working for years, it always errors out with this: TypeError: Cannot read property "items" from undefined. (line 169, file "Code") Line 169 is this: for (var j = 0; j < results.items.length; j++) { Any ideas? same, expect it doesn't specify where the issue is in the code.
|
|
|
Post by Jim on Oct 22, 2017 19:51:50 GMT
hi! trying to load this in, believe i did everything right but when trying to update the playlist i'm getting: TypeError: Cannot read property "items" from undefined. i'm late to the party, any chance i could get some help? thanks! found my issue. i can't load playlists IDs (or im not doing it right). i attempt to copy / pasty everything after ?list= but no dice, always get the error message.
|
|
|
Post by KaneD on Dec 23, 2017 12:00:19 GMT
Curious if you're still working on this? Its great and works fine for me still so I suggest those with issues start over with the latest version and read this whole forum. Just writing to say thanks, and add my name to those wishing for a way to exclude videos by keywords. I use this for a news feed and would love to be able to block news about certain presidents!
|
|
|
Post by eh on Jan 9, 2018 8:41:33 GMT
Hi there! Do you know how to do this if I have a brand account with playlists?
Looks like I could only give permissions to the main account since thats the one connected with spreadsheet. But I have all my subscriptions and playlists on my brand account connected to my main account. The problem is that the main account has a youtube channel and the brand account do. So my guess is that the permission was given for the main account and its trying to do stuff on the mainaccounts youtube channel instead of the brand account
|
|