Only load chapters from media file if item does not have chapters already

This commit is contained in:
Martin Fietz 2017-10-21 19:21:25 +02:00
parent ee50bca545
commit 6b651dc3c7
1 changed files with 3 additions and 1 deletions

View File

@ -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();