elliotwms / opml-to-spotify Goto Github PK
View Code? Open in Web Editor NEWImport OPML files into Spotify Podcasts, poorly
Import OPML files into Spotify Podcasts, poorly
When shows aren't found, add the option to log to a file for manual processing
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
Let's look at authorisation code flow with PKCE instead https://developer.spotify.com/documentation/general/guides/authorization/code-flow/
Originally posted by @elliotwms in #4 (comment)
Give users a way to export their subscribed shows from Spotify as an OPML file
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
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
user-library-read
to export user's current showsuser-library-modify
to import (save) showsSaveShowsForCurrentUser
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
main
branchAdd some sort of testing to satisfy at least a basic CI pipeline
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
opml-to-spotify
application client ID into the build (nice to have if Spotify approve the application)Allow the user to confirm shows before importing, and select from a list when multiple matches are present
https://github.com/goreleaser/goreleaser-action
Primary concerns:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.