Skip to content

Crinibus/tvguide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

A program that gives the user a list over what comes in tv*.

*only danish tv for now


How to use

An example on how to use this program:

python3 main.py -c dr1 -c tv2 --all

This prints all the programs that run today for the channels DR1 and TV2.


Another example:

python3 main.py -c dr1 -c tv2 -t 20:00 -d 1

This prints only the tv-shows that start or is running at 8 pm the next day on the channels DR1 and TV2.


Another another example:

python3 main.py --now --verbose

This prints the programs (with categories) that is currently running on the default channels.


Available flags

  • -c [channel] or --channel [channel]
  • -t [hh:mm] or --time [hh:mm]
  • -d [int] or --day [int]
  • -a or --all
  • --category [category]
  • -n or --now
  • -v or --verbose
  • -s [search-term] or --search [search-term]
  • --default-channels [channel]
  • --default-space-seperator [space-seperator]
  • --justify-length [int]

--channel

By using the flag -c or --channel you specify which channels you want the program to show tv-shows from. Replace "[channel]" with wanted channel, e.g. "dr1".
You can specify multiple channels just by using the -c flag again.
If no channel(s) is chosen, the default channels is used. You can change the default channels as described here

For example:

python3 main.py -c [channel_1] -c [channel_2]

OBS: when specifing channels with a space such as "TV2 News", use a dash (-) instead of a space. E.g. "TV2 News" -> "TV2-News"

You can also specify "all" as the first channel to get all channels.

Examples:

python3 main.py -c dr1 -c tv2 --all

This shows all the programs that run on DR1 and TV2 for today.


python3 main.py -c all --all

This shows all the programs that run on all channels for today.


--time

By using the flag -t or --time you can specify a time for the program to find a tv-show that starts or is running at the specified time.
Time must be formatted like this: "hh:mm".
You can specify multiple times.

Example:

python3 main.py -t 19:30 -t 20:00

This shows the programs that start or is running at 7.30 pm and 8 pm today for the default channels.


--day

By using the flag -d or --day you specify which day you want to see programs from relative to today (default is today = 0). The range of days you can specify is from yesterday to 6 days ahead, which means the range of integer is to the flag --day is negative 1 to 6.

Example:

python3 main.py -t 19:30 --day 1

This shows the programs that either starts or is running at 7.30 pm tomorrow on the default channels.


--all

By using the flag -a or --all you want to see all the programs running today at the specified channels.

Example:

python3 main.py --all

This shows all programs for today that runs on the default channels.


--category

By using the flag --category you search after programs that have the specified categories.

Examples:

python3 main.py --category film

This shows all the programs that have the category "film" on the default channels for today.


python3 main.py --category film --category drama

This shows all the programs that have either the category "film" or "drama" on the default channels for today.


--now

Example:

python3 main.py --now

This shows what programs are currently running on the default channels.


--verbose

Example:

python3 main.py --all --verbose

This shows all the programs with categories for the default channels for today.


--search

Examples:

python3 main.py --search avis

This shows all the programs on the default channels for today that have the word "avis" in the title.


python3 main.py --search avis --search vejr

This shows all the programs on the default channels for today that have either the words "avis" or "vejr" in the title.


--default-channels

Example:

python3 main.py --default-channels dr1 tv2 canal-9

This changes the default channels to "DR1", "TV2" and "CANAL 9".


--default-space-seperator

Example:

python3 main.py --default-space-seperator -

This changes the default space seperator to the sign "-".


--justify-length

Example:

python3 main.py --justify-length 45

This changes the justify length to 45.


Supported channels

Right now all the channels on tvtid.tv2.dk is supported:

  • dr1
  • tv2
  • tv3
  • dr2
  • tv2-charlie
  • tv2-news
  • kanal-5
  • tv3-plus
  • tv2-zulu
  • dr-ramasjang
  • kanal-4
  • tv2-sport
  • tv2-sport-x
  • tv3-sport
  • tv3-puls
  • 6eren
  • disney-channel
  • tv2-fri
  • canal-9
  • discovery-channel
  • tlc
  • nickelodeon
  • national-geographic-channel
  • tv3-max
  • cartoon
  • disney-junior
  • dk4
  • mtv
  • animal-planet
  • investigation-discovery
  • vh1
  • eurosport-2
  • boomerang
  • viasat-film
  • viasat-film-action,
  • viasat-film-hits,
  • viasat-film-family,
  • viasat-explorer,
  • viasat-nature,
  • c-more-first,
  • c-more-hits,
  • viasat-history,
  • disney-xd,
  • tv4-sverige
  • discovery-world
  • nrk2
  • nrk1
  • svt1
  • sv2
  • tv2-norge
  • discovery-hd-showcase
  • rtl
  • ard
  • zdf
  • 3sat
  • viasat-golf
  • eurosport-1
  • cnn
  • ndr
  • bbc-world
  • c-more-series
  • travel-channel
  • vox
  • rtl-2
  • super-rtl
  • paramount-network
  • xee
  • viasat-ultra
  • bbc-earth
  • viasat-series
  • arte
  • sf-kanalen
  • history
  • kanal-hovedstaden
  • folketinget
  • tnt
  • nickelodeon-junior
  • sat1
  • prosieben
  • sport1
  • national-geographic-wild
  • tv2-nord-salto
  • tv-midt-vest
  • tv2-østjylland
  • tv2-øst
  • tv-syd
  • tv-fyn
  • lorry
  • tv2-bornholm
  • tv3-sport-2-hd
  • bbc-brit
  • tv5-monde-europe
  • national-geographic-people
  • comedy-central
  • cs-go
  • zulu-comedy
  • oiii
  • discovery-science

TODO

  • Add documentation to all flags
  • Use datetime.timezone to convert UNIX-time to users timezone, instead of hardcoded convert to UTC+1
  • Print the date the data is from to the user

Releases

No releases published

Packages

No packages published

Languages