~osomon/moovida/account_admin

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/discogs/discogs_resource.py

  • Committer: Olivier Tilloy
  • Date: 2009-09-09 10:17:40 UTC
  • mfrom: (1498.3.43 resource_provider)
  • Revision ID: olivier@fluendo.com-20090909101740-wpdqtxgs6v0v3f1t
Merged the latest resource provider branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
            else:
67
67
                model = ArtistModel()
68
68
 
69
 
        url = str(uri)
 
69
        # The discogs server doesn't like requests with an absolute URI
 
70
        # (it responds 404), strip the scheme and host:
 
71
        url = str(uri)[len(SERVER):]
70
72
 
71
73
        def got_response(response, model):
72
74
            if response.code == responsecode.OK: