Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   FRC Youtube Uploader - Instant Match Uploading Tool in Python (http://www.chiefdelphi.com/forums/showthread.php?t=151911)

Metonym 20-10-2016 11:51

Re: FRC Youtube Uploader - Instant Match Uploading Tool in Python
 
Quote:

Originally Posted by gc_coxen (Post 1612645)
This seems really helpful for events. How does it connect to a specific YouTube channel? Does someone have to press submit each time they want to upload a new match or does a script handle this? Is there anything in place to prevent duplicate uploads of the same video?

Hope to try this out at girls gen this weekend.

You can pick any YouTube channel that a Google Account has access to. Google's OAuth2.0 authentication flow gives you page when you first run the script to pick which channel to upload all videos to.

The program could handle doing that, but I don't want it to. A measure of human initiation keeps it from unintentionally screwing up. The batch uploading feature does not require human intervention for the set of matches you wish to upload. For example, setting Match Number to 8 and Last Match Number to 12 will upload matches 8, 9, 10, 11, and 12. It will then reset Last Match Number to the default string and update Match Number to Last Match Number + 1, 13 in this case.

There is no way to prevent duplicate uploads other than making sure all your videos are properly named and not using the same settings twice. YouTube only lets a channel know about a duplicate after processing, which the API doesn't give a response object for.

I have already arranged for the program to be used at Girls Gen. Plus I thought you didn't do AV.

Metonym 21-10-2016 15:23

Re: FRC Youtube Uploader - Instant Match Uploading Tool in Python
 
Quick update for anyone intending on using it this weekend. I promise not to make more updates and cause problems unless there are hot fixes required.

Version 2.4.1 is based on the current commit of master. Grab the latest releases from here: https://github.com/NikhilNarayana/FR...oader/releases.

A bunch of changes have happened since I first posted this thread, so quick change log:
- Bug fixes for uploading with TBA integration. There still might be problems because I haven't had time or files to test with.
- Pick the location of match files (currently only current folder and parent folder with full custom location in the works)
- Check for file exists before uploading (one problem, the web page still updates if the file doesn't exist because I never programmed it with this in mind)
- THREADED UPLOADS, non-blocking web server. Now the webpage updates even faster at the expense of being able to tell when an upload is finished based on the state of the page. Might revert this change based on the responses I get.
- Speed increases, now only takes about 33 seconds to upload a match once you hit submit (tested over a gigabit connection with a 500MB-700MB files)
If you have any problems during your event, please PM me a screenshot of your console immediately so I can get the problems sorted out.


All times are GMT -5. The time now is 10:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi