Saksham Shekher 2 years ago
parent
commit
fcd56802ea
1 changed files with 7 additions and 0 deletions
  1. 7 0
      misc/tools.php

+ 7 - 0
misc/tools.php

@@ -19,6 +19,12 @@
             else if (!empty($config->$frontend))
                 $frontend = $config->$frontend;
 
+           if ($original == "instagram.com")
+            {
+                if (!strpos($url, "/p/"))
+                    $frontend .= "/u";
+            }
+
             if (empty(trim($frontend)))
                 return $url;
 
@@ -59,6 +65,7 @@
 
         $frontends = array(
             "youtube.com" => "invidious",
+            "instagram.com" => "bibliogram",
             "music.youtube.com" => "hyperpipe",
             "imgur.io" => "rimgo",
             "medium.com" => "scribe",