Skip to content

Commit

Permalink
[HD] Fix movie downloading
Browse files Browse the repository at this point in the history
Fixes #672
  • Loading branch information
AnimeDL committed Apr 23, 2024
1 parent 773bbf0 commit b2488ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hidive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ export default class Hidive implements ServiceClass {
}
const episodeData = JSON.parse(episodeDataReq.res.body) as NewHidiveEpisode;

if (episodeData.title.includes(' - ')) {
if (episodeData.title.includes(' - ') && episodeData.episodeInformation) {
episodeData.episodeInformation.episodeNumber = parseFloat(episodeData.title.split(' - ')[0].replace('E', ''));
episodeData.title = episodeData.title.split(' - ')[1];
}
Expand Down

0 comments on commit b2488ed

Please sign in to comment.