View Single Post
Old 03-02-2021, 12:03 AM   #2477
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
I was able to get rid of the dummytemplatetest subtitles by emptying the subtitle field, letting it update, and then putting my template code back.
I suppose that should work. You are basically setting the template to an empty string and that should do the same on the device. Though it will be doing this for all subtitles.

But, that should work the same with the previous template. Unless that is returning None or something like that when the condition returns false. You could try adding an else to return an empty string (just two quotes together).

I'll have to experiment and see. And check the code. I might have deliberately decide to not change the subtitle if the template doesn't return anything.
davidfor is offline   Reply With Quote