Skip to content

Commit

Permalink
Fixed fixed link; Fixed linking target
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentipa committed Dec 14, 2020
1 parent 7e3cd10 commit b3bf5aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions api/get_rbg_stream_site.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
function ParseInformation($link)
{
// First get html of remote page
$URL = "https://live.rbg.tum.de/cgi-bin/streams/VOD/WiSe2021AutUFormSpr/2020_11_30_10_00/COMB";
$html = file_get_html($URL);
$html = file_get_html($link);


$veranstaltung = $html->find("main", 1)->find("font", 0)->find("b", 0)->innertext;
Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ function constructLink($type, $link)
$link = base64_encode($link);

if ($type == "comb") {
return '<a href="/watch.php?s=' . $link . '"><span class="material-icons">dashboard</span></a>';
return '<a href="./watch.php?s=' . $link . '"><span class="material-icons">dashboard</span></a>';
} else if ($type == "pres") {
return '<a href="/watch.php?s=' . $link . '"><span class="material-icons">present_to_all</span></a>';
return '<a href="./watch.php?s=' . $link . '"><span class="material-icons">present_to_all</span></a>';
} else if ($type == "cam") {
return '<a href="/watch.php?s=' . $link . '"><span class="material-icons">videocam</span></a>';
return '<a href="./watch.php?s=' . $link . '"><span class="material-icons">videocam</span></a>';
}
}

Expand Down

0 comments on commit b3bf5aa

Please sign in to comment.