diff options
| author | sD <stoned@derpymail.org> | 2020-04-01 12:51:13 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-04-01 12:51:13 +0200 |
| commit | 1b5c1ebb045414b7fe2b9611a40bd0bf962a5878 (patch) | |
| tree | bedb183e11263d6b08b3d7a243e6eeceb1a78775 | |
| parent | 558fa55be824a106fde14b06cd98160e260c8962 (diff) | |
don't look in music for URLs
| -rw-r--r-- | src/path_functions.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp index 72b7accc..37daa038 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -99,7 +99,11 @@ QString AOApplication::get_music_path(QString p_song) QString withending_check = get_base_path() + "sounds/music/" + p_song; QString mp3_check = get_base_path() + "sounds/music/" + p_song + ".mp3"; QString opus_check = get_base_path() + "sounds/music/" + p_song + ".opus"; - if (file_exists(opus_check)) + if (p_song.startsWith("http")) { + //it's an URL + return p_song; + } + else if (file_exists(opus_check)) { #ifndef CASE_SENSITIVE_FILESYSTEM return opus_check; |
