feat: 하위 폴더에 "목록 뽑기" 추가 (영상 ID + 실제 주소 txt 다운로드)
플레이리스트 추가 버튼 옆에 "목록 뽑기"를 두어, 누르면 `<영상ID> <실제 영상 주소>` 형식의 txt 를 내려받는다. YouTube 는 watch?v=/embed/shorts/live/youtu.be 등 어떤 형식이든 11자 영상 ID 를 뽑아 https://youtu.be/ID 로 간결화하고, 그 외(네이버 등) source_url 은 원본 그대로 출력한다. 업로드 영상처럼 주소가 없으면 ID 만 남긴다. GET /op/folder/:topName/:subName/list.txt (3세그먼트라 폴더 라우트와 충돌 없음). 파일명은 폴더 경로 기반, RFC5987 UTF-8 + ASCII 폴백. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
var parentLabel = isSubFolder ? '← ' + breadcrumb[0] : '← 폴더 목록'
|
||||
var editorHref = '/op/folder/' + folderPathEnc + '/video/editor'
|
||||
var playlistHref = '/op/folder/' + folderPathEnc + '/playlist/new'
|
||||
var listTxtHref = '/op/folder/' + folderPathEnc + '/list.txt'
|
||||
%>
|
||||
|
||||
<main class="pageWrap">
|
||||
@@ -30,6 +31,7 @@
|
||||
<a class="primaryButton" href="<%= editorHref %>">영상 추가</a>
|
||||
<% if (isSubFolder) { %>
|
||||
<a class="primaryButton" href="<%= playlistHref %>">플레이리스트 추가</a>
|
||||
<a class="primaryButton" href="<%= listTxtHref %>" download>목록 뽑기</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user