Skip to content

Commit

Permalink
Fix a bug on generating episode links
Browse files Browse the repository at this point in the history
AmirRezaM75 committed Dec 1, 2021
1 parent ce15438 commit b9511ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion App/Html/Parser.php
Original file line number Diff line number Diff line change
@@ -89,7 +89,10 @@ public static function getEpisodesData($html)

return [
'title' => $episode['title'],
'download_link' => 'https:' . $episode['download'],
// Some video links starts with '//' and doesn't include protocol
'download_link' => strpos($episode['download'], 'https:') === 0
? $episode['download']
: 'https:' . $episode['download'],
'number' => $episode['position']
];
}, $episodes)

0 comments on commit b9511ca

Please sign in to comment.