OpenELEC Forum
Edit the tv_grab_file for password protected site - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: PVR + LIVE TV (https://forum.openelec.tv/forumdisplay.php?fid=38)
+--- Thread: Edit the tv_grab_file for password protected site (/showthread.php?tid=40868)



Edit the tv_grab_file for password protected site - gsi095 - 07-16-2012

Hi,

I want to download the epg I pay for from http://www.icetv.com.au

I looked at the XMLTV section of the TVHeadend addon in xbmc and you can add a web location.

Only problem is that the site requires you to login.

The address is http://iceguide.icetv.com.au/cgi-bin/epg/iceguide.cgi?op=xmlguide. If my username was "dave" and password was "letmein" (which it isn't)

Could I enter the address "http://iceguide.icetv.com.au/cgi-bin/epg/iceguide.cgi?op=xmlguide" into the addon XMLTV field in XBMC and then edit the line in the tv_grab_file to add user and password to the wget like below:

Original:
Code:
if [[ $# -lt 1 ]]; then
if [ "$XMLTV_TYPE" = "FILE" ]; then
cat "$XMLTV_LOCATION_FILE"
exit 0
elif [ "$XMLTV_TYPE" = "WEB" ]; then
wget -qO - "$XMLTV_LOCATION_WEB"
exit 0
fi
fi

Modified
Code:
if [[ $# -lt 1 ]]; then
if [ "$XMLTV_TYPE" = "FILE" ]; then
cat "$XMLTV_LOCATION_FILE"
exit 0
elif [ "$XMLTV_TYPE" = "WEB" ]; then
wget -qO - "$XMLTV_LOCATION_WEB" -u dave -p letmein
exit 0
fi
fi

It works fine if I manually download the xmltv file and copy it to the AppleTV and set up the XMLTV to pick up a file. But I want to automate this.

Thanks
Dave


Re: Edit the tv_grab_file for password protected site - lrusak - 07-17-2012

so what are you asking?

Did you try your modified file?


Re: Edit the tv_grab_file for password protected site - gsi095 - 07-17-2012

I wanted to know if the modification would work, i.e adding the username and password or if I need to use a specific string to work with the script.

I haven't tried it yet as I want to get it as close to correct as possible before messing with a working system.

Dave


Top All Password Recovery Information - FrankJScott - 03-13-2020

Had a good read of this site Smile. If anyone is curious about passwords and recovery software, I suggest looking at this here- useful recover password info site, or this useful windows key advice website and great wireless password tips page. There's also this useful ssl scanner info website together with important forgot facebook password advice forum. Another site to check out includes this good browser password information website and this great forgot download site password advice page and even top how to block social media info forum together with useful mac ip scanner tips site and why not check out this useful how to recover facebook password information profile too! Also check out this memory foam social network blocker tips site and top gmail password information forum or even useful firefox password location advice for good measure.
On a different note, check out this top baby and you information website together with a best large bathroom floor mats tips site and great floor mats for the kitchen tips page, it's top quality! You can always find cool contextual backlink tips website as well as this good contextual link tips website and finally that best backlinking SEO advice profile like that.