aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-08-10 03:55:36 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-08-10 03:55:36 +0000
commita480bc5e10ed504e20c713027cc2a672484b0710 (patch)
treef2924ecb788e13195acf4889dc41e41709424403 /app/src
parente6803259b80dea21635e729aeb907b57035dde49 (diff)
downloadinfinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar.gz
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar.bz2
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar.lz
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar.xz
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.tar.zst
infinity-for-reddit-a480bc5e10ed504e20c713027cc2a672484b0710.zip
Fix audio links for Reddit videos.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadVideoService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadVideoService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadVideoService.java
index b3360bb4..1f39c604 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadVideoService.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadVideoService.java
@@ -92,7 +92,7 @@ public class DownloadVideoService extends Service {
isRedditVideo = intent.getBooleanExtra(EXTRA_IS_REDDIT_VIDEO, false);
String videoUrl = intent.getStringExtra(EXTRA_VIDEO_URL);
- String audioUrl = isRedditVideo ? videoUrl.substring(0, videoUrl.lastIndexOf('/')) + "/audio" : "";
+ String audioUrl = isRedditVideo ? videoUrl.substring(0, videoUrl.lastIndexOf('/')) + "/DASH_audio.mp4" : "";
String fileName;
if (isRedditVideo) {
fileName = intent.getStringExtra(EXTRA_SUBREDDIT) + "-" + intent.getStringExtra(EXTRA_POST_ID);