Posts by edit4ever

    I've created a test version of Astrilchuk's sd2xmltv addon with the following additional kodi options:

    • set number of days to download
    • enable hdhomerun channel filtering
    • enable file based channel filtering


    These options existed in the command line version of sd2xmltv - but this is easier for most people to configure.

    Here is test version: tools.module.sd2xmltv-0.1.3beta.zip

    To use the hdhomerun channel filtering:

    • Install the addon
    • Open the configure screen
    • Enter your SD login credentials
    • Set the number of days to download from 1-14
    • Set the hdhomerun option to discover or ip (discover searches your network for your hdhomerun)
    • If you know your hdhomerun ip address, select ip and you can enter it
    • Continue normal grabber setup in tvheadend for the sd2mltv grabber (may require a reboot to see grabber)


    -- you may need to follow the lineup configuration mentioned in this post: LibreELEC

    To use the file based channel filtering:

    • Install the addon
    • Open the configure screen
    • Enter your SD login credentials
    • Leave the number of days to download at 0
    • Continue normal grabber setup in tvheadend for the sd2mltv grabber (may require a reboot to see grabber)
    • -- you may need to follow the lineup configuration mentioned in this post: LibreELEC
    • Once grabber has run it will not generate program listings - but will pull the lineup channels
    • A new file called filter.cfg will be created in the /userdata/addon_data/tools.module.sd2xmltv folder
    • Open this file with a text editor and follow the included instructions to move channels to to either included or excluded section
    • Save and close the file
    • You can return to the kodi sd2xmltv addon configure screen and set the number of days to download from 1-14
    • From the tvheaded web interface - rerun the internal grabber or reboot - this should now download program data for the channels you moved to the included list in the filter.cfg file

    I'm hoping if this works (please post if you have errors) so I can move on to building a kodi configure screen for the filter.cfg file. Then channels can be added and removed from within kodi.

    * One additional note - for testing I had to hardcode the the logging.cfg path due to issues I was having. I don't believe this will cause any issues for LE users.

    updated beta with missing utils folder.

    forum.libreelec.tv/core/attachment/795/    use version in next post

    There is an hdhomerun feature that will filter channels based on your hdhomerun configuration. Run the command as:

    python sd2xmltv.py -u USERNAME -p PASSWORD --hdhomerun discover

    If this works for you, you can edit the tv_grab_sd2xmltv file changing line 32 to:

    python $ADDON_DIR/sd2xmltv.py -u $USERID -p $PASSWORD --hdhomerun discover> sd2xmltv.log 2>&1

    Or replace discover with your hdhomerun ip address if you know it.


    I'm working on configuring a kodi settings setup for this similar to what I did with zap2xml.

    The issue is the change from using 1,2,3,4... numbers to 01,02,03,04... in the settings file.

    The fix is to either delete your settings file and resetup your settings --- or if you don't want to lose your settings. Edit the settings.xml file and remove the seetting id= lines with single digits in th desc field. In your case the red lines below:

    <settings>
    <setting id="Pass" value="xxxxxxx" />
    <setting id="User" value="[email protected]" />
    <setting id="allc" value="false" />
    <setting id="cfirst" value="false" />
    <setting id="cicons" value="true" />
    <setting id="days" value="14" />
    <setting id="delay" value="0.000000" />
    <setting id="desc01" value="16" />
    <setting id="desc02" value="8" />
    <setting id="desc03" value="13" />
    <setting id="desc04" value="8" />
    <setting id="desc05" value="18" />
    <setting id="desc06" value="4" />
    <setting id="desc07" value="9" />
    <setting id="desc08" value="8" />
    <setting id="desc09" value="19" />
    <setting id="desc1" value="10" />
    <setting id="desc10" value="3" />
    <setting id="desc11" value="15" />
    <setting id="desc12" value="8" />
    <setting id="desc13" value="11" />
    <setting id="desc14" value="0" />
    <setting id="desc15" value="0" />
    <setting id="desc16" value="0" />
    <setting id="desc17" value="0" />
    <setting id="desc18" value="0" />
    <setting id="desc19" value="0" />
    <setting id="desc2" value="2" />
    <setting id="desc20" value="0" />
    <setting id="desc3" value="7" />
    <setting id="desc4" value="2" />
    <setting id="desc5" value="11" />
    <setting id="desc6" value="15" />
    <setting id="desc7" value="13" />
    <setting id="desc8" value="3" />
    <setting id="desc9" value="9" />
    <setting id="picons" value="true" />
    <setting id="source" value="" />
    <setting id="xdesc" value="false" />
    <setting id="xdetails" value="false" />
    </settings>

    Then rerun the internal grabber and it should clean up your listings.

    I probably can update the original settings file to set those lines to 0 for those upgrading...but this can fix it in the meantime.

    script.schedules.direct is an interesting addon. I downloaded and set it up and it was able to get basic schedule info - program title and description. Schedules direct has a lot more information in their metadata (season info, genre, original air date, etc) so I've asked the author if he plans to implement those. I've also pinged the author of sd2xmltv to see if he could incorporate the kodi addon features of script.schedules.direct. If I get time in the next few weeks - I may attempt to combine them.

    As for the automation - I saw that the settings screen for script.schedules.direct has an update feature. I set mine to 6 hours - I'll let you know if it updates on it's own. The tvh cron is already setup for updating every 12 hours, so you shouldn't have to do anything there.

    You don't have to move the xmltv file - you can let the system just put it in the script.schedules.direct userdata folder. The key to automatically connecting this to your tvh setup is in the tvh addon settings. But first you need to turn on the ability to see hidden files/directories in kodi. If you're running kodi 17 it's under media settings > general. Once you turn on hidden files/directories you can go back to the tvh addon settings and select the xmltv source as file and then navigate to the /storage/.kodi/userdata/adonn_data/script.schedules.direct folder. After that, just make sure that the internal xmltv grabber is enabled in the tvh web interface and when you rerun the internal grabber it should load the xmltv.xml file and then you can set the channels epg source.

    If we can get the the full info available in the sd2xmltv addon combined with the easy to use kodi interface of the script.schedules.direct addon - this will be a very powerful and legitimate way to get great tv guide data!

    Let's try this version and run the command line info for the hdhomerun channel filtering: forum.libreelec.tv/core/attachment/790/  use version in post LibreELEC

    If you know the ip address of your hdhomerun...try to ssh in and run the command line as follows (from the main tools.module.sd2xmltv folder) :

    python sd2xmltv.py -u sdusername -p sdpassword -v ###.###.###.###

    Where the numbers represent the ip address of your hdhomerun. If you don't know the address replace the numbers with the word discover

    If that works - we'll just need to change the grabber to run with the -v command.

    If that doesn't work - I'll try to send you a version of the sd2xmltv.py file with a few whitelisted call signs and we can see if that works.

    If you don't want to wait to continue testing - you could use a second email to start a 7 day trial.

    As far as the next steps - in tvh do you know how to connect the channel to the epg source?

    If not, go to the web interface, go to the CONFIGURATION > CHANNEL/EPG > CHANNELS tab
    Then for a given channel row, double click the epg source column area and a drop will show up with the available channels that were loaded from the xmltv.xml file.

    You can look about 6 minutes into this video to see what the data field should look like for the epg source. (this example is using zap2xml not sd2xmltv - but the concept is the same) Installing zap2it grabber in OpenELEC - YouTube

    If you let me know your zip code - I can try to download a verizon sample xmltv.xml file and send it to you to test. That way you can put it in the main sd2xmltv folder and setup the channels - then you can see it the system starts populating tomorrow.

    You can try deleting the sdcache.db that should be in the folder. That may be holding on to the old channel list.

    Also - if youre manually running this, the xmltv.xml file is going to be generated in the main addon folder (.kodi/addons/tools.module.sd2xmltv). When you run it from within tvh - that file will be placed under the userdata/addon_data/tools.module.sd2xmltv folder. tvh won't read the one in the main folder. However, as a test - you can copy it over from the main folder to the user_data folder - then restart and see if tvh can see the epg source in the channels tab.

    Check on the schedules direct website and see how many channels are in the lineup. Then - if you don't need all of them (for example cable lineups usualy have both SD and HD channels and most people only care about the HD channels) you can setup which channels are included.

    If you have hundreds of channels, I would suggest leaving it on 1 day for now and let it run for as long as needs. As long as it doesn't error out - it should finish. Then you can have the rest of the days download once you get the first day completed.

    I would try to limit the number of days or limit the number of channels setup on your lineup. You might be getting a server timeout due to the size of the initial download. You can setup the channels on your lineup in the schedules direct website. You can limit the days by adding -d # to the command line (replacing # with the number of days you want to download) --- try this:

    python sd2xmltv.py -u sdusername -p sdpassword -d 1

    tvh may not have rerun the grabber yet. first, make sure to check on the schedules direct website to see if it is showing that you have a subscribed lineup.

    Then, in tvh web interface, make sure the sd2xmltv grabber is enabled. Then force the internal grabbr to run...you can watch the log window to see when it finishes, but know that it may take a few minutes to run the first time. And another reboot may help. :)

    Sorry about the confusion on the log - I was thinking about my zap2xml addon not Astrilchuk's sd2xmltv addon.

    I haven't tried his in awhile - I will take a look tomorrow and see if it works on my system or if there has been some change that needs updating.

    In the meantime - you can try this info from the sd2xmltv github readme:Notes:
    For some reason Schecdules Direct doesn't seem to keep your headend configuration on the JSON servers.
    If you haven't used a JSON grabber before you will need to reconfigure your headend again using sd2xmltv
    +++++
    OpenELEC instructions:
    ssh into your openelec machine.
    cd /storage/.kodi/addons/tools.module.sd2xmltv
    python sd2xmltv.py -u <sduserid> -p <sdpassword> -m
    --- follow the onscreen prompts to add your headend.
    +++++

    That should run the script and generate an xmltv.xml file if it's working.