Playing some --queryformat enhancements. Let’s say your surlatablo.conf looks like:
SURLATABLO_ROOT = '/SurLaTablo'
TRANSCODER_DEFAULT = [ 'Mp4', 'Gif', 'Json' ]
TABLO_IPS = ['192.168.1.73']
options['truncate_ts'] = 25
options['queryformat'] = '## ${friendly_title} ##\n\t${friendly_date}\n\t${channel_sign}(${channel_affiliate}) - ${channel_res_name}\n\n\tDescription:\n\t${Wlong_description}\n'
options['wrapwidth'] = 80
options['wrapindent'] = '\t'
options['wrapsubindent'] = '\t'
What I’ve added is the ability to customize the default queryformat via surlatablo.conf (since they can be complex and you might have a default format that you like) and I’ve added word wrapped elements for description and long_description called Wdescription and Wlong_description, as well as a friendly_date too (where the format is customizable).
With the settings above you get the following on a query, let’s say for all movies:
surlatablo.py -n -q meta_type~=Movie
Uncommon Valor (1983)
Friday, August 28, 2015 at 09:30 AM
KTXD-DT() - unknown
Description:
Col. Cal Rhodes (Gene Hackman), a retired Marine officer, holds out hope that
his son, believed to be a prisoner of war in Laos, is still alive. Despite the
government's refusal to help Rhodes, he assembles a group to find and rescue
his son, including skilled soldiers such as Wilkes (Fred Ward) and Sailor
(Randall "Tex" Cobb). Funded by MacGregor (Robert Stack), a wealthy executive
also looking for his son, Rhodes leads his men on a dangerous mission into the
jungles of Laos.
Cops and Robbersons (1994)
Monday, August 24, 2015 at 04:30 AM
ThisTV() - 480i
Description:
Tough-guy police officer Jake Stone (Jack Palance) and his less seasoned
partner, Tony Moore (David Barry Gray), are intent on taking down Osborn
(Robert Davi), a ruthless criminal. However, since Osborn is holed up in the
suburbs, Jake and Tony must hold their stakeout in a neighboring house, home to
the Robbersons. The well-meaning family, including patriarch Norman (Chevy
Chase), tries to assist the cops in their duties, but it proves to be unwanted
help.
Not released just yet, but coming soon…