.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "TV_TMDB 1p" .TH TV_TMDB 1p 2024-02-24 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME tv_tmdb \- Augment XMLTV listings files with themoviedb.org data. .SH SYNOPSIS .IX Header "SYNOPSIS" tv_tmdb [\-\-help] [\-\-quiet] [\-\-configure] [\-\-config\-file FILE] [\-\-apikey KEY] [\-\-with\-keywords] [\-\-with\-plot] [\-\-movies\-only] [\-\-actors NUMBER] [\-\-reviews NUMBER] [\-\-stats] [\-\-debug NUMBER] [\-\-output FILE] [FILE...] .SH PURPOSE .IX Header "PURPOSE" tv_tmdb reads your xml file of tv programmes and attempts to find a matching entry for the programme title in The Movie Database community-built movie and TV database. .PP Access to the TMDB system uses their API interface to access data in realtime. Therefore you must be online to be able to augment your listings using tv_tmdb. .PP Using the TMDB system requires an API key which you can get from The Movie Database website (https://www.themoviedb.org/). The key is free for non-commercial use. .PP You will need to get this API key \fBbefore\fR you can start using tv_tmdb. .SH PARAMETERS .IX Header "PARAMETERS" \&\fB\-\-apikey KEY\fR your TMDB API key. .PP \&\fB\-\-output FILE\fR write to FILE rather than standard output. .PP \&\fB\-\-with\-keywords\fR include tmdb keywords in the output file. .PP \&\fB\-\-with\-plot\fR include tmdb plot summary in the output file. .PP \&\fB\-\-actors NUMBER\fR number of actors from tmdb to add (default=3). .PP \&\fB\-\-reviews NUMBER\fR number of reviews from tmdb to add (default=0). .PP \&\fB\-\-movies\-only\fR only augment programs that look like movie listings (have a 4 digit 'date' field). .PP \&\fB\-\-quiet\fR disable all status messages (that normally appear on stderr). .PP \&\fB\-\-stats\fR output grab stats (stats output disabled in \-\-quiet mode). .PP \&\fB\-\-configure\fR store frequent parameters in a config file (apikey, actors). .PP \&\fB\-\-config\-file FILE\fR specify your own file location instead of XMLTV default. .PP \&\fB\-\-debug NUMBER\fR output info from movie matching (optional value to increase debug level: 2 is probably the max you will find useful). .SH DESCRIPTION .IX Header "DESCRIPTION" All programs are checked against themoviedb.org (TMDB) data (unless \-\-movies\-only is used). .PP For the purposes of tv_tmdb, an "exact" match is defined as a case insensitive match against themoviedb.org data (which may or may not include the transformation of '&' to 'and' and vice-versa). .PP If the program includes a 4 digit 'date' field the following matches are attempted, with the first successful match being used: .PP 1. an "exact" title/year match against movie titles is done .PP 2. an "exact" title match against tv series .PP 3. an "exact" title match against movie titles with production dates within 2 years of the 'date' value. .PP Unless \-\-movies\-only is used, if the program does not include a 4 digit \&'date' field the following matches are attempted, the first succeeding match is used: .PP 1. an "exact" title match against tv series .PP When a match is found in the themoviedb.org data the following is applied: .PP 1. the 'title' field is set to match exactly the title from the themoviedb.org data. This includes modification of the case to match and any transformations mentioned above. .PP 2. if the match is a movie, the 'date' field is set to themoviedb.org 4 digit year of production. .PP 3. the type of match found (Movie, or TV Series) is placed in the 'categories' field. .PP 4. a url to the program on www.imdb.com is added. .PP 5. the director is added if the match was a movie or if only one director is listed in the themoviedb.org data (because some tv series have. 30 directors). .PP 6. the top 3 billing actors are added (use \-\-actors [num] to adjust). .PP 7. genres are added to 'categories' field. .PP 8. TMDB user-ratings added to 'star\-ratings' field. .PP 9. TMDB keywords are added to 'keyword' fields (if \-\-with\-keywords used). .PP 10. TMDB plot summary is added (if \-\-with\-plot used). .PP 11. The top TMDB reviews are added (use \-\-reviews [num] to adjust). .SH HOWTO .IX Header "HOWTO" 1. In order to use tv_tmdb, you need an API key from themoviedb.org. These are free for Personal use. You need to create a log-in with themoviedb.org and then click on the API link on the Settings page. (See https://www.themoviedb.org/documentation/api ) .PP 2. run 'tv_tmdb \-\-apikey \-\-output myxmlout.xml myxmlin.xml' or \&'cat tv.xml | tv_tmdb \-\-apikey tv1.xml' or etc. .PP 3. To use a config file to avoid entering your apikey on the commandline, run \&'tv_tmdb \-\-configure' and follow the prompts. .PP Feel free to report any problems with these steps at https://github.com/XMLTV/xmltv/issues. .SH BACKGROUND .IX Header "BACKGROUND" Like the original (pre Amazon) IMDb, "The Movie Database" (TMDB) (https://www.themoviedb.org/) is a community effort, and relies on people adding the movies. .PP Note TMDB is \fInot\fR IMDB...but it's getting there! As at December 2021, TMDB has over 700,000 movies and 123,000 TV shows while IMDB has approx 770,000 movies and 217,000 TV series. However there are bound to be some films/TV programmes on IMDb which are not on TMDB. So if you can't find a film that you can find manually on IMDb then you might consider signing up to TMDB and adding it yourself. .SH BUGS .IX Header "BUGS" We only add movie information to programmes that have a 'date' element defined (since we need a year to work with when verifing we got the correct hit in the TMDB data). .PP A date is required for a movie to be augmented. (If no date is found in the incoming data then it is assumed the program is a tv series/episode.) .PP For movies we look for matches on title plus release-year within two years of the program date. We could check other data such as director or top 3 actors to help identify the correct match. .PP Headshots of the actors are possible with the TMDB data, but the XMLTV.dtd does not currently support them. .SH DISCLAIMER .IX Header "DISCLAIMER" This product uses the TMDB API but is not endorsed or certified by TMDB. .PP It is \fBYOUR\fR responsibility to comply with TMDB's Terms of Use of their API. .PP In particular your attention is drawn to TMDB's restrictions on Commercial Use. Your use is deemed to be Commercial if \fIany\fR of: .PP 1. Users are charged a fee for your product or a 3rd party's product or service or a 3rd party's service that includes some sort of integration using the TMDB APIs. .PP 2. You sell services using TMDb's APIs to bring users' TMDB content into your service. .PP 3. Your site is a "destination" site that uses TMDB content to drive traffic and generate revenue. .PP 4. Your site generates revenue by charging users for access to content related to TMDB content such as movies, television shows and music. .PP If any of these events are true then you cannot use TMDB data in any part of your product or service without a commercial license. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBxmltv\fR\|(5) .SH AUTHOR .IX Header "AUTHOR" Geoff Westcott, Jerry Veldhuis