{"id":7409,"date":"2021-01-27T23:47:24","date_gmt":"2021-01-28T04:47:24","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=7409"},"modified":"2021-01-27T23:47:24","modified_gmt":"2021-01-28T04:47:24","slug":"zap2xml-503-error","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=7409","title":{"rendered":"Zap2XML 503 Error"},"content":{"rendered":"<p>We&#8217;ve been using zap2xml.pl to pull TV listings into our MythTV installation for years. Yesterday, we noticed there wasn&#8217;t much scheduled to record. When I went to investigate it today, I found that there weren&#8217;t listings past Thursday. Running the zap2xml script manually, I see a bunch of 503 Backend unavailable errors. Checked the URL and, yeah, that&#8217;s a legit error.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=7410\" rel=\"attachment wp-att-7410\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7410\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2021\/01\/zap2xml503BackendUnavailable.png\" alt=\"\" width=\"903\" height=\"419\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2021\/01\/zap2xml503BackendUnavailable.png 903w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2021\/01\/zap2xml503BackendUnavailable-300x139.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2021\/01\/zap2xml503BackendUnavailable-768x356.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2021\/01\/zap2xml503BackendUnavailable-750x348.png 750w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/a><\/p>\n<p>So I had to quickly switch to a different source for listings. I found a <a href=\"https:\/\/github.com\/crwolff\/tv_grab_na_zap\" target=\"_blank\" rel=\"noopener\">Github project<\/a> that generates the XML file we need. The same mythfilldatabase command (\/usr\/bin\/mythfilldatabase &#8211;file &#8211;sourceid 2 &#8211;xmlfile \/tmp\/listings.xml) pulled in the data without error. And, now that there are programs listed, MythTV plans to record things again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve been using zap2xml.pl to pull TV listings into our MythTV installation for years. Yesterday, we noticed there wasn&#8217;t much scheduled to record. When I went to investigate it today, I found that there weren&#8217;t listings past Thursday. Running the zap2xml script manually, I see a bunch of 503 Backend unavailable errors. Checked the URL &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[1261,1262],"class_list":["post-7409","post","type-post","status-publish","format-standard","hentry","category-technology","tag-mythtv","tag-zap2xml"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7409"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7409\/revisions"}],"predecessor-version":[{"id":7411,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7409\/revisions\/7411"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}