Skip to content

Commit

Permalink
Fix harvest link
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Aug 26, 2024
1 parent 27a7803 commit c8c1e0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Bible.Alarm/Bible.Alarm/Common/Helpers/UrlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
public class UrlHelper
{
public static string JwOrgIndexServiceBaseUrl = "https://api.hag27.com/GETPUBMEDIALINKS";

public static string JwOrgIndexServiceBaseUrl = "https://b.jw-cdn.org/apis/pub-media/GETPUBMEDIALINKS";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace AudioLinkHarvester.Bible
{
internal class JwBibleHarvester
{

internal async static
Task Harvest_Bible_Links(Dictionary<string, string> biblePublicationCodeToNameMappings,
ConcurrentDictionary<string, string> languageCodeToNameMappings,
Expand All @@ -25,7 +24,7 @@ Task Harvest_Bible_Links(Dictionary<string, string> biblePublicationCodeToNameMa
{
var publicationCode = publication.Key;

var harvestLink = $"{UrlHelper.JwOrgIndexServiceBaseUrl}?booknum=0&output=json&pub={publicationCode}&fileformat=MP3&alllangs=1&langwritten=E&txtCMSLang=E";
var harvestLink = $"{UrlHelper.JwOrgIndexServiceBaseUrl}?booknum=1&output=json&pub={publicationCode}&fileformat=MP3&alllangs=1&langwritten=E&txtCMSLang=E";

var jsonString = await DownloadUtility.GetAsync(harvestLink);
var model = JsonConvert.DeserializeObject<dynamic>(jsonString);
Expand Down
Binary file modified src/_tools/_index/index.zip
Binary file not shown.

0 comments on commit c8c1e0c

Please sign in to comment.