[pull] main from mhdzumair:main#259
Merged
Merged
Conversation
RealDebrid recently began blocking certain filename patterns, causing content to appear as infringing (~34% of releases affected). Filter these streams out before returning them to RD users so they never see unplayable results. Two block rules implemented in `is_rd_blocked_filename()`: - Substring match (case-insensitive): web-dl, webrip, bdrip, hdrip, dvdrip - Dot-adjacent source.codec pairs: BluRay.x264, HDTV.x264, HDTV.XviD, WEB.x264, WEB.h264 Filter applied in both the Stremio stream endpoint (stream.rs) and the catalog stream endpoint (catalog_browse.rs), keyed on provider == "realdebrid". Checks filename first, falls back to the stream name when filename is absent.
The pg_dump header in 0001_baseline.up.sql contained two lines that
broke fresh-install migrations:
1. SET transaction_timeout = 0 — PostgreSQL 17+ only; crashes on PG 15/16
2. SELECT pg_catalog.set_config('search_path', '', false/true) — sets
search_path to empty inside the migration transaction; sqlx's own
bookkeeping INSERT INTO _sqlx_migrations (unqualified) then fails with
'42P01: relation does not exist'. All objects in the baseline are
already schema-qualified (public.*) so this line serves no purpose.
Verified on a fresh postgres:15-alpine container: all 5 migrations apply
cleanly, 77 tables created, server reaches 'listening' state.
pnpm@latest resolved to v11 which requires Node >= 22.13 and uses node:sqlite (unavailable in Node 20). Switch to node:22-alpine and pin pnpm to 10.28.2 (the version used locally) for a reproducible build. Also update pnpm-lock.yaml to pick up the @tanstack/react-query version bump.
- Fix stream_id i64→i32 in SuggestionRow; all stream suggestion list queries were silently failing due to the type decode mismatch - Remove ::uuid casts on varchar id columns in metadata suggestions; was causing suggestion review/get to always return 404 - Align validate_token/get_user_role to return/accept i32 (matches users.id integer column) in contributions, stream_linking, and stream_suggestions routes - Fix migrate_media response shape to match MigrateMediaResponse interface expected by the frontend (from_media_ids, migrated_sources, to_media_id, stream_links_migrated, etc.) to stop the UI crash on .map
Stats grid: sm:grid-cols-3 / lg:grid-cols-5 breakpoints give cards enough room at medium viewports; shrink-0 on icons and min-w-0 on text prevents overflow at any column width; last card spans 2 cols on mobile so the 5th item doesn't orphan on a 3-col row. Tabs: replace fixed grid-cols-2/sm:grid-cols-6 with flex flex-wrap so tabs reflow to the next line instead of overlapping when the content area is narrower than the combined tab widths.
Users who applied migration v1 before the pg_dump header cleanup (transaction_timeout + search_path removal) have a stored checksum that no longer matches the updated file. repair_checksums() runs before migrator.run() on every startup: - reads stored checksums from _sqlx_migrations - compares against compiled checksums - updates mismatched rows in-place with a WARN log - migrator.run() then sees no mismatch and proceeds normally Existing installs self-heal on the next restart with no manual intervention required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )