Git Product home page Git Product logo

sunk's People

Contributors

natawie avatar woodruffw avatar xeals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sunk's Issues

URL is incorrectly created for requests

I'm trying to connect to Navidrome which is available at /navidrome
The build_url() function appears to only use the host which results in it trying to send requests to /rest and not /navidrome/rest

Complete support for podcasts

The documentation for what a podcast and and episode can do is very poorly documented.

I would need access to a server that contains podcasts to be able to test the extent of the API.

A podcast episode is structured similarly to a song, so that suggests it might impl Streamable.

Putting a tracking issue here to remind myself and give a notice that my time is getting shorter so this might be a bit longer coming.

Error while trying to ping with a supysonic server

Hi I was trying to run the example in the README with my home supysonic server however when it gets to the the .ping() section it panics.

I think the issue is that supysonic is expecting the url to be /rest/{endpoint}.view in this case /rest/ping.view but what it recieves is /rest/ping

Replacing the auth section with just legacy auth fixes it. I'm not sure why it doesnt work with the new system.

The code im trying to run:

    let username = "user";
    let password = "pass";
    let site = "https://music.music.music";

    let client = sunk::Client::new(site, username, password)
        .unwrap();

    client.ping().expect("funk2");

    // Fetch some songs and play them.
    let random = sunk::song::Song::random(&client, 20).unwrap();
    for song in random {
        println!("{:?}", song.album);
    }

Error when parsing ID strings from Navidrome

Navidrome uses hex strings for IDs and sunk is trying to convert them to u64s. From: https://www.navidrome.org/docs/developers/subsonic-api/

IDs in Navidrome are always strings, normally MD5 hashes or UUIDs. This is important to mention because, even though the Subsonic API schema specifies IDs as strings, some clients insist in converting IDs to integers

Here's an example album from my library:

_Album { id: "5649bff75a7b36d4789946f420712afa", name: "Freelance Bubblehead", artist: Some("1000 Clowns"), artist_id: Some("0e9ab60a6f701b3a727ef8d774bd00e1"), cover_art: Some("al-5649bff75a7b36d4789946f420712afa_63ebedbf"), song_count: 1, duration: 315, created: "2023-02-14T07:30:55.062040227Z", year: Some(1999), genre: None, song: [] }

I'll fork and try to make a version that uses Strings for IDs and report back.

Thanks so much for this library, looks like it will save me a lot of work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.