2 Commits

Author SHA1 Message Date
e6ff59ff18 get latest version of yt-dlp
All checks were successful
Push image to registry / build-image (push) Successful in 7m6s
2025-06-03 20:04:40 +02:00
02bd6eae82 Wait after signing in 2025-06-03 20:04:31 +02:00
2 changed files with 13 additions and 1 deletions

View File

@ -54,12 +54,15 @@ RUN apk update && apk add --no-cache \
openssl \
linux-headers \
supervisor \
yt-dlp \
&& rm -rf /tmp/* /var/cache/apk/*
RUN docker-php-ext-configure zip && docker-php-ext-install zip
RUN docker-php-ext-install gd pdo pdo_mysql zip
# 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 \
&& chmod +x /bin/yt-dlp
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

View File

@ -365,9 +365,18 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
$passwordButton = $browser->driver->findElement(WebDriverBy::xpath('//input[contains(@aria-label, "Password")]'));
$passwordButton->click();
$passwordButton->sendKeys($this->jobInfos->get("instagram_repost_account_password") . "\n");
sleep(5);
} catch (\Exception $e) {
// Probably no need to signin
}
try {
$browser->waitForText("Search", 15, true);
$this->removePopups($browser);
} catch (\Exception $e) {
Log::error("Failed to sign in: " . $e->getMessage());
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
AllNotification::send(new JobDebugNotification($this->jobId, "Failed to sign in: " . $e->getMessage()));
}
}
protected function removePopups(Browser $browser)