I have a heap of videos, say it’s a set of videos.
The set is updated regularly, say a dozen videos in a month.
Videos not on youtube, have to be uploaded.
Sometimes videos needs to be deleted from the channel.
I want this to automate, so I just put video file in a directory, and a regularly ran script uploads them to youtube - after that it returns the video link.
I could figure out how to do this using a fork of youtube-upload Forks · tokland/youtube-upload · GitHub.
But how would I delete a video from Youtube, assuming I know (and own) the ID?
I’m not sure if Google keeps the thing for data mining purposes or not. But I can surely delete a video from my channel, via browser, so there must be a way.
I’m investigating shoogle GitHub - davesteele/shoogle: Use the Google API from the shell
The examples I found are about uploading videos, but Videos: delete | YouTube Data API | Google for Developers
mentions the magic word “delete”.
So I’m looking at this now…
I don’t know how I’ll do this, but I’m sure I’ll be able achieve the scripted video remove, and once when it works from cli / script I’ll be able to automate it.
So my problem is not solved yet, but seems, I’m on a track…
I get what you mean now.
Apparently it is easily done with some google gui , but from the command line you need to work out how to drive that API. The specs are obscure to say the least.
it doesnt really delete it if it has been archived
No need for that now. The shoogle does what I want, yuppie!!!
The hard part was to figure out, I need to create a “project” on googles API manager, after that create an “app”, and for that app create Oauth credentials, download json, and use that with shoogle as client-secret.
That took my yesterday afternoon and evening.
So I have now the basic Lego bricks to build my intended functionality.
I’ll repeat only the necessary steps to confirm, that those are necessary, as I had a whole lot of trial and error.
I’ll be back with those steps later