api-samples icon indicating copy to clipboard operation
api-samples copied to clipboard

!URGENT - Youtube shorts --- I'm trying to upload my video as a short but it classifies it as regular video

Open dhawalc opened this issue 1 year ago • 3 comments

request = youtube.videos().insert( part="snippet,status,contentDetails", body={ "snippet": { "categoryId": "27", "description": description, "title": title, "tags": tags, "shorts": True }, "status": { "privacyStatus": "public" }, "contentDetails": { "videoType": "short" } }, media_body=MediaFileUpload(video_file_path) ) response = request.execute()

Is there something different I should be doing?

Video itself is portrait mode 9:16 in aspect ratio, has #shorts in title and is less than 40 seconds, do i need to change any of this? Do i need to add something to the code?

dhawalc avatar Jun 26 '23 05:06 dhawalc

Make sure your video is of length 60s or less to make youtube detect it as Shorts.Cheers

Hexvortex avatar Jul 03 '23 01:07 Hexvortex

Most of them are 30 seconds are less, max 48 seconds, not 1 has been detected as shorts and actually getting uploaded as normal videos

Thanks for the reply

On Sun, Jul 2, 2023, 6:31 PM Hexvortex @.***> wrote:

Make sure your video is of length 60s or less to make youtube detect it as Shorts.Cheers

— Reply to this email directly, view it on GitHub https://github.com/youtube/api-samples/issues/484#issuecomment-1617091882, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSHUWGYPPLT4USEDEPVSYLXOIOHZANCNFSM6AAAAAAZTU6GUY . You are receiving this because you authored the thread.Message ID: @.***>

dhawalc avatar Jul 03 '23 03:07 dhawalc

I'm having the same problem any fixed ?

BrandonDeoram avatar Feb 13 '24 01:02 BrandonDeoram