diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-03-28 04:45:49 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-03-29 22:22:25 +0000 |
| commit | ee9705955ccd52bd973c377c3a1a22ed768a3707 (patch) | |
| tree | f0a2b7a81a82cc126ff36ead25526142f693e896 /src/aomusicplayer.cpp | |
| parent | 3f6fb17deddd1b366d16db5a2531c82407ced9db (diff) | |
Force HTTPS scheme in music streaming URIs
Additionally, fix the path construction for music tracks that are
requested via asset URI.
Diffstat (limited to 'src/aomusicplayer.cpp')
| -rw-r--r-- | src/aomusicplayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aomusicplayer.cpp b/src/aomusicplayer.cpp index 766effa..9309793 100644 --- a/src/aomusicplayer.cpp +++ b/src/aomusicplayer.cpp @@ -59,8 +59,11 @@ void AOMusicPlayer::play_from_url(const QString &url, int id, bool looping, int return; } + auto url_s = QUrl(url); + url_s.setScheme("https"); + // Reusing network manager that already exists in ao_app. - s.reply = ao_app->net_manager->get_audio_url(QUrl(url)); + s.reply = ao_app->net_manager->get_audio_url(url_s); QVariant len = s.reply->header(QNetworkRequest::ContentLengthHeader); bool ok = false; |
