Skip to content

Commit

Permalink
Switch download to https (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedre authored and thabti committed Feb 9, 2017
1 parent d547621 commit 06a93b2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/tasks/addAudioData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const createData = (files, index) => {
const file = files[index];

if (file.qari && (!file.format || !file.metadata)) {
const url = `http://download.quranicaudio.com/quran/${file.qari.relative_path}${file.file_name}`;
const url = `https://download.quranicaudio.com/quran/${file.qari.relative_path}${file.file_name}`;
try {
return probe(url, (err, data) => {
file.metadata = data.metadata;
Expand Down
2 changes: 1 addition & 1 deletion src/actions/audioplayer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const AUDIO_URL = 'http://download.quranicaudio.com/quran';
export const AUDIO_URL = 'https://download.quranicaudio.com/quran';
export const LOAD = '@@quran/audioplayer/LOAD';
export const UPDATE = '@@quran/audioplayer/UPDATE';
export const SET_USER_AGENT = '@@quran/audioplayer/SET_USER_AGENT';
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Main/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Download extends Component {
<Col md={8} mdOffset={2}>
{data.loaded ? <Row>
<h1>Surat {surahs[surahId].name.simple} by {qaris[qariId].name}</h1>
<a className={styles.downloadLink} href={`http://download.quranicaudio.com/quran/${qaris[qariId].relativePath}${zeroPad(surahId, 3)}.mp3`}>Download</a>
<a className={styles.downloadLink} href={`https://download.quranicaudio.com/quran/${qaris[qariId].relativePath}${zeroPad(surahId, 3)}.mp3`}>Download</a>
</Row> : <h1>Not Found</h1>}
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Qari/Sura.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Sura extends Component {
<Button
bsStyle="primary"
className={styles.options}
href={`http://download.quranicaudio.com/quran/${qari.relativePath}${zeroPad(surah.id, 3)}.mp3`}
href={`https://download.quranicaudio.com/quran/${qari.relativePath}${zeroPad(surah.id, 3)}.mp3`}
target="_blank"
onClick={(event) => event.stopPropagation()}
download>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Qari/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Qaris extends Component {
<Button
bsStyle="primary"
className={styles.options}
href={`http://download.quranicaudio.com/quran/${qari.relativePath}${zeroPad(surah.id, 3)}.mp3`}
href={`https://download.quranicaudio.com/quran/${qari.relativePath}${zeroPad(surah.id, 3)}.mp3`}
target="_blank"
onClick={(event) => event.stopPropagation()}
download>
Expand Down

0 comments on commit 06a93b2

Please sign in to comment.