calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 232 forks source link

About an old issue; #355

Closed 537 closed 10 years ago

537 commented 10 years ago

I found issue #17 on Google while searching how to bulk add videos to a certain playlist, I'm wondering if there's a way and also if this has anything related?

calzoneman commented 10 years ago

If you comment on an old issue, I will receive a notification for it, so I'd prefer you comment on existing issues in the future instead of opening duplicates.

For a while in a previous version, CyTube supported adding multiple links at once. This was before I supported saving and loading playlists. However, this method of adding videos posed a number of internal issues, so after I added support for saving and loading user playlists, it was removed.

The best way to add a lot of YouTube videos at the same time is to create a YouTube playlist. The best way to add a lot of videos of mixed type at the same time is to add them individually to a channel, save the playlist to your account, and then queue that playlist at a later time.

537 commented 10 years ago

I'm sorry about that, the issue was over a year old and it was closed.

Thanks though, I guess I have to add them manually or perhaps code a script for this, since there isn't one anywhere at all.

calzoneman commented 10 years ago

If you can get all of the video types and IDs as JSON, you can use this.

537 commented 10 years ago

I have all of the videos as links on YouTube, I suppose the IDs are after "watch?v=" - How do I get them as JSON? And what does the Pastebin you linked me to do?

calzoneman commented 10 years ago

You can use this in your browser

links="comma separated list of links";
i=0;links.split(",").forEach(function(link){setTimeout(function(){$("#mediaurl").val(link);queue("end");},(++i)*3000)});

I don't intend to add the comma queue feature back, but I may improve user playlist management in the future.

537 commented 10 years ago

What does that do?

calzoneman commented 10 years ago

Splits a list of urls, adds each one with a 3 second delay to prevent getting throttled.

537 commented 10 years ago

Sweet. Thank you.