Doc-Tests for tvmaze ### Important Notice: ### tvmaze shuffles the search order results which have an equal distance from time to time. ### Various python versions ( 2.7, 3.6+ ) and/or lxml versions display xml attributes ### in a different order. Please double check the output for these failure conditions. ### Please do not raise an issue in one of above cases. # This might be sorted in different way: update this file if the sort order does not match # tvmaze.py -M "night a" >>> sys.argv = shlex.split('tvmaze -M "night a"') >>> main() A Clear Midsummer Night The daughter of a real estate mogul Xia Wan Qing, has seemingly no way of retreating after a friend's betrayal and her boyfriend backing out of their wedding. Fortunately, she's saved by business genius Qiao Jin Fan. Jin Fan is a "playboy" and the future successor for Qiao corporation. He extends an offering hand and together they embark on a path of revenge. Each for reasons of their own, begin a love with "uncertain motives". After enduring circumstances because of their families' competing interests and a number of conspiracies the two find true love. 24598 24598 zh 2013-02-15 ... 2013 A Night of Exploration Weekly look at different parts of the world investigated and documented by National Geographic. 31623 31623 en 2013-01-11 ... 2013 Night Stalker: The Hunt for a Serial Killer Beneath the sunlit glamour of 1985 LA lurks a relentlessly evil serial killer. In this true-crime story, two detectives won't rest until they catch him. 52474 52474 en 2021-01-13 ... ... 2021 A Night at the Theatre Entertainment and comedy at Glasgow's Theatre Royal. 42539 42539 en 2019-02-24 ... 2019 A Night at The Classic Mixing the best bits of stand-up comedy with hilarious backstage action, A Night at The Classic is raw, uncensored comedy at its best. 19206 19206 en 2010-11-03 ... 2010 A Night with My Ex What would you do if you had the chance to spend an entire night with your ex? Would you seek answers, try to gain closure, or make a play to get back together? For the first time since their split, ex-couples will be brought together for one night in a camera-rigged apartment with no crew. What they do or say during their night is completely up to them, but one thing is for sure. A Night with My Ex will be surprising, emotionally raw, and in many cases, totally hilarious. 27687 27687 en 2017-07-18 ... 2017 Tales for a Halloween Night Tales for a Halloween Night is based on John Carpenter's award-winning graphic novel anthology of stories where he unites storytellers from movies, novels and comics for a collection of horror stories featuring graveyards, sunken ships and ghosts, among others. 30203 30203 en ... Boys on Film - A Night with Duran Duran Iconic British rock band Duran Duran take over BBC Four for one night with exclusive access to the band, two newly-filmed documentaries bring incredible insights, showcase previously unseen archive footage and rare demo tapes, and reveal the thoughts and inspirations of the band across the decades. 37161 37161 en 2018-06-29 ... 2018 The Night Watchman Young watchmen of the Joseon Dynasty fight demons in this "Ghostbusters"-like story. Set in the backdrop of the royal palace, the good guys vanquish demons while the bad guys use them for their purposes. The palace is rife with sinister plans to seize power and usurp the king. Through this story of young people who hunt demons, the tribulations and joys of life are shown in all their glory. 3237 3237 ko 2014-08-04 ... 2014 Light as a Feather An innocent game of "Light as a Feather, Stiff as a Board" goes wrong when the five teen girls who played start dying off in the exact way that was predicted, forcing the survivors to figure out why they're being targeted - and whether the evil force hunting them down is one of their own. 36655 36655 en 2018-10-12 ... ... 2018 # tvmaze.py -N "A Clear Midsummer Night" "Episode 42" >>> sys.argv = shlex.split('tvmaze -N "A Clear Midsummer Night" "Episode 42"') >>> main() A Clear Midsummer Night Episode 42 1 42 24598 24598 zh 2013-02-23 ... 2013 50 # python3 tvmaze.py -C 525 >>> sys.argv = shlex.split('tvmaze -C 525') >>> main() Gilmore Girls Gilmore Girls is a drama centering around the relationship between a thirtysomething single mother and her teen daughter living in Stars Hollow, Connecticut. 525 tt0238784 525 en 2000-10-05 ... ... 2000 # python3 tvmaze.py -D 525 5 2 >>> sys.argv = shlex.split('tvmaze -D 525 5 2') >>> main() Gilmore Girls A Messenger, Nothing More T.J. is milking his injuries for all he's worth, but Luke decides that it's time to go home after seven weeks on the Ren Faire circuit; Rory calls to apologize and to ask her mother to deliver a letter to Dean; Sookie accurately diagnoses Lorelai with a bad case of management burnout, and the two friends decide to decompress with a girls-day-out; Emily and Rory come home exhausted from fending off the attentions of randy European men; Michel is wildly unenthusiastic when he's pressed into babysitting for guests whose children take an inexplicable shine to him; after Lindsay finds Rory's letter, she throws Dean and all his possessions out of the house, and her mother has an angry confrontation with Lorelai in the town square; Lane realizes that she's falling for Zack; Rory is saddened when Dean expresses regret for the shift in their relationship and the harm it caused to his wife and their families. 5 2 525 525 en 2004-09-28 ... ... 2004 60 # python3 tvmaze.py -M BÖsterreich >>> if sys.version_info[0] == 2: ... sys.argv = shlex.split(u'tvmaze -M BÖsterreich'.encode('utf-8')) ... else: ... sys.argv = shlex.split('tvmaze -M BÖsterreich') ... >>> main() BÖsterreich 23361 23361 de 2014-04-01 ... 2014 Willkommen Österreich 34194 34194 de 2007-05-31 ... 2007 ## ## Testing this traceback does not work: ## # python3 tvmaze.py -N 4711 "Episode 42" # >>> sys.argv = shlex.split('tvmaze -N 4711 "Episode 42"') # >>> main() # The following matches on two episodes. # tvmaze.py -N Bulletproof "Episode 4" >>> sys.argv = shlex.split('tvmaze -N "Bulletproof" "Episode 4"') >>> main() Bulletproof Episode 4 As Alex regains control of the family, Mikey puts Bishop and Pike in charge of a gun-trafficking op. But the boys quickly find themselves out of their depth.  2 4 31477 31477 en 2020-03-20 ... ... 2020 60 Bulletproof Episode 4 Pike and Bishop's refusal to follow orders hurls them into a disturbing case. 1 4 31477 31477 en 2018-06-05 ... ... 2018 60 # There are at least 3 programs called "The Flash". Test that we find # a matching subtitle in the correct version. # tvmaze.py -N "The Flash" "Double Vision" >>> sys.argv = shlex.split('tvmaze -N "The Flash" "Double Vision"') >>> main() The Flash Double Vision Barry attempts to foil the kidnapping of Sofia Tomarquin, daughter of DEA agent Felix Tomarquin, who is scheduled to testify against drug lord Reuben Calderon. However, Calderon's enforcer, Marcos Trachmann, utilizes advanced microscopic devices to control Barry's nervous system and force him to help them kidnap Sofia. 1 5 528 528 en 1990-11-01 ... ... 1990 60 # This example is a partial match on subtitle from the 1967 version of "The Flash" # tvmaze.py -N "The Flash" "To Catch a Blue" >>> sys.argv = shlex.split('tvmaze -N "The Flash" "To Catch a Blue"') >>> main() The Flash To Catch a Blue Bolt Blue Bolt, an alien being with the same Super Speed as The Flash, attacks the Earth. 1 3 7079 7079 en 1967-11-25 ... 1967 7 # This example shows the '-N title datetime' syntax >>> from MythTV import datetime >>> showtimeisoutc = "2021-03-21 13:00:00" >>> showtimeutc = datetime.fromIso(showtimeisoutc, tz='Etc/UTC') >>> showtimelocal = showtimeutc.astimezone(datetime.localTZ()) >>> showtimeisolocal = showtimelocal.strftime("%Y-%m-%d %H:%M:%S") >>> sys.argv = shlex.split('tvmaze -N "CBS Sunday Morning" "%s"' % showtimeisolocal) >>> main() CBS News Sunday Morning Episode 12 Hosted by Jane Pauley. In our cover story, David Pogue looks at the hit online instruction series MasterClass. Plus: Singer Demi Lovato talks with Tracy Smith about her life since surviving a 2018 heroin overdose; Martha Teichner visits with abstract artist Frank Stella; Ali MacGraw and Ryan O'Neal reminisce about the making of the classic "Love Story" with Ben Mankiewicz; Seth Doane reviews an exhibition of Roman and Greek antiquities which have been out of public view for about 70 years; Rita Braver tells the story of a man, adopted at birth, who reconnects with his birth mother; Conor Knighton explores extinct species that may not be extinct; and Luke Burbank reports on the rise in sports betting, and tests his luck at a Las Vegas sportsbook. 2021 12 15779 15779 en 2021-03-21 ... 2021 90