Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing the Python GData API, cannot get editable video entry
    primarykey
    data
    text
    <p>I am having trouble getting a video entry which includes a link rel="edit". I need such an entry in order to be able to call <code>DeleteVideoEntry(...)</code> on it.</p> <p>I am retrieving the video using <code>GetYouTubeVideoEntry(youtube_id=XXXXXXX)</code>. My yt_service is initialized with a username, password, and a developer key. I use ProgrammaticLogin. This part seems to work fine. I use the same yt_service to upload said video earlier. Also, if I change the developer key to something bogus (during debugging) and try to authenticate, I get a 403 error. This leads me to believe that authentication works OK.</p> <p>Needsless to say, the video entry retrieved with <code>GetYouTubeVideoEntry(youtube_id=XXXXXXX)</code> does not contain the edit link and I cannot use the entry in a <code>DeleteVideoEntry(...)</code> call.</p> <p>Is there some special way to get a video entry which will contain a link element with a rel="edit"? Can anyone suggest some way to resolve my issue? Could this possibly be a bug? </p> <p><strong>Update:</strong></p> <p>For the records, when I tried getting the feed of all my uploads, and then looping through the video entries, the video entries do have an edit link. So using this works:</p> <pre><code>uri = 'http://gdata.youtube.com/feeds/api/users/%s/uploads' % username feed = yt_service.GetYouTubeVideoFeed(uri) for entry in feed.entry: yt_service.DeleteVideoEntry(entry) </code></pre> <p>But this does not:</p> <pre><code>entry = yt_service.GetYouTubeVideoEntry(video_id = video.youtube_id) yt_service.DeleteVideoEntry(entry) </code></pre> <p>Using the same yt_service.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload