diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2017-10-21 19:21:25 +0200 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2017-10-21 19:21:25 +0200 |
commit | 6b651dc3c7a4c42a0675589b15c6c00c0175f325 (patch) | |
tree | 455cfe9f3c5c128f330378b1782c32dc5d2c7bf0 /core | |
parent | ee50bca545da30d825c995649e9a6d7580921b77 (diff) | |
download | AntennaPod-6b651dc3c7a4c42a0675589b15c6c00c0175f325.zip |
Only load chapters from media file if item does not have chapters already
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java index 6eefc296f..0dc5c9db2 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java @@ -976,7 +976,9 @@ public class DownloadService extends Service { media.checkEmbeddedPicture(); // enforce check // check if file has chapters - ChapterUtils.loadChaptersFromFileUrl(media); + if(media.getItem() != null && !media.getItem().hasChapters()) { + ChapterUtils.loadChaptersFromFileUrl(media); + } // Get duration MediaMetadataRetriever mmr = new MediaMetadataRetriever(); |