• <i id='1CcC8'><tr id='1CcC8'><dt id='1CcC8'><q id='1CcC8'><span id='1CcC8'><b id='1CcC8'><form id='1CcC8'><ins id='1CcC8'></ins><ul id='1CcC8'></ul><sub id='1CcC8'></sub></form><legend id='1CcC8'></legend><bdo id='1CcC8'><pre id='1CcC8'><center id='1CcC8'></center></pre></bdo></b><th id='1CcC8'></th></span></q></dt></tr></i><div id='1CcC8'><tfoot id='1CcC8'></tfoot><dl id='1CcC8'><fieldset id='1CcC8'></fieldset></dl></div>
  • <tfoot id='1CcC8'></tfoot>

      <bdo id='1CcC8'></bdo><ul id='1CcC8'></ul>

    <legend id='1CcC8'><style id='1CcC8'><dir id='1CcC8'><q id='1CcC8'></q></dir></style></legend>

      <small id='1CcC8'></small><noframes id='1CcC8'>

      1. Youtube API - 设置视频缩略图(python)

        Youtube API - Set the Thumbnail of Video (python)(Youtube API - 设置视频缩略图(python))

              <tbody id='bw1UW'></tbody>
              <bdo id='bw1UW'></bdo><ul id='bw1UW'></ul>
              <legend id='bw1UW'><style id='bw1UW'><dir id='bw1UW'><q id='bw1UW'></q></dir></style></legend>

              <i id='bw1UW'><tr id='bw1UW'><dt id='bw1UW'><q id='bw1UW'><span id='bw1UW'><b id='bw1UW'><form id='bw1UW'><ins id='bw1UW'></ins><ul id='bw1UW'></ul><sub id='bw1UW'></sub></form><legend id='bw1UW'></legend><bdo id='bw1UW'><pre id='bw1UW'><center id='bw1UW'></center></pre></bdo></b><th id='bw1UW'></th></span></q></dt></tr></i><div id='bw1UW'><tfoot id='bw1UW'></tfoot><dl id='bw1UW'><fieldset id='bw1UW'></fieldset></dl></div>

              <tfoot id='bw1UW'></tfoot>

              <small id='bw1UW'></small><noframes id='bw1UW'>

                1. 本文介绍了Youtube API - 设置视频缩略图(python)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以为通过 YouTube API 上传的视频指定您自己的缩略图?

                  使用最新版本的 Python 库,我似乎可以在将视频条目插入 YouTube 之前创建和设置媒体组的缩略图 - 但是指定的缩略图不会在视频本身上设置.

                  Using the most recent version of the Python Library, it appears that I can create and set the thumbnail of my media group before inserting a video entry to YouTube - however the thumbnail specified does NOT get set on the video itself.

                  我正在使用类似这样的代码:

                  I'm using code similar to this:

                  from gdata import media
                  from gdata.youtube import YouTubeVideoEntry
                  from gdata.youtube.service import YouTubeService
                  
                  # Create a thumbnail and pass it to my media group
                  thumbnail = media.Thumbnail(url='http://valid_image_url.jpg')
                  media_group = media.Group(thumbnail=thumbnail, title='foo', ...)
                  
                  # Use the media group to create a video entry
                  entry = YouTubeVideoEntry(media=media_group)
                  
                  # Create a service instance and use it to login
                  service = YouTubeService(...)
                  service.ClientLogin(...)
                  
                  # Get video file
                  file = open('/path_to_video.mp4', 'rb')
                  
                  # Push the video to YouTube
                  service.InsertVideoEntry(
                      entry,
                      file
                  )
                  
                  # Close the file
                  file.close()
                  

                  推荐答案

                  否.使用标准的 YouTube API,您无法以编程方式为视频设置缩略图.

                  No. Using the standard YouTube API, you cannot programatically set a thumbnail for your video.

                  但是,如果您是 内容合作伙伴并有权访问 YouTube CMS(您的合作伙伴经理可以启用),您显然可以从那里设置您的视频艺术作品.我将在完成此过程时发布详细信息.

                  However, if you are a content partner and have access the YouTube CMS (which your partner manager can enable), you can apparently set your video artwork from there. I'll post details as I run through this process.

                  这篇关于Youtube API - 设置视频缩略图(python)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Initialize Multiple Numpy Arrays (Multiple Assignment) - Like MATLAB deal()(初始化多个 Numpy 数组(多重赋值) - 像 MATLAB deal())
                  How to extend Python class init(如何扩展 Python 类初始化)
                  What#39;s the difference between dict() and {}?(dict() 和 {} 有什么区别?)
                  What is a wrapper_descriptor, and why is Foo.__init__() one in this case?(什么是 wrapper_descriptor,为什么 Foo.__init__() 在这种情况下是其中之一?)
                  Initialize list with same bool value(使用相同的布尔值初始化列表)
                  setattr with kwargs, pythonic or not?(setattr 与 kwargs,pythonic 与否?)
                  <i id='s6eOb'><tr id='s6eOb'><dt id='s6eOb'><q id='s6eOb'><span id='s6eOb'><b id='s6eOb'><form id='s6eOb'><ins id='s6eOb'></ins><ul id='s6eOb'></ul><sub id='s6eOb'></sub></form><legend id='s6eOb'></legend><bdo id='s6eOb'><pre id='s6eOb'><center id='s6eOb'></center></pre></bdo></b><th id='s6eOb'></th></span></q></dt></tr></i><div id='s6eOb'><tfoot id='s6eOb'></tfoot><dl id='s6eOb'><fieldset id='s6eOb'></fieldset></dl></div>
                    <tbody id='s6eOb'></tbody>
                        <bdo id='s6eOb'></bdo><ul id='s6eOb'></ul>
                        1. <legend id='s6eOb'><style id='s6eOb'><dir id='s6eOb'><q id='s6eOb'></q></dir></style></legend>

                          <small id='s6eOb'></small><noframes id='s6eOb'>

                            <tfoot id='s6eOb'></tfoot>