Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2020-12-21 08:40:36 +1100
committerOlivier Mehani <shtrom@ssji.net>2020-12-21 08:40:36 +1100
commit189e5555667babb49d52e4f8bc821d7936be3dd4 (patch)
treec234ecde0984f2bb31ab92a3e68bd9f057e3341d
parent5ee5fbcc632bed97a71abe78da8ad6bcfe26f7b4 (diff)
thetvdb_rename: use tvnamer's thetvdb api key
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rwxr-xr-xthetvdb_rename.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/thetvdb_rename.py b/thetvdb_rename.py
index 7625556..f525391 100755
--- a/thetvdb_rename.py
+++ b/thetvdb_rename.py
@@ -11,6 +11,7 @@ from fuzzywuzzy import fuzz
outdir="renamed"
ext="mkv"
+TVNAMER_THETVDB_APIKEY='fb51f9b848ffac9750bada89ecba0225' # https://github.com/dbr/tvnamer/blob/24a9642f261611499a026f95b4fa5496de553e45/tvnamer/main.py#L55
debuglevel=logging.INFO
logging.basicConfig(level=debuglevel)
@@ -28,7 +29,7 @@ if len(sys.argv)>3:
if len(sys.argv)>4:
outdir = sys.argv[4]
-t=tvdb_api.Tvdb()
+t=tvdb_api.Tvdb(apikey=TVNAMER_THETVDB_APIKEY)
s=t[series][season]
logging.info("got %s season %s with %d episodes" % (s.show, season, len(s)))