The music preview renderer doesn't handle this correctly, pls remove.
921 + g_variant_get_string(stream, NULL), 1,
The stream URI isn't correct, it's missing the API key, and therefore it can't be played.
Perhaps the best solution would be to use GenericPreview if the stream URI isn't defined (plus keep all the metadata) and if it is present, use MusicPreview.
I also noticed a few:
QSocketNotifier: Can only be used with threads started with QThread
Is that something to be worried about? FWIW if you provide preview_async_func, you can spawn a QThread there and invoke the callback once the thread finishes.
Tested the previews in real dash, and they work fine, it's just:
897 + addPreviewData( previewer, preview, "artist", _("Artist")); previewer, preview, "album", _("Album")); previewer, preview, "genre", _("Genre")); previewer, preview, "label", _("Label")); previewer, preview, "license", _("License")); previewer, preview, "creation_date", _("Creation Date"));
898 + addPreviewData(
899 + addPreviewData(
900 + addPreviewData(
901 + addPreviewData(
902 + addPreviewData(
The music preview renderer doesn't handle this correctly, pls remove.
921 + g_variant_ get_string( stream, NULL), 1,
The stream URI isn't correct, it's missing the API key, and therefore it can't be played.
Perhaps the best solution would be to use GenericPreview if the stream URI isn't defined (plus keep all the metadata) and if it is present, use MusicPreview.
I also noticed a few:
QSocketNotifier: Can only be used with threads started with QThread
Is that something to be worried about? FWIW if you provide preview_async_func, you can spawn a QThread there and invoke the callback once the thread finishes.