Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jeanine Adkisson
    @jneen
    that's likely the bit i needed
    Renée Kooi
    @goto-bus-stop
    is that straight from the example folder in u-wave-core?
    Jeanine Adkisson
    @jneen
    yep
    i had to do a couple backflips in my nginx config to get the csp thing to be permissive enough
    but other than that it's just from the example
    Renée Kooi
    @goto-bus-stop
    the u-wave-web version published to npm is kind of outdated, it should work for the most part, but the way it does search changed a bit to avoid having to wait for soundcloud results if you're looking for a youtube vid etc
    the old ver uses a single endpoint to do a search on all sources, while the new ver hits separate endpoints for each single source, when needed
    Jeanine Adkisson
    @jneen
    403
    Renée Kooi
    @goto-bus-stop
    and the old endpoint might swallow errors, but hopefully not
    Jeanine Adkisson
    @jneen
    found in the logs
    it's likely my api keys are wrong
    (soundcloud... doesn't issue api keys anymore...)
    Renée Kooi
    @goto-bus-stop
    yeah i search github for soundcloud client_id to get api keys
    Jeanine Adkisson
    @jneen
    i needed to enable the youtube api in the google dev console
    sigh
    used to be that to do publicly-accessible searches you didn't have to like, register stuff
    Renée Kooi
    @goto-bus-stop
    now you only get 100 searches a day on an api key by default :upside_down_face:
    Jeanine Adkisson
    @jneen
    jfc lol
    almost easier just to scrape the dang site
    Renée Kooi
    @goto-bus-stop
    kinda :'
    i've thought of making an invidio.us based media source, it could be swapped out backwards compatibly
    but so many things to do so little time!
    Jeanine Adkisson
    @jneen
    invidio.us appears to be dead
    Jeanine Adkisson
    @jneen
    ok i got youtube search working but now i'm getting 403 from soundcloud lol
    Jeanine Adkisson
    @jneen
    god i hate csp
    image.png
    Renée Kooi
    @goto-bus-stop
    hmm right, the API is already adding helmet under the assumption that it is run in its own process separate from the web client, but that is not what the example is doing yet
    maybs i'll add an option for now so that can be toggled off entirely
    Renée Kooi
    @goto-bus-stop
    Jeanine Adkisson
    @jneen
    ooo i'll try that
    Jeanine Adkisson
    @jneen
    up and running, thanks so much
    Jeanine Adkisson
    @jneen
    and thanks for making this, it's real cool software
    Danil Braun
    @danilbraun
    Hi! Is there a complete instruction for installing/configuring mongodb+redis+u-wave on ubuntu 20.04? I see several TODOs on the official site.
    Jeanine Adkisson
    @jneen
    is there... any way to use the soundcloud api
    Jeanine Adkisson
    @jneen
    is... there a version of u-wave that is easier to use yet
    having things spread across 4 or 5 different packages with no way to change small things is breaking my brain ><
    i've spent all day trying to figure out how to play unlisted soundcloud tracks and deal with the fact that the soundcloud api is effectively dead
    i've worked around the latter but now i need to change some of the frontend code and... the way it's set up right now, i'd have to edit minified js

    i tried locally building u-wave-web, and...

    TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Mongoose'
    | property 'connections' -> object with constructor 'Array'
    | index 0 -> object with constructor 'NativeConnection'
    --- property 'base' closes the circle
    at JSON.stringify (<anonymous>)
    at stringify (/home/jneen/src/u-wave-web/npm/middleware/webpack:/middleware/index.js:44:32)
    at Layer.handle [as handle_request] (/home/jneen/src/u-wave-web/node_modules/router/lib/layer.js:93:5)
    at next (/home/jneen/src/u-wave-web/node_modules/router/lib/route.js:144:13)
    at Route.dispatch (/home/jneen/src/u-wave-web/node_modules/router/lib/route.js:109:3)
    at handle (/home/jneen/src/u-wave-web/node_modules/router/index.js:526:11)
    at Layer.handle [as handle_request] (/home/jneen/src/u-wave-web/node_modules/router/lib/layer.js:93:5)
    at /home/jneen/src/u-wave-web/node_modules/router/index.js:296:22
    at Function.process_params (/home/jneen/src/u-wave-web/node_modules/router/index.js:360:12)
    at next (/home/jneen/src/u-wave-web/node_modules/router/index.js:290:10)
    at Function.handle (/home/jneen/src/u-wave-web/node_modules/router/index.js:189:3)
    at router (/home/jneen/src/u-wave-web/node_modules/router/index.js:64:12)
    at Layer.handle [as handle_request] (/home/jneen/src/dj/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/jneen/src/dj/node_modules/express/lib/router/index.js:317:13)
    at /home/jneen/src/dj/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/jneen/src/dj/node_modules/express/lib/router/index.js:335:12)
    at next (/home/jneen/src/dj/node_modules/express/lib/router/index.js:275:10)
    at SendStream.error (/home/jneen/src/dj/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:369:20)
    at SendStream.error (/home/jneen/src/dj/node_modules/serve-static/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/home/jneen/src/dj/node_modules/serve-static/node_modules/send/index.js:421:12)
    at next (/home/jneen/src/dj/node_modules/serve-static/node_modules/send/index.js:763:28)

    this is just an example of how highly coupled all these components are - if they're not put together in just the right way everything falls apart
    in a way it'd be much better just to have one big repo that i can clone and edit a cnofig file
    Jeanine Adkisson
    @jneen
    i have no idea why u-wave-web even has a mongo connection, much less why it's trying to render it to json
    Jeanine Adkisson
    @jneen
    ohhhh okay
    the api changed
    the createClient function no longer takes the uw instance as an argument
    Jeanine Adkisson
    @jneen
    i'm in the process of making a u-wave monorepo
    and i have discovered something glorious!
    everything you could ever want about a particular soundcloud track is available through a simple wget, if you know that track's url
    and are willing to regex out a particular json blob from the page
    this means that even if search doesn't work, if a url is pasted into the search bar i can still get all the data i need from it without needing a soundcloud api key