correcting pixiv connection functionality

This commit is contained in:
2026-02-04 12:45:31 -05:00
parent cc19bbd372
commit 2190a9c16b
8 changed files with 315 additions and 13 deletions
+15 -4
View File
@@ -1,6 +1,6 @@
# GallerySubscriber - Project Summary
**Updated:** 2026-02-02 (Added Pixiv and DeviantArt platform support)
**Updated:** 2026-02-04 (Fixed Pixiv authentication - requires OAuth refresh token)
## Overview
@@ -159,9 +159,17 @@ Download (1) ──→ (many) ContentItem
| SubscribeStar Adult | Cookies | images, attachments | Infinite scroll (complete) |
| Hentai Foundry | Cookies | pictures, scraps, stories | All pages (complete) |
| Discord | Token | messages, attachments, embeds | All threads included |
| Pixiv | Cookies | illusts, manga, bookmarks | All works (complete) |
| Pixiv | Refresh Token | illusts, manga, bookmarks | All works (complete) |
| DeviantArt | Cookies (optional) | gallery, scraps, favorites | All deviations (complete) |
**Pixiv Authentication:** Pixiv requires an OAuth refresh token (not cookies). The Firefox extension handles this automatically:
1. Click the Pixiv card in the extension popup
2. A new tab opens for Pixiv login
3. Log in with your Pixiv username/password
4. The extension automatically captures the OAuth token and exports it
Alternatively, you can manually obtain a token by running `gallery-dl oauth:pixiv` and adding it via the web UI.
**Note:** All platforms fetch complete history by default - no depth limits. Gallery-dl paginates through ALL available content.
## Configuration
@@ -266,8 +274,11 @@ docker compose -f docker-compose.dev.yml up
1. User installs Firefox extension
2. User configures API URL and key in extension options
3. Extension detects supported platforms when user visits them
4. User clicks "Export Cookies" in popup
5. Extension sends encrypted cookies to backend API
4. User clicks platform card in popup to export credentials:
- **Cookie-based platforms** (Patreon, SubscribeStar, etc.): Exports browser cookies
- **Discord**: Captures auth token from API requests (browse Discord first)
- **Pixiv**: Opens OAuth login flow, captures refresh token automatically
5. Extension sends encrypted credentials to backend API
6. Backend stores credentials for gallery-dl authentication
## Download Workflow