amit666 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

youtube list error #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Got this error from "google youtube list" on karmic

Traceback (most recent call last):
  File "/usr/bin/google", line 448, in <module>
    main()
  File "/usr/bin/google", line 442, in main
    run_once(options, args)
  File "/usr/bin/google", line 337, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/youtube/service.py", line 200, in _run_list
    entries = client.GetVideos(title=options.title)
  File "/usr/lib/pymodules/python2.6/googlecl/youtube/service.py", line 91, in get_videos
    converter=gdata.youtube.YouTubeVideoFeedFromString)
  File "/usr/lib/pymodules/python2.6/googlecl/service.py", line 110, in get_entries
    feed = self.GetFeed(uri, converter=converter)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 1074, in GetFeed
    result = GDataService.Get(self, uri, extra_headers, converter=converter)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 1018, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Max-results value is too 
high. Only up to 50 results can be returned per query.', 'reason': 'Bad 
Request'}

Original issue reported on code.google.com by jh...@google.com on 18 Jun 2010 at 12:17

GoogleCodeExporter commented 9 years ago
r225 fixes this in the repository.

Attached is a patch that will fix this for users with installed copies. To 
apply:

$ cd /path/to/googlecl
$ sudo patch -p0 -i /path/to/youtube_list.patch

The path to the googlecl directory depends on your installation method:
.deb: /usr/lib/pymodules/python2.X/googlecl
setup.py: /usr/local/lib/python2.X/googlecl

Original comment by tom.h.mi...@gmail.com on 18 Jun 2010 at 3:09

Attachments: