Compare commits
8 Commits
jobs/insta
...
4623a52bcc
Author | SHA1 | Date | |
---|---|---|---|
4623a52bcc | |||
8ab097ca1c | |||
9d0a1b5cf9 | |||
77fcee7a83 | |||
1f7f4c665d | |||
44d7d52f23 | |||
25b5b1be27 | |||
7054597696 |
@ -1,6 +1,6 @@
|
||||
|
||||
# INSTALL PHP COMPOSER DEPENDENCIES
|
||||
FROM composer:lts AS composer-deps
|
||||
FROM composer:2.7.9 AS composer-deps
|
||||
|
||||
WORKDIR /
|
||||
|
||||
@ -61,6 +61,11 @@ RUN apk update && apk add --no-cache \
|
||||
RUN docker-php-ext-configure zip && docker-php-ext-install zip
|
||||
RUN docker-php-ext-install gd pdo pdo_mysql zip
|
||||
|
||||
# Tesseract-OCR module downloads
|
||||
# Based on https://github.com/Franky1/docker-tesseract/blob/master/Dockerfile.main
|
||||
RUN wget --no-check-certificate https://github.com/tesseract-ocr/tessdata/raw/refs/heads/main/eng.traineddata -P /usr/share/tessdata \
|
||||
&& wget --no-check-certificate https://github.com/tesseract-ocr/tessdata/raw/refs/heads/main/fra.traineddata -P /usr/share/tessdata
|
||||
|
||||
# Install latest version of the linux binary of yt-dlp into /bin/yt-dlp
|
||||
# Get the file from https://github.com/yt-dlp/yt-dlp-master-builds/releases/latest/download/yt-dlp
|
||||
RUN curl -L https://github.com/yt-dlp/yt-dlp-master-builds/releases/latest/download/yt-dlp -o /bin/yt-dlp \
|
||||
|
@ -185,6 +185,10 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
|
||||
$reel = $infos[0];
|
||||
$videoInfo = $infos[1];
|
||||
|
||||
if ($videoInfo === null) {
|
||||
continue; // Skip this reel if it failed to download
|
||||
}
|
||||
|
||||
$repostSuccess = false;
|
||||
do {
|
||||
$repostSuccess = $this->repostReel($browser, $reel, $videoInfo);
|
||||
|
@ -9,10 +9,11 @@ use Uri;
|
||||
*/
|
||||
class OpenAPIPrompt implements IAIPrompt
|
||||
{
|
||||
private string $host;
|
||||
private ?string $host;
|
||||
private ?string $token = null;
|
||||
|
||||
public function __construct(string $host = null) {
|
||||
public function __construct(?string $host = null) {
|
||||
//dd($host ?? config('llm.api.host'));
|
||||
$this->host = $host ?? config('llm.api.host');
|
||||
if (config('llm.api.token')) {
|
||||
$this->token = config('llm.api.token');
|
||||
|
@ -39,8 +39,8 @@ services:
|
||||
|
||||
undetected-chromedriver:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: undetectedChromedriver/seleniumChromedriverDockerfile
|
||||
context: ./undetectedChromedriver
|
||||
dockerfile: seleniumChromedriverDockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /tmp:/tmp
|
||||
|
Reference in New Issue
Block a user