davels / tvdb-bulk-update

MythTV bulk update script using www.tvdb.com. Set MythVideo metadata and posters for tv episodes.

commit 52: fddcabff2e9b
parent 51: c394be49a49d
branch: default
better tvdb_api path setup when we are imported set the correct tvdb_api sys.path addition when we are imported from a different directory
davels
10 months ago

Changed (Δ59 bytes):

raw changeset »

tvdb_bulk_update.py (1 lines added, 2 lines removed)

Up to file-list tvdb_bulk_update.py:

@@ -180,8 +180,7 @@ IMG_COMPOSITE_CMD = 'composite -gravity
180
180
# ========== END OF USER OPTIONS ===========================
181
181
182
182
183
_tvdb_api_dir = os.path.join(__name__ == '__main__' and
184
                             os.path.dirname(sys.argv[0]) or os.getcwd(),
183
_tvdb_api_dir = os.path.join(os.path.dirname(__file__) or os.getcwd(),
185
184
                             "tvdb_api")
186
185
187
186
def download_tvdbapi():