carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

No video upload to picasa #542

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to upload a video to picasa
2.
3.

What is the expected output? What do you see instead?

Expected: Photo is uploaded to picasa.

Actual output:

gdata.photos.service.GooglePhotosException: (602, "Accepted content types: 
['image/bmp', 'image/jpeg', 'image/jpg', 'image/gif', 'image/png']", 'This is 
not a valid content type: video/x-msvideo')

What version of the product are you using?
2.0.14

Original issue reported on code.google.com by sebastia...@gmail.com on 6 Sep 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Of course, the expected result is that the VIDEO is uploaded to picasa.

Original comment by sebastia...@gmail.com on 6 Sep 2011 at 7:13

GoogleCodeExporter commented 9 years ago
Quick'n'Dirty hack:

import gdata.photos.service

# Grabbed from 
http://code.google.com/intl/de-DE/apis/picasaweb/docs/2.0/developers_guide_proto
col.html
valid_mimetypes = [
'image/bmp',
'image/gif',
'image/jpeg',
'image/png',
'video/3gpp',
'video/avi',
'video/quicktime',
'video/mp4',
'video/mpeg',
'video/mpeg4',
'video/msvideo',
'video/x-ms-asf',
'video/x-ms-wmv',
'video/x-msvideo'
]

# Hack because python gdata client does not accept videos?!
for mtype in valid_mimetypes:
  mayor, minor = mtype.split('/')
  if mayor == 'video':
    gdata.photos.service.SUPPORTED_UPLOAD_TYPES += (minor,)

Original comment by sebastia...@gmail.com on 6 Sep 2011 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 12:36

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 18 Dec 2011 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 18 Dec 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Sorry, this was accidentally closed. Reopened.

Original comment by afs...@google.com on 18 Dec 2011 at 5:33

GoogleCodeExporter commented 9 years ago
It has been a long time since an update was posted for this issue. Is a fix in 
the works?

Original comment by prateek....@gmail.com on 5 Nov 2013 at 3:15