WisconsinEric

Members
  • Content count

    26
  • Joined

  • Last visited

Community Reputation

3 Neutral

About WisconsinEric

  • Rank
    Member
  1. WisconsinEric

    EPG from XMLTVListings

    ^ You're welcome & thanks, UnixGuy. What you suggest is actually useful: when TV Guide was the EPG source, the Program Guide window had an "Update Program Guide" option in the same dropdown menu that had/still has "Go to Now." This option to manually update the EPG is missing when your source is xmltv (and ATSC too, for that matter); your AppleScript (which I haven't tried yet) brings it back. That's occasionally been useful when TV stations/networks are slow to update program listings, or an unexpected event alters previously scheduled programming. So thanks! Note to all: notice that xmltvlistings.com has a daily maximum of 5 downloads, so you can't be too liberal with trial runs.
  2. WisconsinEric

    EPG from XMLTVListings

    AUTOMATING DOWNLOADING 14-DAY EPG FROM XMLTVLISTINGS.COM, Steps 1 & 2 of 3 This is for a Mac; I am running 10.14.3 (current OS) on a 2010 Mac Mini Server. I'll try to spell this out in simple commands; I'm not a programmer - if I can do this, so can you. Thanks to LOTS of help from posters above & on the other thread in this Forum, and some Internet sleuthing, here is a short program that will accomplish 2 of 3 steps needed to automate the EPG sourced from xmltvlistings.com: download a 14-day EPG and load it into EyeTV. The 3rd step for full automation, running it daily at, say, 5 am, requires a different short set of commands that I will test in the next 48 hours and post Step 3 when it's running. WHAT YOU HAVE TO DO FIRST: a. Sign up for an xmltvlistings.com account (14 day free trial), set up your custom channel lineup, and in your dashboard there take note of 2 pieces of information: the API key, and your 4-digit channel lineup number. The lineup number appears after you've set up the lineup; the API key is issued when you sign up for the account. Both numbers are in your dashboard whenever you log in. When entered in the program below, these numbers eliminate the need for you to log in to download the EPG. b. Prepare EyeTV to receive an xmltv EPG file: do a manual download (just this once) from xmltvlistings of the EPG for your channel lineup. It will give you a 7-day EPG listing. Open EyeTV and in Preferences set the EPG source to 'none'. Next, drag the downloaded EPG file onto the EyeTV icon to load the EPG. You won't see it in program listings until you go to the Channels window and do 3 things. First, mark as active (checkbox) exactly the same channels you specified for your xmltvlistings channel lineup. Second, in the EPG column, open the drop down menu and select the bottom option, xmltv. This must be done manually for each active channel, but just this once. Ignore the inactive channels. For each channel when you do this, you will be asked to assign the corresponding channel from your xmltvlistings lineup (which is why you had to load it into EyeTV first). Third, save this as a new channel lineup (see bottom of Channels page) and delete the previously active one; the new one will become your active channel lineup for the EPG. This last step is necessary because I found by trial and error that otherwise the EPG selections revert back to TVGuide or ATSC whenever you quit EyeTV / restart the computer. c. On your Mac, in your User/[username]/ directory, create a new folder named Scripts. PROGRAM TO DOWNLOAD EPG / LOAD INTO EYETV: Notes: I tested this, it works. If you try it and it doesn't work, try retyping the commands yourself. Mine initially errored because I evidently had picked up some stray characters when copying & pasting. Type the following program into TextEdit (first set it to do plain text files, not rich text, in Preferences). Save it with a descriptive file name, here I'll use getepg. No file type is needed. I dispensed with a conditional command in the example previously posted here to check for an active Internet connection; I added a 30 second pause to make sure the download has time to complete (that can be shortened if you wish). In line 3, the '14' is a variable you choose with the number of days listings you want (14 is the maximum). You can also delay it, for example 14 days listings starting tomorrow; see the xmltvlistings site under Help . . . API for how to do that. Now here's the program. Be sure to substitute the name you chose for your program each time the name I chose (getepg) appears. Brackets show information you need to insert (without the brackets!). #!/bin/bash cd /Users/[yourusername]/Scripts/ curl https://www.xmltvlistings.com/xmltv/get/[your API key]/[your lineup #]/14 > xmltv.xml #pause 30 seconds as cushion for download to complete sleep 30s #load EPG into EyeTV open -a EyeTV xmltv.xml Save this script as a text file without file type, and drag the file into the Scripts folder you previously created. As written, that's where the downloaded EPG file will automatically go. To identify this as an executable program, now open Terminal and type the following 2-lines of instructions (you only have to do this once): cd /Users/[yourusername]/Scripts/ chmod 755 getepg My next and final step is to automate this, and I'll post a working result. Meanwhile, to run the above program manually, log into Terminal and type these 2 commands; the first is not necessary if you are already in Terminal in the Scripts directory: cd /Users/[yourusername]/Scripts/ ./getepg What this will accomplish: log into your xmltvlistings account, download a 14-day EPG into your Scripts folder (where it will overwrite any previous EPG download), and load it into EyeTV, where it will almost instantly populate the Program Guide. THANK YOU, THANK YOU to everyone who has contributed on this Forum with their time and knowledge and enabled me and others to restore an EPG to EyeTV!
  3. WisconsinEric

    EPG from XMLTVListings

    ^ Thank you DC Rackerby, you pointed me to the correct source of the error. It is actually working now! My mistake was copying and pasting the commands into a text document; I think I picked up some stray characters or unseen formatting markers. On that theory, I retyped the entire curl command and ran it from Terminal. Then the program worked: it ran without error message; the downloaded file was the correct size and content; and the EPG in EyeTV jumped to 2 full weeks out from its previous maximum. Thank you for your help! My next step is to automate it, and I've set up the script using launchd provided in the other thread. I'll answer my own question in starting this thread with a summary for whoever's interested.
  4. WisconsinEric

    TV Guide not updating

    As DC Rackerby said above, fi closes a conditional command that began with if [clever, yes? fi is if backwards]. In this case the conditional command checks for a working Internet connection. If you decide to dispense with that (see my next post), you simply conclude the script with the last command.
  5. WisconsinEric

    EPG from XMLTVListings

    Still trying to get automating xmltvlistings to work. Using the curl command above (see below) does not download a file, only creates a 4K file with that filename (and it is not listed as a download in my xmltvlistings account). I am trying to figure out what I'm doing wrong. I know the API works, because I ran it from Firefox; it produces a 4MB .xml file named <14> (for the # of days requested), I do have to manually add the file type to get EyeTV to accept it. In the curl command, does the URL portion have to be a clickable link as you have it? In mine it is not, since I saved the script file as a plain text file (TextEdit wants to save by default as RTF, which I had assumed would not work in Terminal). Here is the script I used (the only one of the 3 commands that works is the 30-second pause, which I put it as a safety margin so the download would be completed before loading into EyeTV). I had previously identified it as executable in Terminal (the file name of the script is xmltvepg): cd /Users/godfreye/Scripts/ chmod 755 xmltvepg Anything wrong jump out at you? Thanks for the help. #!/bin/bash cd /Users/godfreye/Scripts/ curl https://www.xmltvlistings.com/xmltv/get/[my API key]/[my lineup number]/14 > xmltv.xml #allow time for download to complete sleep 30s #load EPG into EyeTV open -a EyeTV xmltv.xml
  6. WisconsinEric

    EPG from XMLTVListings

    Did you edit the Channels window in EyeTV to select xmltv from the dropdown EPG menu (has to be done manually for each enabled channel)? You have to do this after you download the .xml EPG file and drag it onto the EyeTV icon. With 50-75 channels enabled that will be a PIA, but you only have to do it once. The channels you have checked as enabled should exactly match the channels you edited schedulesdirect to form your channel lineup.
  7. WisconsinEric

    EPG from XMLTVListings

    Ah, good point, thank you again (and I learned something). 😀 I assume that (a) the two commands are equivalent if the file does not currently exist, and (b) the file will go to the default location for downloads set up for the web browser. No need to reply unless I'm wrong on either count.
  8. WisconsinEric

    EPG from XMLTVListings

    Good idea, though simply manually assigning the .xml file type did the trick too (see my post from 2/17). I am moving toward automating getting the EPG, so I'll use the command that DC Rackerby wrote in his post above. That's step 1, downloading the EPG file, which I know works. Step 2 is loading it into EyeTV; in the other discussion thread, there's a command given by Weber and Rackerby should work for this file from xmltvlistings as well (they are using schedulesdirect). Finally, Step 3 is to save this as an executable script, and have it run daily at 5 am or so. For that there have been a few suggestions, so I have to work that out, but since I have a son who does this sort of thing for a living I am going to rely on him. 😀
  9. WisconsinEric

    EPG from XMLTVListings

    Confirmed, the problem was just the file type. As soon as I manually assigned a .xml file type to the file downloaded from XMLTVListings, EyeTV recognized/loaded it correctly. You are correct too about the data: despite the longer 2-week listings time period, there are still no data on series/episode, and info about the program is more limited than it was with TV Guide. I guess that leaves Schedules Direct as the only source of series/episode data, but otherwise XMLTVListings produces a very decent EPG with an API to automate downloads and is more user friendly (hey, $5/year cheaper!). It is a fairly new service, based in Ottawa, Ontario, so maybe they will up their game in the future. Thank you, DC Rackerby, for your help and the way of using the 'get' command!
  10. WisconsinEric

    EPG from XMLTVListings

    Hi - I am using 'get' (the first of the 3 API options). The file has the information I want, but the file type is identified by my Mac as text: the file downloads with the file name '14' and no file type, presumably because I chose a 14-day EPG listing option. Whereas the Direct Download option (at https://www.xmltvlistings.com/help/start/listings) downloads a file identified with the correct .xml file type, which can be dragged directly onto the EyeTV icon to load the EPG (as Earl Noe described above, that's the method I've been using manually). Here's the first few lines of what 'get' produces: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE tv SYSTEM "xmltv.dtd"> <tv date="02/18/2019" source-info-url="http://www.tvmedia.ca" source-info-name="TV Media"> <channel id="3156.stations.xmltv.tvmedia.ca"> <display-name>ABC (WBAY) Green Bay, WI</display-name> <display-name>WBAY-TV</display-name> etc. (with this detail, there are presumably thousands of lines just for 14 stations in one lineup). That matches the illustration you linked to. I also opened a Direct Download file (the more limited 7-day option); it appears identical in contents to the 'get' API file, but is identified as .xml in the file name. So . . . I wonder if it is a simple matter of just manually reassigning the file type to get EyeTV to recognize it? I'll try that later this evening (I'm recording something right now). What do you think?
  11. WisconsinEric

    TV Guide not updating

    This discussion is getting crowded - so I started a new topic under EPG Subscriptions to focus just on using XMLTVListings.com (an alternative to schedulesdirect.org). Please go there just for that topic. Here is my opening post, repeated here but please reply under the other Forum discussion to split it off from this discussion. Thank you (I hope). Go to Forums - EPG Subscriptions - EPG TV Guide - EPG from XMLTVListings - - - - - - - - - - - - - - I am starting a new topic since the current (2/17/19) discussion of TV Guide not updating has gotten overcrowded. My hope for this topic: just focus on using xmltvlistings.com as an alternative to the non-functional TV Guide EPG. – >Has anyone automated the EPG from xmltvlistings similar to what is described for schedulesdirect.org in [this] Forum discussion? Specifically, not being a programmer, I need some guidance in using the API from xmltvlistings (see the link to it in their help menu). I understand what it is designed to do, but the 4MB file it downloads is not identified as an .xmltv file in format, and is not in a format that EyeTV can use. So other steps must be needed. Thanks anyone for your help. In comparison, the XMLTVListings non-programmers option to simply download a 7-day xmltv EPG file works just fine; after preparing EyeTV*, you just drag the file onto the EyeTV icon. But it would be nice to automate it, get 14-day data, and hopefully the season/episode info (not included in the 7-day file). * - before using the 7-day EPG direct download, manually change the EPG source to xmltv in EyeTV (use the dropdown menu in Channels) for each active channel in your lineup, and (this is important) save the result as a new lineup. Make sure the lineup is the same as the lineup you select when you sign up for XMLTVListings.com (that site allows you to customize the lineup just as EyeTV does).
  12. WisconsinEric

    EPG from XMLTVListings

    I am starting a new topic since the current (2/17/19) discussion of TV Guide not updating has gotten overcrowded. My hope for this topic: just focus on using xmltvlistings.com as an alternative to the non-functional TV Guide EPG. Has anyone automated the EPG from xmltvlistings similar to what is described for schedulesdirect.org in the "EyeTV Portfolio Software" Forum discussion? Specifically, not being a programmer, I need some guidance in using the API from xmltvlistings (see the link to it in their help menu). I understand what it is designed to do, but the 4MB file it downloads is not identified as an .xmltv file in format, and is not in a format that EyeTV can use. So other steps must be needed. Thanks anyone for your help. In comparison, the XMLTListings non-programmers option to simply download a 7-day xmltv EPG file works just fine; after preparing EyeTV*, you just drag the file onto the EyeTV icon. But it would be nice to automate it, get 14-day data, and hopefully the season/episode info (not included in the 7-day file). * - before using the 7-day EPG direct download, manually change the EPG source to xmltv in EyeTV (use the dropdown menu in Channels) for each active channel in your lineup, and (this is important) save the result as a new lineup. Make sure the lineup is the same as the lineup you select when you sign up for XMLTVListings.com (that site allows you to customize the lineup just as EyeTV does).
  13. WisconsinEric

    WHERE IS EPG DATA!!!!!!!!!!!!

    To "Erik" and "NotInUse" - those of us on the main TV Guide discussion (look at the first discussion under "EyeTV Portfolio Software" on this Forum) are trying to help you. Ask yourself - would you rather complain to deaf ears in China, or get your EyeTV EPG to work? Geniatech is in China with a branch in Germany, no North American office period; there is no evidence they care and for all we know the problem is at TV Guide. All of us who are TV Guide subscribers probably won't get our money back (luckily, it wasn't much). The last time the Geniatech Forum administrator looked at the Forums was over 6 months ago. But go to the Forum I just referenced and you'll find that you can get the same functionality from a standardized EPG format called xmltv. Luckily EyeTV has built-in support for this as an unpublicized alternative to subscribing to TV Guide; just go to Channels in EyeTV, and in the dropdown menu under EPG you'll see xmltv as an option (has to be changed manually for each channel). There are two vendors in North America offering this format; for schedulesdirect.org you need some programming skills, as you do for xmltvlistings.com. But the latter also offers a straight download of a 7-day schedule identical in appearance to TV Guide, no programming skills or Terminal required. Do some reading under Forum and you'll find out how to do either one. I've been using xmltvlistings for a week, works fine, once you spend 10 minutes signing up and customizing your channel lineup, and save a new xmltv channel lineup in EyeTV, it takes about 2 minutes once a week to download the next week's listing and load it into EyeTV. Not as convenient as TV Guide, but it works and brings EyeTV back to the way it was before.
  14. WisconsinEric

    Eytv 3.6.9 TV Guide update

    Solmaker, see the extensive discussion (over 1000 posts now) elsewhere on this Forum - in the main Forum window, scroll down to "EyeTV Portfolio Software" and it is the first discussion. It is clear TV Guide's North America EPG for EyeTV terminated abruptly without warning at 5 pm CT on February 5th (regardless of when you renewed). Opinions are mixed as to whether it will ever return. In the discussion you will find at least two alternatives which will produce an EPG almost identical to the one TV Guide had for EyeTV. The best results seem to come from schedulesdirect.org, but you have to know a little about programming to make it work. If you do, you'll find instructions in the Forum. I am using xmltvlistings.com, which has a non-programmer's option to download a 7-day schedule; to make it work simply drag it onto the EyeTV icon on your dock (Mac), though there are some things you need to do in EyeTV first. There is a charge, but it works fine for me, and is identical to the TV Guide EPG (color coding and all) except it lacks season and episode information. Good luck. to
  15. WisconsinEric

    TV Guide not updating

    I found (with some advice from Elgato back in the day) that you get best playback (least/no stutter) using Progressive for regular video and Drop Field for HD video (in the application's preferences) - which one you use can make a big difference in playback quality. I think that may make more difference than the OS. [running 10.11.6 on a 2010 Mac Mini server; I guess we are well off topic here]