some xtream refactorings

This commit is contained in:
euzu
2023-11-22 21:06:58 +01:00
parent fce81e2cb7
commit fd69a835b6
13 changed files with 403 additions and 54 deletions
@@ -91,6 +91,11 @@ export default function PlaylistTree(props: PlaylistTreeProps) {
title = title.substring(0, idx).trim();
}
}
const dateSuffixMatch = title.match(/(.*?).\(\d+\)/);
if (dateSuffixMatch?.length > 1) {
title = dateSuffixMatch[1];
}
const url = serverConfig.video.web_search.replace("{}", title);
window.open(url, "imdb");
}