From da1dde8f478e4f7845ccbccdb056a4b7e50e5b26 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ijc@hellion.org.uk>
Date: Sat, 23 Sep 2017 15:51:15 +0100
Subject: [PATCH 6/6] ttvdb: Add new test case: ttvdb.py -l en -a GB -C 330432
This had some regressions compared to v29.0 which are now fixed, so add a test
case.
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
---
.../programs/scripts/metadata/Television/ttvdb.py | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/mythtv/programs/scripts/metadata/Television/ttvdb.py b/mythtv/programs/scripts/metadata/Television/ttvdb.py
index 54e7dba19d..69aea8d0fd 100755
a
|
b
|
Banner:http://thetvdb.com/banners/graphical/281053-g2.jpg,http://thetvdb.com/ban |
651 | 651 | </metadata> |
652 | 652 | 0 |
653 | 653 | |
| 654 | >>> sys.argv = shlex.split('ttvdb.py -l en -a GB -C 330432') |
| 655 | >>> main() |
| 656 | <?xml version='1.0' encoding='UTF-8'?> |
| 657 | <metadata> |
| 658 | <item> |
| 659 | <language>en</language> |
| 660 | <title>Nine Minute Ninja</title> |
| 661 | <network>CBBC</network> |
| 662 | <description>Art Ninja spinoff. Ricky makes art in nine minutes.</description> |
| 663 | <categories> |
| 664 | <category type="genre" name="Children"/> |
| 665 | </categories> |
| 666 | <studios> |
| 667 | <studio name="CBBC"/> |
| 668 | </studios> |
| 669 | <runtime>10</runtime> |
| 670 | <inetref>330432</inetref> |
| 671 | <ratingcount>0</ratingcount> |
| 672 | <year>2015</year> |
| 673 | <releasedate>2015-06-24</releasedate> |
| 674 | <lastupdated>...</lastupdated> |
| 675 | <status>Continuing</status> |
| 676 | <images> |
| 677 | <image type="coverart" url="http://www.thetvdb.com/banners/posters/330432-1.jpg" thumb="http://www.thetvdb.com/banners/_cache/posters/330432-1.jpg"/> |
| 678 | </images> |
| 679 | </item> |
| 680 | </metadata> |
| 681 | 0 |
| 682 | |
654 | 683 | """ |
655 | 684 | from __future__ import print_function |
656 | 685 | |