Giter Site home page Giter Site logo

opml-to-spotify's People

Contributors

elliotwms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

opml-to-spotify's Issues

Doesn't work with OPML file exported from Pocket Casts

Searching for 1 shows
Searching for
panic: No search query

goroutine 1 [running]:
github.com/elliotwms/opml-to-spotify/cmd.run(0xe6bbc0, {0x1204f560, 0x1, 0x3})
        /github/workspace/cmd/import.go:59 +0x419
github.com/spf13/cobra.(*Command).execute(0xe6bbc0, {0x1204f548, 0x3, 0x3})
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:876 +0x665
github.com/spf13/cobra.(*Command).ExecuteC(0xe6bd20)
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:990 +0x406
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:918
github.com/elliotwms/opml-to-spotify/cmd.Execute()
        /github/workspace/cmd/root.go:20 +0x23
main.main()
        /github/workspace/main.go:6 +0x17

Version 1.0.2 on Windows 11

Export from Spotify worked but import doesn't, OPML imports fine into another podcast client on Windows (Grover Podcast) and exporting back out from Grover then using that for opml-to-spotify works

Add `export` command

Give users a way to export their subscribed shows from Spotify as an OPML file

Flow

sequenceDiagram
  opml-to-spotify ->>+ Spotify: GET https://api.spotify.com/v1/me/shows
  Spotify ->>- opml-to-spotify: User's shows
  loop Each show
    opml-to-spotify ->>+ iTunes Search: GET https://itunes.apple.com/search?term={title}&media=podcast&entity=podcast&attribute=titleTerm
    iTunes Search ->>- opml-to-spotify: Podcast (contains feedURL)
    opml-to-spotify ->>+ RSS: GET {feedUrl}
    RSS ->>- opml-to-spotify: Full show details
  end

Resources

Submit to Spotify

In order for the opml-to-spotify cli to be used without providing a development client ID (and the user making their own Spotify application etc etc), we must submit a quota extension request to Spotify to make the opml-to-spotify application available for general use. This allows users to use the baked-in-at-build time client ID in the background to achieve the sign in flow.

Todo Prep

  • Open up access to test users in development
  • Gather test user experience data
  • Finalise scopes
    • user-library-read to export user's current shows
    • user-library-modify to import (save) shows
  • Submit quota extension request

Allow importing more than 50 podcasts

SaveShowsForCurrentUser only allows a maximum of 50 IDs to be passed at any given time. If more than 50 shows are to be imported then we should split up these calls into chunks

Add tests

Add some sort of testing to satisfy at least a basic CI pipeline

  • Build & test
  • Lint

Implement implicit grant flow

As the application is short-running, there's no need for a full authorisation code flow.

Implementing the implicit grant flow removes the requirement for a client-side secret, which means we can bundle the client ID into the application, and there's no need for users to create their own Spotify app

## Requirements

  • Implement the implicit grant flow
  • Bundle the opml-to-spotify application client ID into the build (nice to have if Spotify approve the application)
  • Update the docs

Add interactive mode

Allow the user to confirm shows before importing, and select from a list when multiple matches are present

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.