mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(media-upload): remove Postimages provider
Postimages cannot support WebView automation (site blocks automated uploads). Imgur works reliably. Keep only Catbox and Imgur as supported providers.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Diagnostics (parity with Android): selector match/timeout info included in errors
|
||||
* for debugging. Poll interval 500ms, timeout per recipe matches Android where
|
||||
* providers overlap (imgur/postimages: 45s).
|
||||
* providers overlap (imgur: 45s).
|
||||
*/
|
||||
import { BrowserWindow } from 'electron';
|
||||
import { MEDIA_UPLOAD_RECIPES } from './media-upload-recipes.js';
|
||||
@@ -29,7 +29,7 @@ export function isDirectMediaUrl(url) {
|
||||
/**
|
||||
* Run automated upload for a provider.
|
||||
* @param {Object} options
|
||||
* @param {string} options.provider - Provider id (catbox, imgur, postimages)
|
||||
* @param {string} options.provider - Provider id (catbox, imgur)
|
||||
* @param {string} options.filePath - Absolute path to the file to upload
|
||||
* @returns {Promise<{ url: string; provider: string }>}
|
||||
* @throws {Error} On missing recipe, blocked indicators, timeout, or invalid URL
|
||||
|
||||
Reference in New Issue
Block a user