Skip to content

Commit

Permalink
Fix exception when there is no anime XML (#7256)
Browse files Browse the repository at this point in the history
* Update lib

* Update readme

* Update requirements

* Update CHANGELOG.md
  • Loading branch information
medariox authored Oct 13, 2019
1 parent f3a281e commit b28ea1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Fixed provider beyond-hd due to layout changes ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
- Fixed provider bj-share due to layout changes ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
- Fixed provider btdb due date format change in layout ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
- Fixed exception when there is no anime XML ([#7256](https://github.com/pymedusa/Medusa/pull/7256))

-----

Expand Down
3 changes: 3 additions & 0 deletions ext/adba/aniDBtvDBmaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def get_anidb_for_tvdb(self, tvdb_id):

def _get_x_for_y(self, xValue, x, y):
# print("searching "+x+" with the value "+str(xValue)+" and want to give back "+y)
if not self.xmlMap:
return 0

x_value = str(xValue)
for anime in self.xmlMap.findall("anime"):
try:
Expand Down
2 changes: 1 addition & 1 deletion ext/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## ext
Folder | Package | Version / Commit | Usage | Notes
:----: | :-----: | :--------------: | :---- | :----
ext | `adba` | pymedusa/[112c04b](https://github.com/pymedusa/adba/tree/112c04b50d318802b4a0c7924f8e26aaf9e60a5b) | **`medusa`** | -
ext | `adba` | pymedusa/[6efeff3](https://github.com/pymedusa/adba/tree/6efeff3a6bdcb6d45a4a79f424939ade2930e5f0) | **`medusa`** | -
ext | <code><b>appdirs</b>.py</code> | [1.4.3](https://pypi.org/project/appdirs/1.4.3/) | `simpleanidb`, `subliminal` (cli only) | -
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` | -
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
adba @ https://codeload.github.com/pymedusa/adba/tar.gz/112c04b50d318802b4a0c7924f8e26aaf9e60a5b#egg=adba
adba @ https://codeload.github.com/pymedusa/adba/tar.gz/6efeff3a6bdcb6d45a4a79f424939ade2930e5f0#egg=adba
babelfish @ https://codeload.github.com/Diaoul/babelfish/tar.gz/f403000dd63092cfaaae80be9f309fd85c7f20c9#egg=babelfish
beautifulsoup4==4.7.1
bencode.py==2.1.0
Expand Down

0 comments on commit b28ea1c

Please sign in to comment.