Closed mkreisl closed 11 years ago
Hi, currently i check the mythtv code to verify that.
Indeed. This needs two changes:
Yes, but to setup "Template" we need to use mythfrontend ! mythsetup can't do this. Do we want that ? Also "settings" are generic and can be setup with mythweb. For example, mythweb doesn't use "template" rules to setup a new schedule. Should we do like it or use "template" ? And if we must use "template", how we can setup them ?
In 0.26, old settings yet exist: | AutoCommercialFlag | 1 | NULL | | AutoMetadataLookup | 1 | NULL | | AutoRunUserJob1 | 0 | NULL | | AutoRunUserJob2 | 0 | NULL | | AutoRunUserJob3 | 0 | NULL | | AutoRunUserJob4 | 0 | NULL | | AutoTranscode | 0 | NULL |
And can be updated using mythweb. (addon could be also ?)
@janbar Not on my fresh myth 0.26 installation. On my system, the template were automatically created. I only noticed that this template exists, and i have no idea how to create these fields without mythweb or whatever. Maybe it is a good idea adding a checkbox to the configuration dialog (using recording template y/n). Btw, i have no problem using mythfrontend to manipulate the template
Yes, agreed But the addon is not mythfrontend: We have no possibility to add screen to setup default template or add new one for a category. So you need to start mythfrontend to configure it. In case of "mediacenter" XBMC (no keyboard, no mouse...), users cannot do that easily and mythfrontend is not installed by default with the master backend. Also backend could not have display. I think the templates could be used only with mythfrontend as frontend. Also the settings: autocommflag, autotranscode, autorunjob#, autometadatalookup, could be included in addon settings directly. And the others are already included in PVR settings:
As MythWeb done using its own configuration.
The objective should be that addon rest autonomous. Else we use mythfrontend ;).
2013/1/21 Manfred Kreisl notifications@github.com
@janbar https://github.com/janbar Not on my fresh myth 0.26 installation. On my system, the template were automatically created. I only noticed that this template exists, and i have no idea how to create these fields without mythweb or whatever. Maybe it is a good idea adding a checkbox to the configuration dialog (using recording template y/n). Btw, i have no problem using mythfrontend to manipulate the template
— Reply to this email directly or view it on GitHubhttps://github.com/fetzerch/xbmc-pvr-addons/issues/77#issuecomment-12515355.
@mkreisl
Hi, currently i check if it is possible to manage templates with mythweb. As you said it would be possible to check if "Default" template exists. Then we could get it. I try to propose a solution available for all supported version of myth.
Since commit ff51537e64dc7f0e955ea9c651c18140f20a9f66 , mythweb hides templates to avoid deleting. Since nobody made change to support them. I haven't skills to code in php but if someone has spirit to do it, it will be good.
Considering mythweb will manage template (i hope) in future release, we cannot match category with template because timer categories are different than myth program categories, unless XMLTV is aligned with Addon categories, but currently no. It depending of the language and configured grabber. So only default template could be used :-1: Using default template is equivalent of Addon settings. But Addon setting could be updated with XBMC, template no. I think we should ask on the forum which solution could the best for all: 1 - using default template, but need frontend to setup it. 2 - using Addon settings. 3 - Have the choice to use "default template (0.26) / myth settings (up to 0.25)" or "Addon setting" with an other setting: "Record template: MythTV | Addon"
Case 3 could be nice, because everybody can choose its model. What is your opinion ?
Perfect. Brilliant idea. That's what i meant with "adding a checkbox to the configuration dialog" I would prefer case 3
@mkreisl
Ok. I start with this solution. Also with little change i could match category or category_type and then use fully templating.
@mkreisl
janbar finished the implementation. We'd highly appreciate if you could test the code? https://github.com/fetzerch/xbmc-pvr-addons/pull/86
Yes of course. Will test it tomorrow.
"AutoTranscode", "AutoRunUserJob1", "AutoRunUserJob2", "AutoRunUserJob3", "AutoRunUserJob4" and "AutoCommercialFlag" does not exist in database table "settings" and can not be used as default setting. Maybe they exist in older mythtv versions prior to 0..26, but in a fresh 0.26 installation they don't. However , in table "record" -> "Default (Template) they exist It would make more sense taking these variables from here (what i originally expect) Ans perhaps, providing "autometadata" could be a good idea