Skip to content

Commit

Permalink
Update subtis extension
Browse files Browse the repository at this point in the history
- feat: Bump to v0.3.5
- fix: Avoid searching extended versions
- fix: Receive encoders in lower case
- feat: Search by query if there are no results by imdb id in Subdivx.
- Merge pull request raycast#26 from lndgalante/feat/new-release-groups-by-agus
- Merge branch \'main\' into feat/new-release-groups-by-agus
- feat: Use imdb_id as string and as Titles table primary key
- feat/new-release-groups-by-agus
- feat: Format codebase
- feat: Add missing primary_release_year parameter
- docs: Add brew single command to have a clean install
- feat: Bump project to v0.3.4
- feat: Add tips for subtis CLI on how to run it
- docs: Small HTTP collection changes
- feat: Ignore raycast in biome since they have their own linting rules
  • Loading branch information
lndgalante committed Oct 24, 2024
1 parent f187468 commit ce68f87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions extensions/subtis/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/subtis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "leonardo_galante",
"license": "MIT",
"icon": "command-icon.png",
"version": "0.3.2",
"version": "0.3.5",
"commands": [
{
"name": "index",
Expand Down
6 changes: 3 additions & 3 deletions extensions/subtis/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const subtitleSchema = z.object({
title_file_name: z.string(),
subtitle_file_name: z.string(),
title: z.object({
id: z.number(),
imdb_id: z.number(),
title_name: z.string(),
type: z.string(),
year: z.number(),
Expand Down Expand Up @@ -141,7 +141,7 @@ async function getPrimarySubtitle({
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
subtitleId: primarySubtitle.id,
titleId: primarySubtitle.title.id,
titleId: primarySubtitle.title.imdb_id,
}),
});

Expand Down Expand Up @@ -171,7 +171,7 @@ export async function getAlternativeSubtitle({
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
subtitleId: alternativeSubtitle.id,
titleId: alternativeSubtitle.title.id,
titleId: alternativeSubtitle.title.imdb_id,
}),
});

Expand Down

0 comments on commit ce68f87

Please sign in to comment.