It is currently March 28th, 2024, 8:20 pm



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Change template if no IMDB / TMDB found.
PostPosted: May 8th, 2021, 10:38 am 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Hello
It is possible to change template if no imdb/tmdb info found?

I want to delete some fields and gave space to manualy add some info if i can't get auto from sources

Image

I have my main template on VIDEO.
I have my backup template on OTHER
Image

There are any way to change from VIDEO to OTHER if no imdb/tmdb info found?


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 1:44 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can use "Replacements" to remove not needed or add needed lines.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 3:30 pm 

Joined: February 26th, 2021, 10:24 am
Posts: 51
I dont think i understand what you mean.

So, if themaposter found the imdb, it will give me this:
[url={#imdbUrl#}]Image[/url]

How can i have replace the {#imdbUrl#} if not found? That way it will not delete even if themaposter found the link?


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 5:46 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
I believe you meant themaCreator (themaPoster has nothing to do with this).

If not found you will have that line like this:
Code:
[url=N/A][img]http://www.imdblogo.com[/img][/url]


You can use a replacement to replace that line to anything you want.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 5:50 pm 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Every replacement is different on each topic, i can't use any specific word to replace.
Per example, i have this on title:
Code:
[center][color=maroon][size=19pt] [b]{#imdbTitle#} ({#imdbYear#})[/b] [/size][/color]
[b]Release:[/b] [u]{#fileName#}[/u]

Its works perfect.


But everytime the IMDB/TMDB is not found, i only get this:
Code:
Release:[/b] [u]{#fileName#}[/u]


I would love to keep this if not found so i can edit after generated:
Code:
[center][color=maroon][size=19pt] [b][/b] [/size][/color]


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 6:36 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
There is another option which makes this happen at the moment.

I will add a new option for 1.92 to prevent that. It will be mentioned in next changelog, you will need to enable it and you will get the result as you expect.

Edit: 1.92:

* Added option in "Settings" -> "Templates" -> "Video" -> "IMDB / TMDB" -> "If IMDB / TMDB information is not found" -> "Use global option for IMDB sub-tags in "Main" template".

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 6:37 pm 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Freddy wrote:
There is another option which makes this happen at the moment.

I will need a new option for 1.92 to prevent that. It will be mentioned in next changelog, you will need to enable it and you will get the result as you expect.


Thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 6:38 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
then add enter to make it look like this

Code:
[center][color=maroon][size=19pt] [b]
{#imdbTitle#} ({#imdbYear#})
[/b] [/size][/color]


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 6:52 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can make that with replacement from 1.92 if needed.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB/TMDB found
PostPosted: May 8th, 2021, 6:57 pm 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Shaki wrote:
then add enter to make it look like this

Code:
[center][color=maroon][size=19pt] [b]
{#imdbTitle#} ({#imdbYear#})
[/b] [/size][/color]


Yes, if i dont use all commands on same line, i think its working. Thanks and i will wait for the fix on next version


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB / TMDB found.
PostPosted: June 20th, 2021, 9:51 am 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Hello
This has been fixed in any of the new versions?
I cant find the option to just empty the field
If IMDB not found, all this line is removed, and it should be removed only "{#imdbUrl#}"

Code:
[url={#imdbUrl#}][img]https://www.example.com/imdb.gif[/img][/url]


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB / TMDB found.
PostPosted: June 20th, 2021, 1:16 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Enable in "Templates" -> "Video" -> "IMDB / TMDB" -> "If IMDB / TMDB information is not found" -> "Use global option for IMDB sub-tags in "Main" template".

And in "Settings" -> "Process" -> "General" -> "When some information is missing" -> make sure option "Replace with text" is selected.

Make sure you have that line in "Main" template.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change template if no IMDB / TMDB found.
PostPosted: June 20th, 2021, 2:16 pm 

Joined: February 26th, 2021, 10:24 am
Posts: 51
Freddy wrote:
Enable in "Templates" -> "Video" -> "IMDB / TMDB" -> "If IMDB / TMDB information is not found" -> "Use global option for IMDB sub-tags in "Main" template".

And in "Settings" -> "Process" -> "General" -> "When some information is missing" -> make sure option "Replace with text" is selected.

Make sure you have that line in "Main" template.


Thank you!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC