Skip to content

Instantly share code, notes, and snippets.

View allthingscode's full-sized avatar

Matthew Hayes allthingscode

View GitHub Profile
@allthingscode
allthingscode / Tivo Download Script
Created January 28, 2011 21:57
This is a template script for downloading TiVo files and decoding them.
#!/bin/bash
#
tivo_ip='192.168.1.1'
mak='1234567890'
in_dir='/path/to/videos/tivo_files/in'
out_dir='/path/to/videos/tivo_files/out'
useragent='Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'
curl_opt="-v --location-trusted --digest -u tivo:${mak} -c cookies.txt --insecure"
# =============================================================================