Repository navigation
feat(torrents): external media ids, custom name and announce url in upload - #52
Merged
Merged
Conversation
…pload - store IMDb, TMDb and TheTVDB ids on torrents (paste an id or the page url) - show external database links on the torrent page - Torznab: search by imdbid/tmdbid/tvdbid, return them as attrs, advertise in caps - upload modal shows the personal announce url with a copy button - optional display name at upload, name and ids editable afterwards Closes #47 Closes #42 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 8, 2026
Closed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
#47: IMDb / TMDb / TheTVDB IDs
Schema: new
imdb_id,tmdb_idandtvdb_idcolumns ontorrents, each indexed. They are applied by the usualdrizzle-kit pushat startup, and0011_media_ids.sqlis provided for reference.Upload and edit: three optional fields. Users can paste either the ID or the page URL:
tt0133093orhttps://www.imdb.com/title/tt0133093/603orhttps://www.themoviedb.org/movie/603-the-matrix81189orhttps://thetvdb.com/?tab=series&id=81189The value is normalized, and an invalid one returns a 400.
Torrent page: external IMDb / TMDb / TheTVDB links. The TMDb link uses
/tv/for TV categories (newznab 5xxx).Torznab:
t=movieandt=tvsearchfilter onimdbid,tmdbidandtvdbid. Season and episode terms still apply to TV searches.imdbid,tmdbidandtvdbidattributes.tv-search: q,season,ep,tvdbid,imdbid,tmdbidandmovie-search: q,imdbid,tmdbid.tvdbidwas ignored andimdbidwas only appended to the text query.Out of scope: fetching metadata (poster, overview), which needs a TMDb API key.
#42: Upload modal
/api/auth/passkeywhen the modal opens..torrent. The name is also editable afterwards in the edit modal.Notes
Test plan
npx vitest run: 128 passing, including new parser tests intests/media-ids.test.tsnpm run buildCloses #47
Closes #42
🤖 Generated with Claude Code