Skip to content

Commit

Permalink
Some More Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asaddon committed Dec 26, 2024
1 parent 23842b9 commit bceefd2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "community.einthusantv",
"version": "3.0.0",
"version": "3.1.0",
"name": "EinthusanTV",
"description": "Addon for Streaming from EinthusanTV by Asaddon",
"logo": "https://i.imgur.com/hmTKdwR.png",
Expand Down
14 changes: 10 additions & 4 deletions sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ async function ttnumberToTitle(ttNumber) {
cache.set(countryCacheKey, compressData(countryCheckResult));

if (!isNotUS) {
console.info(`Movie "${movieTitle}" (IMDb ID: ${ttNumber}) is from the United States. Skipping.`);
//console.info(`Movie "${movieTitle}" (IMDb ID: ${ttNumber}) is from the United States. Skipping.`);
return null; // If the country is the United States, return null
}

// Step 4: Country is not the United States, return the title from OMDB
console.info(`Movie "${movieTitle}" (IMDb ID: ${ttNumber}) Is Not From the United States. Continuing.`);
//console.info(`Movie "${movieTitle}" (IMDb ID: ${ttNumber}) Is Not From the United States. Continuing.`);

// Step 5: Cache the title
cache.set(cacheKey, compressData(movieTitle));
Expand Down Expand Up @@ -628,13 +628,19 @@ async function getAllRecentMovies(maxPages, lang, logSummary = true) {

const imdbId = await verifyImdbTitle(title, year);

return {
// Fetch additional metadata using the existing meta function
const metaData = await meta(`einthusan_${einthusanId}`, lang);

return {
id: imdbId || `einthusan_${einthusanId}`,
EinthusanID: einthusanId,
type: "movie",
name: title,
poster: img.startsWith('http') ? img : `https:${img}`,
releaseInfo: year
releaseInfo: year,
description: metaData?.description || null,
trailers: metaData?.trailers || [],
links: metaData?.links || []
};
})
);
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vue/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- <title>Trakt Lists</title> -->
<script type="module" crossorigin src="/assets/index-756b8258.js"></script>
<script type="module" crossorigin src="/assets/index-6ed31919.js"></script>
<link rel="stylesheet" href="/assets/index-6ac68831.css">
</head>
<body>
Expand Down

0 comments on commit bceefd2

Please sign in to comment.