refactor(bilinovel): Migrate browser automation from Chromedp to Playwright

This commit replaces the `chromedp` library with `playwright-go` for browser automation within the Bilinovel downloader.

Changes include:
*   Updated `Bilinovel` struct to manage Playwright browser, context, and page instances.
*   Rewrote `initBrowser` and `Close` methods to use Playwright's API for browser lifecycle management.
*   Refactored `processContentWithChromedp` to `processContentWithPlaywright`, adapting the logic to use Playwright's page evaluation capabilities.
*   Removed unused `context` and `time` imports.
*   Added HTML cleanup in `getChapterByPage` to remove `class` attributes from images and `data-k` attributes from all elements, improving content consistency.
This commit is contained in:
2025-10-06 07:58:31 +11:00
parent f1320cb978
commit 6084386989
5 changed files with 140 additions and 169 deletions

4
.vscode/launch.json vendored
View File

@@ -10,7 +10,9 @@
"args": [
"download",
"-n",
"3095"
"2321",
"-v",
"162759"
]
}
]