vishnukraj / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 1 forks source link

Resume upload not supported #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

youtube-upload: 0.7.2
python: 2.7.3
python-gdata: 2.0.18

= Describe the steps (including the command you run) that will reproduce
the problem?

It appears that resuming a failed upload is not currently supported.

1. Start an upload.
2. Stop the upload (or fake a disconnection).
3. Start the same upload.

You will find that the upload starts again (see attached screenshot).

Via the YouTube website you can resume an upload many hours (possibly even 
days) after a failure, although I cannot find the damned article on the YouTube 
Help pages. It does still work though I have just tested it with the same file.

The YouTube API does support this but it does not seem to be implemented.
https://developers.google.com/youtube/2.0/developers_guide_protocol_resumable_up
loads

I tried with and without the --api-upload option but a failed upload is somehow 
reported to the server as complete and it attempts to process the data that has 
been sent. When this fails it is not possible to resume the upload via the web 
page either.

There is no way around this problem other than to use the web page, or start 
every failed transfer again from the beginning. For large uploads it's much 
safer to use the web page.

Original issue reported on code.google.com by ImWellCu...@googlemail.com on 5 Jul 2013 at 2:05

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, Api v2.0 supports resumable uploads, but the script is using Python API 
v1.0 (GetFormUploadToken), which AFAIK do not support it:

http://python-gdata.sourcearchive.com/documentation/1.1.1-1/classgdata_1_1youtub
e_1_1service_1_1YouTubeService_498306b28662e5062fc47ff640a732d5.html

So it seems we'd need to modify all this infrastructure to 2.0. That's quite a 
work, and since I hardly use the script anymore it's unlikely I'll tackle it.

Original comment by tokland on 9 Jul 2013 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 7 Aug 2013 at 6:17

GoogleCodeExporter commented 9 years ago
Issue 133 has been merged into this issue.

Original comment by tokland on 3 Mar 2014 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 8:32