mirror of
https://github.com/shreshth-mehra/Obsidian-TV-Tracker.git
synced 2026-07-22 09:20:31 +00:00
v.1.3.15 - Small bug fix
Removed the double quotes from Available On.
This commit is contained in:
parent
fa59490367
commit
5939be3c21
5 changed files with 6 additions and 6 deletions
|
|
@ -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}` : ''}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
2
main.ts
2
main.ts
|
|
@ -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]) => {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue