Skip to content

Instantly share code, notes, and snippets.

@wattengard
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wattengard/9256858 to your computer and use it in GitHub Desktop.
Save wattengard/9256858 to your computer and use it in GitHub Desktop.
{
DataStore =>
{
type => 'MySQL',
dbhost => 'localhost',
dbname => 'listings',
username => '',
password => '',
},
ContentCachePath => '/var/local/nonametv/contentcache/',
Cache =>
{
BasePath => '/var/local/nonametv/cache', # Should be persistent between reboots.
MaxAge => 8*24, # Files are deleted from the cache after MaxAge hours.
# Verbose => 1,
},
LogFile => "/var/log/nonametv/nonametv.log",
Importers =>
{
TVNORGE_Daily => {
Type => 'TVNORGE_Daily',
UrlRoot => 'http://integration.tvnorge.no/programschedule/XmlPress/',
MaxDays => 14,
},
NRK =>
{
Type => 'NRK',
UrlRoot => 'http://www.nrk.no/contentfile/d2proxy/potdownload2?d2_proxy_skip_encoding_all=true&d2_proxy_komponent=/!potkomp.d2d_pressetjeneste.fkt_pressesoket_flex',
MaxDays => 20,
},
TV2 =>
{
Type => 'TV2',
UrlRoot => 'http://presse.tv2.no/presse/import/schedule/tsv/ukefeed',
MaxDays => 14,
},
Disney =>
{
Type => 'Disney',
UrlRoot => 'http://www.disney.no/DisneyChannel/binary/tvguide/',
},
Helper_Simple =>
{
Type => 'Helper_Simple',
UrlRoot => 'http://nonametv.epg.no/helperdata/',
MaxDays => 15,
},
DiscoveryXMLScraper =>
{
Type => 'DiscoveryXMLScraper',
UrlRoot => 'http://www.discoverychannel.co.uk/dni-tvlistings/GetScheduleByBroadcastDate',
MaxDays => 16,
},
Viasat =>
{
Type => 'Viasat',
UrlRoot => 'http://no.press.viasat.tv/listings/',
MaxWeeks => 4,
},
CanalPlus =>
{
Type => 'CanalPlus',
UrlRoot => 'http://grids.canalplus.no/Export.aspx?f=xml&l=NO&',
MaxWeeks => 3,
},
Combiner =>
{
Type => 'Combiner',
UrlRoot => 'http://localhost/xmltv_staging/',
MaxDays => 14,
},
Timeshifter =>
{
Type => 'Timeshifter',
UrlRoot => 'http://xmltv.tvsajten.com/xmltv/',
MaxDays => 14,
},
},
Exporters =>
{
Xmltv =>
{
Type => 'Xmltv',
Root => '/var/local/nonametv/xmltv_staging/',
RootUrl => 'http://nonametv.epg.no/xmltv/',
IconRootUrl => 'http://nonametv.epg.no/chanlogos/',
MinDays => 10, # Warn if there is data for less than
# MinDays for a channel.
MaxDays => 15,
Encoding => "UTF-8",
Language => 'nb',
DtdFile => '/usr/share/sgml/xmltv/dtd/0.5/xmltv.dtd',
},
Json =>
{
Type => 'Json',
Root => '/var/www/xmltvjson/',
MaxDays => 7,
Language => 'nb',
Encoding => 'UTF-8',
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment