{"id":9919,"date":"2020-07-28T23:33:31","date_gmt":"2020-07-29T06:33:31","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=9919"},"modified":"2020-07-28T23:33:31","modified_gmt":"2020-07-29T06:33:31","slug":"plex-epg-problems","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=9919","title":{"rendered":"Plex EPG Problems"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Plex is supposed to fix my TV recording problems, Microsoft&#8217;s Windows Media Center was great, but it is no longer supported (at least on Windows 7)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But once and a while the EPG fails<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"376\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/07\/image.png\" alt=\"\" class=\"wp-image-9920\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/07\/image.png 828w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/07\/image-300x136.png 300w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/07\/image-768x349.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><figcaption>EPG To Be Announced<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Not sure why, but it does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To be fair Windows MCE failed the EPG once and a while as well.  I subscribed to schedule direct for $25\/year to keep MCE up to date.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When this EPG issued happened to my plex though, it was a little disappointing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I figured out how to download the EPG via schedules direct as an XML file to import in to plex.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The NUX dextop repo had xmltv rpms so I tried it out<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install xmltv perl-LWP-Protocol-https<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ran tv_grab_na_dd &#8211;configure and used my creds, but it failed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The version I had was old xmltv-0.5.65 current version is 0.6.1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I edited the tv_grab_na_dd file which was a perl scsript and edited the fetch data section<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\nFetch data\n#\nsub SOAP::Transport::HTTP::Client::get_basic_credentials\n{\nreturn \"$dd_user\" => \"$local_pass\";\n}\n<code>my $dd_service='https:\/\/dd.schedulesdirect.org\/tech\/tmsdatadirect\/schedulesdirect\/tvDataDelivery.wsdl'; $dd_service='https:\/\/dd.schedulesdirect.org\/tech\/tmsdatadirect\/schedulesdirect\/stage\/tvDataDelivery.wsdl' if $opt_beta_data; my $proxy='http:\/\/localhost\/'; if (exists $ENV{HTTP_PROXY}) { $proxy=$ENV{HTTP_PROXY}; }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Unfortunately, a tcpdump still showed it still downloading cleartext<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I decided to install from source<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum -y install perl-devel perl-DateTime perl-XML-Twig perl-XML-Writer perl-XML-LibXML perl-SOAP-Lite perl-LWP-Protocol-https\ngit clone https:\/\/github.com\/XMLTV\/xmltv.git\ncd xmltv\/\nperl Makefile.PL\nmake\nmake test\nsudo make install<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And it was much better.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tv_grab_na_dd --configure<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now to wrap it in a bash script and cron it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Weight: 316.6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plex is supposed to fix my TV recording problems, Microsoft&#8217;s Windows Media Center was great, but it is no longer supported (at least on Windows 7) But once and a while the EPG fails Not sure why, but it does. &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=9919\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11,3,9],"tags":[],"class_list":["post-9919","post","type-post","status-publish","format-standard","hentry","category-new-toys","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9919"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9919\/revisions"}],"predecessor-version":[{"id":9921,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9919\/revisions\/9921"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}