Elijas / auto-youtube-subscription-playlist-2

Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
MIT License
246 stars 54 forks source link

I want to add videos from earlier? #101

Closed komaedalove closed 2 years ago

komaedalove commented 2 years ago

I want to add videos from every day in the last week, I tried changing the timestamp from "2021-10-07T18:13:49+02:00" to "2021-10-06T18:13:49+02:00" but it gave me this error "Error: 2 video(s) were not added to playlists correctly, please check Debug sheet. Timestamps for respective rows has not been updated."

victorjzsun commented 2 years ago

Can you look at the debug sheet and tell me what you see?

komaedalove commented 2 years ago

ok sorry I deleted that sheet and copied a new one, I thought maybe it broke so I don't have that debug but I have a new problem I can't add older videos.. When I thought maybe I could first add 10-07, then 10-06 etc but it adds the videos between that date and the current date.. so when I did 10-07 it worked OK because 07 and 08 were less than 200, but when I did 10-06 it didn't because there were over 200 videos across 06, 07 and 08, even though some of them were in the playlist already so didn't need to be added. How can I fix this?

victorjzsun commented 2 years ago

We don’t really support going back in time because it adds all vids up to current datetime and if it’s more than 200, you’ll hit YT’s API quota for the day.

I can create a separate version that only pulls one day of videos at a time, if that’s good enough for you, although you’ll still want to be careful about hitting that 200 vid limit across all runs in a day.

komaedalove commented 2 years ago

That would be great, thank you so much!

victorjzsun commented 2 years ago

I made the new version at https://github.com/Elijas/auto-youtube-subscription-playlist-2/blob/1-day-update/sheetScript.gs, copy the script into Tools -> Script Editor and you can then run it normally. Let me know if you run into any issues.

P.S. The debug sheet was actually broken, must've accidentally deleted the function call; try copying the new sheet into your spreadsheet if you want the new version.

komaedalove commented 2 years ago

It worked perfectly ! Thank you so much :D