mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-21 18:55:36 +02:00
fix(frontend): add yt:user/ to isPlaylistSource shorthand detection
Backend determine_source routes yt:user/... (and youtube:user/...) to YouTubeChannel — already covered by the yt: shorthand block for playlist/, @, channel/, c/ but missing user/. Old-style user channel URLs would capture correctly server-side but never show the playlist quality/sync UI.
This commit is contained in:
parent
02b9207454
commit
dcdfa78073
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Archivr</title>
|
||||
<script type="module" crossorigin src="/assets/index-8HhvMz5i.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-fBW6UZq7.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-vCRGeW0A.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ function isPlaylistSource(locator) {
|
|||
if (ll.startsWith(scheme)) {
|
||||
const after = ll.slice(scheme.length)
|
||||
return after.startsWith('playlist/') || after.startsWith('@') ||
|
||||
after.startsWith('channel/') || after.startsWith('c/')
|
||||
after.startsWith('channel/') || after.startsWith('c/') || after.startsWith('user/')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue