I *think* it's in the bit of the code:

def path_from_mirror_url(mirror, path):
    if path is not None:
        return (mirror, path)

    path_regex = "streams/v1/.*[.](sjson|json)$"
    result = re.search(path_regex, mirror)
    if result:
        path = mirror[result.start():]
        mirror = mirror[:result.start()]
    else:
        path = "streams/v1/index.sjson"

    return (mirror, path)

If the "mirror" is not a direct path to a json file (or sjson),
according to that regexp, then it defaults ti an sjson index.

As a quick test, I replaced that index.sjson string with index.json, and
then this worked:

$ sstream-query https://images.lxd.canonical.com/
{'content_id': 'images', 'format': 'products:1.0', ....
...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084993

Title:
  Simplestreams package doesn't support json. It always looks for sjson

To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/2084993/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to