Skip to content

Commit

Permalink
Guessit list alt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BKSteve committed May 12, 2024
1 parent bb9c1af commit ef443cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sickchill/oldbeard/postProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,12 @@ def process(self):
def guessit_findit(name: str) -> Union["ParseResult", None]:
logger.debug(f"Trying a new way to verify if we can parse this file; {name}")
title = guessit(name, {"type": "episode"}).get("title")

if title:
# if the title is a list instead of a string, then join it with spaces.
if isinstance(title, list):
title = " ".join(title)

show: "TVShow" = helpers.get_show(title)
if show:
try:
Expand Down
1 change: 0 additions & 1 deletion sickchill/show/indexers/tvdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import requests
import tvdbsimple

# from sickchill import logger
import sickchill.start
from sickchill import logger, settings
from sickchill.show.indexers.base import Indexer
Expand Down

0 comments on commit ef443cc

Please sign in to comment.