Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DaddyFrosty
Copy link
Contributor

@DaddyFrosty DaddyFrosty commented Jan 9, 2023

I added support to upload/edit a video and set it's category to gaming, and select a game.

The Video and VideoToEdit interfaces get 2 extra options, one for what to search under the gaming category, and a predicate for choosing a category out of the results, the predicate is also optional, and if null is passed the selector will just take the first valid choice.

I'd recommend trying the modification locally yourself to ensure there are no issues.
I also split the game chooser into it's own function as the code is used in editing a video and uploading but there is no UI differance. I have not tried with the edit function only upload, but I got the selectors using the edit panel.

The options I have tested with:
gameTitleSearch: "Sea of Thieves" gameSelector: async ( data: GameData ) => data.title == "Tide of Thieves"
That chose "Tide of Thieves".

gameTitleSearch: "Sea of Thieves"
That chose "Sea of Thieves".

I have also tested without specifying anything.
Everything works for me and hopefully you like this addition.

Also, is there a reason for there not being a way to choose if the video should be public, private or unlisted on upload?


This change is Reviewable

@fawazahmed0
Copy link
Owner

Thanks

@fawazahmed0 fawazahmed0 merged commit a78025a into fawazahmed0:main Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants