Skip to content

Movie Template: remove the "min" from the Duration using {{VALUE:Runtime}}? #316

Answered by chhoumann
ReaderGuy42 asked this question in Q&A
Discussion options

You must be logged in to vote

Sure! You can add Runtime: selectedShow.Runtime.replace(" min", ""), to the QuickAdd.variables assignment in the script. Like this:

	QuickAdd.variables = {
		...selectedShow,
+      Runtime: selectedShow.Runtime.replace(" min", ""),
		actorLinks: linkifyList(selectedShow.Actors.split(",")),
		genreLinks: linkifyList(selectedShow.Genre.split(",")),
		directorLink:
			selectedShow.Director === "N/A"
				? " "
				: linkifyList(selectedShow.Director.split(",")),
		fileName: replaceIllegalFileNameCharactersInString(selectedShow.Title),
		typeLink: `[[${selectedShow.Type === "movie" ? "Movies" : "Series"}]]`,
	};

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ReaderGuy42
Comment options

@ReaderGuy42
Comment options

@chhoumann
Comment options

Answer selected by ReaderGuy42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants