我试图在上传视频到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'})
我上传了一个视频,标题,频道和描述成功,但标签是空的。 有人知道如何添加标签吗?在
我已经测试了你的代码,它似乎运行得很好。创建视频并填充标记。在
你能提供一个视频id在哪里你有这个问题吗?在
相关问题 更多 >
编程相关推荐