Only load chapters from media file if item does not have chapters already
This commit is contained in:
parent
ee50bca545
commit
6b651dc3c7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue