v.1.3.15 - Small bug fix

Removed the double quotes from Available On.
This commit is contained in:
Shreshth-mehra 2025-04-09 16:42:21 +05:30
parent fa59490367
commit 5939be3c21
5 changed files with 6 additions and 6 deletions

View file

@ -166,7 +166,7 @@ budget: ${budget}
revenue: ${revenue}
belongs_to_collection: ${belongsToCollection ? `"${belongsToCollection}"` : '""'}
production_company: "${productionCompanies}"
Available On: "${escapeDoubleQuotes(providerNames)}"
Available On: ${providerNames}
${isTvShow ? `total_episodes: ${totalEpisodes}` : ''}
${isTvShow ? `total_seasons: ${totalSeasons}` : ''}
${isTvShow ? `episode_runtime: ${episode_runtime}` : ''}

View file

@ -268,7 +268,7 @@ const Metrics = ({
// Process OTT providers
if (movie['Available On'] && movie['Available On'].trim() !== '') {
// Remove double quotes and split by comma
const ottString = movie['Available On'].replace(/"/g, '').trim();
const ottString = movie['Available On'].trim();
if (ottString !== '') {
const ottProviders = ottString.split(',').map(provider => provider.trim());

View file

@ -157,7 +157,7 @@ export const ReactView = forwardRef(({ moviesData, createMarkdownFile, themeMode
const newProvidersSet = new Set();
newMoviesData.forEach(movie => {
if (movie['Available On']) {
const providers = movie['Available On'].replace(/"/g, '').split(', ');
const providers = movie['Available On'].split(', ');
providers.forEach(provider => newProvidersSet.add(provider));
}
});
@ -190,7 +190,7 @@ export const ReactView = forwardRef(({ moviesData, createMarkdownFile, themeMode
const providersSet = new Set();
movies.forEach(movie => {
if (movie['Available On']) {
const providers = movie['Available On'].replace(/"/g, '').split(', ');
const providers = movie['Available On'].split(', ');
providers.forEach(provider => providersSet.add(provider));
}
});

View file

@ -589,7 +589,7 @@ export default class TVTrackerPlugin extends Plugin {
let updatedYaml = {
...yaml,
"Available On": providerNames ? `"${escapeDoubleQuotes(providerNames)}"` : '""'
"Available On": providerNames || ''
};
const updatedYamlContent = `---\n${Object.entries(updatedYaml).map(([key, value]) => {

View file

@ -1,7 +1,7 @@
{
"id": "tv-tracker",
"name": "Movie and TV show tracker",
"version": "1.3.14",
"version": "1.3.15",
"minAppVersion": "0.15.0",
"description": "A Movie and TV show tracker.",
"author": "Shreshth Mehra",