Skip to content

Commit

Permalink
Feature/fix anidb release group high mem usage (#5314)
Browse files Browse the repository at this point in the history
* Fix memory overflow when opening editShow on an anime with release groups from anidb.

* The real fix.

* Created vendors.

* Fix xo lint errors.
Renamed item to something more descriptive.

* Update changelog.

* Yarn dev.
  • Loading branch information
p0psicles authored Sep 28, 2018
1 parent 65697f1 commit eea3396
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- Fixed Speed.CD provider exception during searches ([#5190](https://github.com/pymedusa/Medusa/pull/5190))
- Fixed adba lib trowing exceptions getting release groups for some anime shows ([#5125](https://github.com/pymedusa/Medusa/pull/5125))
- Fixed trakt icon not showing on the displayShow page, when a trakt id is available ([#5300](https://github.com/pymedusa/Medusa/pull/5300))
- Fixed editShow page crashing because of a memory overflow ([#5314](https://github.com/pymedusa/Medusa/pull/5314))


-----

Expand Down
7 changes: 5 additions & 2 deletions themes-default/slim/src/components/anidb-release-group-ui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ export default {
id: this.index,
toggled: false, memberOf: list
}, release);
this.allReleaseGroups.push(itemAsObject);
this.index += 1; // Increment the counter for our next item.
if (this.allReleaseGroups.filter(group => group.name === itemAsObject.name && group.memberOf === list).length === 0) {
this.allReleaseGroups.push(itemAsObject);
this.index += 1; // Increment the counter for our next item.
}
}
},
moveToList(list) {
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eea3396

Please sign in to comment.