Skip to content

Commit

Permalink
Merge pull request #10467 from pymedusa/release/release-0.5.28
Browse files Browse the repository at this point in the history
Release/release 0.5.28
  • Loading branch information
p0psicles authored Apr 1, 2022
2 parents 15f4e8f + 1451ac9 commit b618bb9
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.5.28 (01-04-2022)

#### Improvements
- Send discord notification as an embed ([10464](https://github.com/pymedusa/Medusa/pull/10464))

#### Fixes
- Fix Mass update page ([10447](https://github.com/pymedusa/Medusa/pull/10447))
- Fix re-load episodes when navigatin from testRename to displayShow ([10465](https://github.com/pymedusa/Medusa/pull/10465))

## 0.5.27 (29-03-2022)

#### Fixes
Expand Down
2 changes: 1 addition & 1 deletion medusa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
log.logger.addHandler(logging.NullHandler())

INSTANCE_ID = text_type(uuid.uuid1())
VERSION = '0.5.27'
VERSION = '0.5.28'

USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
version=VERSION, system=platform.system(), release=platform.release(),
Expand Down
14 changes: 10 additions & 4 deletions medusa/notifiers/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ def _send_discord_msg(self, title, msg, webhook=None, tts=None, override_avatar=

log.debug('Discord in use with API webhook: {webhook}', {'webhook': webhook})

message = '{0} : {1}'.format(title, msg)

headers = {'Content-Type': 'application/json'}
payload = {
'content': message,
'username': app.DISCORD_NAME,
'tts': tts
'content': '',
'tts': tts,
'embeds': [{
'type': 'rich',
'title': '',
'description': msg,
'footer': {
'text': title
}
}]
}

if override_avatar:
Expand Down
13 changes: 11 additions & 2 deletions themes-default/slim/src/components/display-show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,9 @@ export default {
_getEpisodes(showSlug);
},
initializeEpisodes() {
initializeEpisodes(force = false) {
const { getEpisodes, showSlug, setRecentShow, show } = this;
if (!show.seasons && show.seasonCount) {
if (force || (!show.seasons && show.seasonCount)) {
// Load episodes for the first page.
this.loadEpisodes(1);
// Always get special episodes if available.
Expand Down Expand Up @@ -1010,6 +1010,15 @@ export default {
sceneObjectToString(value) {
return `${value.season}x${value.episode}`;
}
},
watch: {
$route(to, from) {
if (to.name === 'show' && from.name === 'testRename') {
// Load all episodes if we're coming from the testRename page.
this.initializeEpisodes(true);
}
}
}
};
</script>
Expand Down
3 changes: 2 additions & 1 deletion themes-default/slim/src/components/manage-mass-update.vue
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ export default {
shows: state => state.shows.shows,
layout: state => state.config.layout,
showQueue: state => state.config.system.showQueue,
showQueueItems: state => state.shows.queueitems
showQueueItems: state => state.shows.queueitems,
client: state => state.auth.client
}),
filteredShows() {
const { shows, errors } = this;
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/light/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/light/assets/js/medusa-runtime.js.map

Large diffs are not rendered by default.

0 comments on commit b618bb9

Please sign in to comment.