Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

tvdb_api - fix #538

Merged
merged 1 commit into from

2 participants

thezoggy Nic Wolfe
thezoggy

Fix for windows users that do not use a login/username -- thanks mr_orange

Nic Wolfe midgetspy merged commit b026bf6 into from
thezoggy thezoggy deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/tvdb_api/tvdb_api.py
7 lib/tvdb_api/tvdb_api.py
View
@@ -271,14 +271,12 @@ def search(self, term = None, key = None):
#end for cur_key, cur_value
-
class Actors(list):
"""Holds all Actor instances for a show
"""
pass
-
class Actor(dict):
"""Represents a single actor. Should contain..
@@ -505,7 +503,10 @@ def _getTempDir(self):
uid = "u%d" % (os.getuid())
else:
# For Windows
- uid = getpass.getuser()
+ try:
+ uid = getpass.getuser()
+ except ImportError:
+ return os.path.join(tempfile.gettempdir(), "tvdb_api")
return os.path.join(tempfile.gettempdir(), "tvdb_api-%s" % (uid))
Something went wrong with that request. Please try again.