Skip to content

Commit

Permalink
Use DO Space name
Browse files Browse the repository at this point in the history
  • Loading branch information
Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram committed Jul 15, 2019
1 parent 63278e6 commit 1f28322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Quran/Helper/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Meta
{
const DO_CDN_BASE_URL = 'islam.cdn.damascus.network/';
const DO_CDN_BASE_URL = 'islamic-network.fra1.cdn.digitaloceanspaces.com/';
private $hizb_quarter;
private $page;
private $ruku;
Expand Down Expand Up @@ -137,12 +137,12 @@ public function getAudioBySize()
];
}

public function getAudioUrlsByReciter($name = 'ar.alafasy', int $number, $protocol = 'http'): array
public function getAudioUrlsByReciter($name = 'ar.alafasy', int $number, $protocol = 'https'): array
{
$urls = [];
foreach ($this->getAudioBySize() as $size => $reciters) {
if (in_array($name, $reciters)) {
$urls[] = $protocol . '://' . self::DO_CDN_BASE_URL . 'audio/' . $size . '/' . $name . '/' . $number . '.mp3';
$urls[] = $protocol . '://' . self::DO_CDN_BASE_URL . '/quran/audio/' . $size . '/' . $name . '/' . $number . '.mp3';
}
}

Expand Down

0 comments on commit 1f28322

Please sign in to comment.