show error when crunchyroll shows dub but not available
This commit is contained in:
parent
1e8b27dc7b
commit
788c6fdfdb
@ -12,7 +12,7 @@ import { finished } from 'stream/promises'
|
|||||||
import Ffmpeg from 'fluent-ffmpeg'
|
import Ffmpeg from 'fluent-ffmpeg'
|
||||||
import { adnGetM3U8Playlist, adnGetPlaylist } from '../adn/adn.service'
|
import { adnGetM3U8Playlist, adnGetPlaylist } from '../adn/adn.service'
|
||||||
import { ADNEpisode } from '../../types/adn'
|
import { ADNEpisode } from '../../types/adn'
|
||||||
import { setProgressBar } from '../../../electron/background'
|
import { messageBox, setProgressBar } from '../../../electron/background'
|
||||||
import { getFFMPEGPath } from '../../services/ffmpeg'
|
import { getFFMPEGPath } from '../../services/ffmpeg'
|
||||||
import { getDRMKeys, Uint8ArrayToBase64 } from '../../services/decryption'
|
import { getDRMKeys, Uint8ArrayToBase64 } from '../../services/decryption'
|
||||||
import { getMP4DecryptPath } from '../../services/mp4decrypt'
|
import { getMP4DecryptPath } from '../../services/mp4decrypt'
|
||||||
@ -342,7 +342,15 @@ export async function downloadCrunchyrollPlaylist(
|
|||||||
await deleteVideoToken(episodeID, playlist.data.token)
|
await deleteVideoToken(episodeID, playlist.data.token)
|
||||||
playlist = await crunchyGetPlaylistDRM(found.guid)
|
playlist = await crunchyGetPlaylistDRM(found.guid)
|
||||||
} else {
|
} else {
|
||||||
console.log('Exact Playlist not found, taking what crunchy gives.')
|
console.log('Exact Playlist not found, taking what crunchy gives.'),
|
||||||
|
messageBox(
|
||||||
|
'error',
|
||||||
|
['Cancel'],
|
||||||
|
2,
|
||||||
|
'Not found japanese stream',
|
||||||
|
'Not found japanese stream',
|
||||||
|
'This usually happens when Crunchyroll displays JP as dub on a language but its not available. The download will fail, just start a new download and remove JP from dubs'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user