* Found a podcast that returns 403 without a UserAgent string so I added one. URL is https://feeds.buzzsprout.com/132359.rss
* Fixed lint issues including needed error checking.
* DSub swaps fromYear and toYear so swap them back in that case. TBD -- fix the same logic in ServeGetRandomSongs
and never use db.Where() with a struct
gorm was seeing a query like
db.Where(Album{Left: left, Right: right})
but if the `left` variable was empty, gorm couldn't differentiate it with an empty field in the struct
so it generated SQL that we weren't expected
like
SELECT * FROM albums WHERE right=?
instead of
SELECT * FROM albums WHERE left=? AND right=?
fixes#230
* Initial commit of internet radio support.
* Added first test for internet radio.
* Refactor to prepare for more test cases.
* Added a few more tests. Realized that I was not calling as admin so added ability to mock admin.
* Added more internet radio tests. Added proper JSON unmarshaling for ID.
* More test cases. Fixed some accidental tabs in files.
* Fixed some more tabs.
* lint fixes
* Changed placeholder for homepage URL to fit into box.
* Finished out internet radio test cases. Found a few bad error codes in internet radio AND podcasts (mea culpa).
* Realized that delete via website was not checking properly if id existed. Fixed.
gofmt
* Added https support. Will revert to http if either cert or key are empty strings.
* Update server/server.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* Fixed lint issues.
Co-authored-by: Senan Kelly <senan@senan.xyz>
When multiple people share the same instance, they might want to share
their playlists between them.
This allows people to mark playlists as public, and to listen to public
playlists from other people. Listeners will also know who owns the
playlist, to help avoid confusion and make this feature a bit nicer.
Subsonic restrict updating playlists only to owners, this honors that
behavior, but adding flexibility could be achieved easily.