mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[spotify] Scan spotify podcast subscriptions into library
This commit is contained in:
@@ -144,3 +144,14 @@ spotify_status_get(struct spotify_status *status)
|
||||
|
||||
backend->status_get(status);
|
||||
}
|
||||
|
||||
bool
|
||||
spotify_podcast_support()
|
||||
{
|
||||
struct spotify_backend *backend = backend_set();
|
||||
|
||||
if (!backend)
|
||||
return false;
|
||||
|
||||
return backend->has_podcast_support;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ struct spotify_backend
|
||||
int (*relogin)(void);
|
||||
void (*uri_register)(const char *uri);
|
||||
void (*status_get)(struct spotify_status *status);
|
||||
|
||||
bool has_podcast_support;
|
||||
};
|
||||
|
||||
int
|
||||
@@ -47,4 +49,7 @@ spotify_uri_register(const char *uri);
|
||||
void
|
||||
spotify_status_get(struct spotify_status *status);
|
||||
|
||||
bool
|
||||
spotify_podcast_support();
|
||||
|
||||
#endif /* !__SPOTIFY_H__ */
|
||||
|
||||
@@ -749,5 +749,7 @@ struct spotify_backend spotify_librespotc =
|
||||
.logout = logout,
|
||||
.relogin = relogin,
|
||||
.status_get = status_get,
|
||||
|
||||
.has_podcast_support = true,
|
||||
};
|
||||
|
||||
|
||||
@@ -129,5 +129,7 @@ struct spotify_backend spotify_libspotify =
|
||||
.relogin = libspotify_relogin,
|
||||
.uri_register = libspotify_uri_register,
|
||||
.status_get = status_get,
|
||||
|
||||
.has_podcast_support = false,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user