Skip to content

Ask gallery-dl first for Facebook posts - #18

Merged
stefan-azentrius merged 1 commit into
mainfrom
facebook-posts-gallery-dl-first
Oct 25, 2026
Merged

stefan-azentrius merged 1 commit into
mainfrom
facebook-posts-gallery-dl-first

Conversation

@stefan-azentrius

Copy link
Copy Markdown
Contributor

Summary

After #17, a Facebook post with an article picture came back as a pack with a short video (3 seconds of sound) instead of the picture. yt-dlp, which goes first for every Facebook link, took a video from the post's page; an hour earlier it had found no video there at all. The check on the server for #17 showed that gallery-dl finds exactly the post's one picture.

  • Facebook posts (kind == "post", e.g. resolved story.php, permalink.php and <id>/posts/<id> links) now go to gallery-dl first, as Instagram does, with the post link from Hand Facebook photo posts to gallery-dl as post links #17. yt-dlp only runs when gallery-dl finds nothing, e.g. for a post with a video only, and gets the original link.
  • Facebook reels and videos (/reel/, /watch, /videos/) still go to yt-dlp first.
  • CHANGELOG: an entry in "Unreleased".

Test

  • tests/test_fetch.py:
    • A post goes to gallery-dl first, with the post link, and yt-dlp does not run.
    • A post where gallery-dl finds nothing falls back to yt-dlp with the original link.
    • Reel, watch and video links still go to yt-dlp first.
    • The two post tests failed with the old order.
  • Locally: ruff clean, pytest 167 passed and 3 skipped (no FFmpeg), node --test 33 of 33, git diff --check clean.
  • Not yet checked: preparing the post again after the update.

yt-dlp, which went first for every Facebook link, took a short video from the page of a post with a picture, and the pack had that video instead of the picture. Facebook posts now go to gallery-dl first, as Instagram does; reels and videos still go to yt-dlp first.
@stefan-azentrius
stefan-azentrius merged commit 63ddcc1 into main Oct 25, 2026
8 checks passed
@stefan-azentrius
stefan-azentrius deleted the facebook-posts-gallery-dl-first branch October 25, 2026 23:52
stefan-azentrius added a commit that referenced this pull request Oct 26, 2026
…#19)

## Summary

Prepares the release 0.1.2 with everything on `main` since 0.1.1 (#7 to
#18).

- `__version__` in `app/__init__.py`: 0.1.1 to 0.1.2. The image label,
the extension's manifest and the version on the page follow from it.
- `CHANGELOG.md`: the section "Unreleased" becomes "0.1.2 – 2026-10-26",
with a summary that now names the Facebook posts with pictures (#17,
#18). The "Upgrading" note names the extension zip the release workflow
attaches.

After the merge, the `release` workflow builds the source archive,
`sharewerk-extension-0.1.2.zip` and the image
`ghcr.io/azentrius/sharewerk:0.1.2`, each with build provenance, and
takes the notes from this section.

## Test

- `tools/release-notes.sh 0.1.2` prints the section (54 lines).
- Locally: ruff clean, pytest 167 passed and 3 skipped (no FFmpeg), node
--test 35 of 35 (app, extension, PWA update), `git diff --check` clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant