Compare commits

..

2 commits

Author SHA1 Message Date
d1d4fed691
add Venture Bros eps 2024-02-25 22:52:17 +01:00
0663b423bd
accept IMDB IDs for TV episodes too 2024-02-25 22:52:06 +01:00
2 changed files with 46 additions and 4 deletions

View file

@ -1,4 +1,46 @@
[ [
{
"name": "Venture Libre",
"overview": "The Ventures travel into the jungles of Central America to find an invention that has developed a mind of its own.",
"air_date": "2013-06-09",
"episode_number": 2,
"season_number": 5,
"tmdb_id": 182394,
"series": {
"tmdb_id": 2418
},
"date_added": "2024-02-25",
"date_finished": "2024-02-25",
"added_by_id": "4583811"
},
{
"name": "What Color Is Your Cleansuit?",
"overview": "A three-month period in the lives of our heroes and villains is chronicled. Dr. Venture recruits college interns to help him complete a project for J.J. in time, but things go awry. Dean makes a life-changing decision after Triana rejects him, and Billy Quizboy acquires a new archenemy.",
"air_date": "2013-06-02",
"episode_number": 1,
"season_number": 5,
"tmdb_id": 182388,
"series": {
"tmdb_id": 2418
},
"date_added": "2024-02-25",
"date_finished": "2024-02-25",
"added_by_id": "4427076"
},
{
"name": "A Very Venture Halloween",
"overview": "Only Team Venture knows how to put the very real, life-threatening element of danger back into Halloween.",
"air_date": "2012-10-28",
"episode_number": 4,
"season_number": 0,
"tmdb_id": 1029908,
"series": {
"tmdb_id": 2418
},
"date_added": "2024-02-25",
"date_finished": "2024-02-25",
"added_by_id": "tt2423804"
},
{ {
"name": "Operation: P.R.O.M.", "name": "Operation: P.R.O.M.",
"overview": "Team Venture, Conjectural Technologies and the Order of the Triad come together as Dean and Hank prepare to face an obstacle that is more intimidating then anything they have confronted before: a prom to celebrate their \"graduating\" high school, while Dr. Venture throws out all the stops to bring the twins the best dance $500 can buy. But when things go awry, the greatest battle in Venture history looms as two old enemies - the OSI and SPHINX - clash once again.", "overview": "Team Venture, Conjectural Technologies and the Order of the Triad come together as Dean and Hank prepare to face an obstacle that is more intimidating then anything they have confronted before: a prom to celebrate their \"graduating\" high school, while Dr. Venture throws out all the stops to bring the twins the best dance $500 can buy. But when things go awry, the greatest battle in Venture history looms as two old enemies - the OSI and SPHINX - clash once again.",

View file

@ -481,7 +481,7 @@ def cleanup_result(item, media_type) -> dict:
del item[f"original_{title_key}"], item["original_language"] del item[f"original_{title_key}"], item["original_language"]
if "tv-episodes" == media_type: if "tv-episodes" == media_type:
item['series']['tmdb_id'] = item['show_id'] item['series'] = { 'tmdb_id': item['show_id'] }
del item['show_id'] del item['show_id']
if "books" == media_type: if "books" == media_type:
@ -561,8 +561,8 @@ def main() -> None:
elif "tv-episodes" == media_type: elif "tv-episodes" == media_type:
log = "log" log = "log"
while re.search("[0-9]+", item_id) is None: while re.search("(tt)?[0-9]+", item_id) is None:
item_id = input("Enter IMDB ID: ") item_id = input("Enter TVDB or IMDB ID: ")
elif "tv-series" == media_type: elif "tv-series" == media_type:
log = "" log = ""
@ -572,7 +572,7 @@ def main() -> None:
while re.search("[0-9]+", item_id) is None: while re.search("[0-9]+", item_id) is None:
item_id = input("Enter TMDB ID: ") item_id = input("Enter TMDB ID: ")
add_item_to_log(re.search("[0-9]+", item_id)[0], media_type, log) add_item_to_log(re.search("(tt)?[0-9]+", item_id)[0], media_type, log)
except Exception: except Exception:
logger.exception("Exception occurred") logger.exception("Exception occurred")