{"id":32,"date":"2007-02-26T19:15:04","date_gmt":"2007-02-26T22:15:04","guid":{"rendered":"http:\/\/labs.morpheuz.eng.br\/blog\/26\/02\/2007\/mythtvs-jobqueue-patch\/"},"modified":"2007-02-26T19:15:04","modified_gmt":"2007-02-26T22:15:04","slug":"mythtvs-jobqueue-patch","status":"publish","type":"post","link":"https:\/\/blog.morpheuz.cc\/?p=32","title":{"rendered":"MythTV&#8217;s JobQueue patch"},"content":{"rendered":"<p>Here we go again! \ud83d\ude42 As I said before, this version of the patch is much better. Now you can specify some options like use or not the &#8220;cutlist&#8221; and you can choose to output the result to another file or not.<\/p>\n<p>I also changed the way the whole thing is done: before it was an entry in mythprotocol to start\/stop the transcode process. Now I&#8217;m dealing directly with the JobQueue, so you can remotely add any Job on the backend, not just the transcode task. It&#8217;s important to say that everything is prepared for SystemJobs, UserJobs, etc.. <strong>but<\/strong> here we have a <strong>HUGE<\/strong> <em>security problem<\/em>: letting an user remotely add a SystemJob will open an way to a malicious user add a malicious job to be run on your computer..to this is why I didn&#8217;t code anything about this.<\/p>\n<p>Tomorrow I&#8217;ll start doing things inside <a target=\"_blank\" title=\"GMyth\" href=\"http:\/\/gmyth.sf.net\" rel=\"noopener noreferrer\">GMyth<\/a>:<\/p>\n<ul>\n<li>Check\/Insert profiles for transcoding (new patch for mythtv ? [1]);<\/li>\n<li>START\/STOP\/PAUSE\/RESUME\/RESTART transcoding.<\/li>\n<\/ul>\n<p>I will also think about a good solution about getting the progress of the task inside the database. Maybe another patch ( [1] ) to use xml+http (avoiding the use of SQL queries).<\/p>\n<p><a title=\"patch 3126 - remote transcode\" href=\"http:\/\/cvs.mythtv.org\/trac\/ticket\/3126\">Link for the patch on MythTV\u2019s Trac<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we go again! \ud83d\ude42 As I said before, this version of the patch is much better. Now you can specify some options like use or not the &#8220;cutlist&#8221; and you can choose to output the result to another file or not. I also changed the way the whole thing is done: before it was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-maemo"],"_links":{"self":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}