Skip to content

Commit

Permalink
possible hotfix for lost deleted status
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrax committed Nov 7, 2023
1 parent dfb7bbf commit 273324b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 2 additions & 0 deletions client-vue/src/components/VodItemVideoInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@
<template v-else>
<li>
<em>{{ t("vod.video-info.vod-has-not-been-checked") }}</em>
&nbsp;<a href="javascript:void(0)" title="Retry VOD match" @click="matchVod()"><font-awesome-icon icon="sync" /></a>
<a href="javascript:void(0)" title="Manually match VOD" @click="manualVodMatch()"><font-awesome-icon icon="pencil" /></a>
</li>
</template>
<li>
Expand Down
2 changes: 1 addition & 1 deletion server/src/Core/Providers/Base/BaseVOD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class BaseVOD {
external_vod_id?: string;
external_vod_title?: string;
external_vod_duration?: number;
external_vod_exists = false;
external_vod_exists?: boolean;
external_vod_date?: Date;

comment?: string;
Expand Down
23 changes: 13 additions & 10 deletions server/src/Core/Providers/Twitch/TwitchVOD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,27 +891,30 @@ export class TwitchVOD extends BaseVOD {

let migrated = false;

if (this.json.twitch_vod_id && !this.external_vod_id) {
this.external_vod_id = this.json.twitch_vod_id;
if (this.twitch_vod_id !== undefined && !this.external_vod_id) {
this.external_vod_id = this.twitch_vod_id;
migrated = true;
}
if (this.json.twitch_vod_duration && !this.external_vod_duration) {
this.external_vod_duration = this.json.twitch_vod_duration;
if (
this.twitch_vod_duration !== undefined &&
!this.external_vod_duration
) {
this.external_vod_duration = this.twitch_vod_duration;
migrated = true;
}
if (this.json.twitch_vod_title && !this.external_vod_title) {
this.external_vod_title = this.json.twitch_vod_title;
if (this.twitch_vod_title !== undefined && !this.external_vod_title) {
this.external_vod_title = this.twitch_vod_title;
migrated = true;
}
if (this.json.twitch_vod_date && !this.external_vod_date) {
this.external_vod_date = parseJSON(this.json.twitch_vod_date);
if (this.twitch_vod_date !== undefined && !this.external_vod_date) {
this.external_vod_date = parseJSON(this.twitch_vod_date);
migrated = true;
}
if (
this.json.twitch_vod_exists &&
this.twitch_vod_exists !== undefined &&
this.external_vod_exists === undefined
) {
this.external_vod_exists = this.json.twitch_vod_exists;
this.external_vod_exists = this.twitch_vod_exists;
migrated = true;
}

Expand Down

0 comments on commit 273324b

Please sign in to comment.