Skip to content

Commit d932ffb

Browse files
author
Rémi Rigal
committed
Fixed IMDb release year parsing
1 parent 8154449 commit d932ffb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/content-scripts/imdb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (matches !== null && matches.length > 1) {
1212
console.log(`IMDb id: ${imdbId}`);
1313

1414
let title = $('h1.TitleHeader__TitleText-sc-1wu6n3d-0.dxSWFG').text();
15-
let releaseYear = parseInt($('a.TitleBlockMetaData__StyledTextLink-sc-12ein40-1.rgaOW').text());
15+
let releaseYear = parseInt($('a.TitleBlockMetaData__StyledTextLink-sc-12ein40-1.rgaOW:first').text());
1616

1717
initializeContainer();
1818
insertSpinner();
@@ -44,7 +44,7 @@ if (matches !== null && matches.length > 1) {
4444
fillContainer(json.mediaInfo);
4545
} else {
4646
removeSpinner();
47-
insertStatusButton('Not found', 0);
47+
insertStatusButton('Media not found', 0);
4848
}
4949
});
5050
});

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Overseerr Assistant",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Browser extension for Overseerr that embeds buttons into IMDb and TMDB web pages to easily request movies and tv shows.",
55
"permissions": ["activeTab", "storage"],
66
"host_permissions": ["http://*/", "https://*/"],

0 commit comments

Comments
 (0)