如何在使用dailymotionpythonsdk上传视频时添加标签?

2024-09-29 01:26:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在上传视频到dailymotion时添加标签。在

参考Dailymotion's guide,我编写了如下代码。在

d = dailymotion.Dailymotion()
d.set_grant_type('password', api_key=API_KEY, api_secret=API_SECRET,
    scope=['manage_videos'], info={'username': USERNAME, 'password': PASSWORD})
url = d.upload('./video.mp4')
d.post('/me/videos',
    {'url': url, 'title': 'MyTitle', 'published': 'true', 'channel': 'news', 'description':'MyDescription', 'tags': 'I,want,to,add,some,tags'})

我上传了一个视频,标题,频道和描述成功,但标签是空的。 有人知道如何添加标签吗?在


Tags: 代码apiurl视频typetagspassword标签
1条回答
网友
1楼 · 发布于 2024-09-29 01:26:18

我已经测试了你的代码,它似乎运行得很好。创建视频并填充标记。在

你能提供一个视频id在哪里你有这个问题吗?在

相关问题 更多 >