Skip to content

Commit

Permalink
Merge pull request #1655 from KhalisFoundation/dev
Browse files Browse the repository at this point in the history
Fixes for audio sttm
  • Loading branch information
saintsoldierx authored Jun 13, 2023
2 parents 14ee4e9 + fd8302b commit 011a031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/js/constants/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ export const TYPES = _TYPES.filter((value, index) =>
export const SHORT_DOMAIN = 'sttm.co';
export const MAHANKOSH_TOOLTIP_SOURCE = 'Source: Mahaan Kosh (Encyclopedia)';
export const HUKAMNAMA_AUDIO_URL='http://old.sgpc.net/hukumnama/jpeg%20hukamnama/hukamnama.mp3';
export const S3_BUCKET_URL = 'https://sikhifm-audio.s3.us-west-1.amazonaws.com/';
export const API_URL = "https://sttm-fm.thedev.studio/v1/";
export const API_URL = "https://audio.sikhitothemax.org/v1/";
4 changes: 2 additions & 2 deletions src/js/util/shabad/get-audio-url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";
import { API_URL, S3_BUCKET_URL } from "@/constants";
import { API_URL } from "@/constants";

export const checkAPIHealth = async function () {
const uri = `${API_URL}health/`;
Expand Down Expand Up @@ -52,7 +52,7 @@ export const getShabadAudioUrl = async function (info: any) {

let shbdUrl = '';
if (res.data.status === 'success') {
shbdUrl = `${S3_BUCKET_URL}${res.data.track_url.replace(/%20/g, "+")}`;
shbdUrl = `${res.data.track_url.replace(/%20/g, "+")}`;
} else {
console.log('No audio for this shabad');
}
Expand Down

0 comments on commit 011a031

Please sign in to comment.