feat: add Pornhub video download support

This commit is contained in:
mini
2026-02-18 23:54:36 +08:00
parent 58ace106b8
commit 0856b001a9
2 changed files with 127 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div class="home">
<h1>Video Downloader</h1>
<p class="subtitle">Paste a Twitter/X or YouTube video link to download</p>
<p class="subtitle">Paste a Twitter/X, YouTube, or Pornhub video link to download</p>
<div class="input-group">
<input v-model="url" placeholder="https://x.com/... or https://youtube.com/watch?v=..." @keyup.enter="parseUrl" :disabled="loading" />
<input v-model="url" placeholder="https://x.com/... or https://youtube.com/watch?v=... or https://pornhub.com/view_video.php?viewkey=..." @keyup.enter="parseUrl" :disabled="loading" />
<button @click="parseUrl" :disabled="loading || !url.trim()">
{{ loading ? '⏳ Parsing...' : '🔍 Parse' }}
</button>