Skip to content

Commit

Permalink
Merge pull request #13 from leon-w/fix-tum-live-names
Browse files Browse the repository at this point in the history
fix name generation for tum live
  • Loading branch information
leon-w authored Oct 30, 2023
2 parents 18248f4 + 3ff0fa7 commit 6c0d7b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platforms/tum-live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { VideoManager } from "../videos";
// this function is executed in the page context of the stream page
// to generate a better title bases on data available on the page
function getTitleForTumLiveVideo(): string {
const textElement =
document.getElementById("bookmarks-desktop")?.nextElementSibling ??
document.getElementById("watchWrapper")?.nextElementSibling;
const textElement = document.getElementById("streams-box")?.nextElementSibling;
if (textElement) {
return (textElement as HTMLElement).innerText
.split("\n")
Expand Down

0 comments on commit 6c0d7b4

Please sign in to comment.