Skip to content

Commit

Permalink
Now using https scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcthenarc authored Jan 22, 2022
1 parent 44eb3e7 commit e985508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nhknews_dl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

# Get file for the NHK website.
$xml = file_get_contents(
"http://www.nhk.or.jp/r-news/podcast/nhkradionews.xml");
"https://www.nhk.or.jp/r-news/podcast/nhkradionews.xml");

# Parse file for all http:// references to mp3 files.
preg_match_all("/http:\/\/.*\.mp3/", $xml, $out, PREG_SET_ORDER);
preg_match_all("/https:\/\/.*\.mp3/", $xml, $out, PREG_SET_ORDER);

# For each reference ...
foreach ($out as $values) {
Expand Down

0 comments on commit e985508

Please sign in to comment.