aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--processor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/processor.php b/processor.php
index e96ea1e..66b0c96 100644
--- a/processor.php
+++ b/processor.php
@@ -10,7 +10,7 @@ $baselink = htmlspecialchars($_GET['link']);
$yturl = 'youtu.be/';
if (strpos($baselink,$yturl) !== false){
- $link = preg_replace('~^https?://youtu\.be/([a-z\d]+)$~i', 'http://www.youtube.com/watch?v=$1', $baselink);
+ $link = preg_replace('~^https?://youtu\.be/([a-z\d]+)$~i', 'https://www.youtube.com/watch?v=$1', $baselink);
} else {
$link = $baselink;
}
@@ -18,7 +18,7 @@ if (strpos($baselink,$yturl) !== false){
parse_str($link, $urlData);
$my_id = array_values($urlData)[0];
-$videoFetchURL = "http://www.youtube.com/get_video_info?&video_id=" . $my_id . "&asv=3&el=detailpage&hl=en_US";
+$videoFetchURL = "https://www.youtube.com/get_video_info?&video_id=" . $my_id . "&asv=3&el=detailpage&hl=en_US";
$videoData = get($videoFetchURL);
parse_str($videoData, $video_info);