1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-21 18:55:36 +02:00

fix(frontend): drop m.youtube.com from isPlaylistSource

Backend determine_source playlist/channel regex only matches
(?:www\.)?youtube\.com — mobile URLs hitting m.youtube.com would be
probed as playlist in the UI but captured as Source::Url server-side.
Remove m.youtube.com from the detector to keep frontend and backend
in exact agreement. Add backend support when needed.
This commit is contained in:
TheGeneralist 2026-07-20 22:52:04 +02:00
parent f096b052ab
commit 34ec0b44e2
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 3 additions and 3 deletions

View file

@ -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-CChk7xCp.js"></script>
<script type="module" crossorigin src="/assets/index-Biv9sexV.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-vCRGeW0A.css">
</head>
<body>

View file

@ -86,7 +86,7 @@ function isPlaylistSource(locator) {
try {
const url = new URL(l)
const host = url.hostname
if (host === 'youtube.com' || host === 'www.youtube.com' || host === 'm.youtube.com') {
if (host === 'youtube.com' || host === 'www.youtube.com') {
// Mirror determine_source exactly:
// - /playlist?list=... YouTubePlaylist
// - /@handle, /channel/, /c/, /user/ YouTubeChannel