Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No video upload to picasa #542

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 7 comments
Open

No video upload to picasa #542

GoogleCodeExporter opened this issue Mar 17, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Added labels: Component-Photos

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: New

@GoogleCodeExporter
Copy link
Author

Sorry, this was accidentally closed. Reopened.

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant