diff --git a/ext/adba/aniDBAbstracter.py b/ext/adba/aniDBAbstracter.py index 93851fc406..d1cfebb8fc 100644 --- a/ext/adba/aniDBAbstracter.py +++ b/ext/adba/aniDBAbstracter.py @@ -177,6 +177,9 @@ def _get_aid_from_xml(self, name): if not self.allAnimeXML: self.allAnimeXML = read_anidb_xml(self.cache_path) + if not self.allAnimeXML: + return 0 + regex = re.compile('( \(\d{4}\))|[%s]' % re.escape(string.punctuation)) # remove any punctuation and e.g. ' (2011)' # regex = re.compile('[%s]' % re.escape(string.punctuation)) # remove any punctuation and e.g. ' (2011)' name = regex.sub('', name.lower()) diff --git a/ext/readme.md b/ext/readme.md index f362eb370a..1f5baa1f31 100644 --- a/ext/readme.md +++ b/ext/readme.md @@ -1,7 +1,7 @@ ## ext Folder | Package | Version / Commit | Used By | Notes / Modules :----: | :-----: | :--------------: | :------ | :-------------- -ext | **`adba`** | pymedusa/[6efeff3](https://github.com/pymedusa/adba/tree/6efeff3a6bdcb6d45a4a79f424939ade2930e5f0) | **`medusa`** | - +ext | **`adba`** | pymedusa/[ad9a011](https://github.com/pymedusa/adba/tree/ad9a011b26e24b276baed5435981fee21a93c254) | **`medusa`** | - ext | `appdirs` | [1.4.3](https://pypi.org/project/appdirs/1.4.3/) | `simpleanidb`, `subliminal` (cli only) | File: `appdirs.py` ext | `attrs` | [18.2.0](https://pypi.org/project/attrs/18.2.0/) | `imdbpie` | Module: `attr` ext | **`babelfish`** | [f403000](https://github.com/Diaoul/babelfish/tree/f403000dd63092cfaaae80be9f309fd85c7f20c9) | **`medusa`**, `guessit`, `knowit`, `subliminal` | - diff --git a/requirements.txt b/requirements.txt index 3e28d52bbc..0a5dcc6e23 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -adba @ https://codeload.github.com/pymedusa/adba/tar.gz/6efeff3a6bdcb6d45a4a79f424939ade2930e5f0 +adba @ https://codeload.github.com/pymedusa/adba/tar.gz/ad9a011b26e24b276baed5435981fee21a93c254 babelfish @ https://codeload.github.com/Diaoul/babelfish/tar.gz/f403000dd63092cfaaae80be9f309fd85c7f20c9 beautifulsoup4==4.9.3 bencode.py==4.0.0