diff --git a/CHANGELOG.md b/CHANGELOG.md index 40ac559..8ed01dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 0.2.12 + +- Add Esports and Interview categories + ### 0.2.11 - Add RSS feed link for video subscriptions diff --git a/src/constants/constants.js b/src/constants/constants.js index 2878da4..a0d3a1e 100644 --- a/src/constants/constants.js +++ b/src/constants/constants.js @@ -1,4 +1,4 @@ -export const VERSION = '0.2.11' +export const VERSION = '0.2.12' // Video export const FUNDAMENTALS = 'fundamentals' @@ -7,6 +7,8 @@ export const CARDS = 'cards' export const STRATEGY = 'strategy' export const TRADING = 'trading' export const PATCH_NOTES = 'patch notes' +export const INTERVIEW = 'interview' +export const ESPORTS = 'esports' export const GAMEPLAY = 'gameplay' export const FUN = 'fun' export const OTHER = 'other' @@ -18,6 +20,8 @@ export const CATEGORIES = [ STRATEGY, TRADING, PATCH_NOTES, + INTERVIEW, + ESPORTS, GAMEPLAY, FUN, OTHER @@ -46,4 +50,5 @@ export const CHANNELS_BY_AUTHOR = { 'Merchant': 'https://www.youtube.com/c/MerchantTV', 'LionUnchained': 'https://www.youtube.com/channel/UCL_alzGOKz6hQl7UNa0mnzw', 'Rogvarok': 'https://www.youtube.com/channel/UCdaFKgefAytNPi-kmPOQcaw', + 'Fakemews9': 'https://www.youtube.com/channel/UCbopgNya6aLhYi6GE8mNMvw', } \ No newline at end of file diff --git a/src/models/category.js b/src/models/category.js index addf0c0..a5c370b 100644 --- a/src/models/category.js +++ b/src/models/category.js @@ -4,7 +4,9 @@ import { CARDS, TRADING, PATCH_NOTES, + INTERVIEW, FUNDAMENTALS, + ESPORTS, GAMEPLAY, FUN, OTHER @@ -17,6 +19,8 @@ const CATEGORY_LABELS = { [STRATEGY]: 'Strategy', [TRADING]: 'Trading', [PATCH_NOTES]: 'Patch Notes', + [INTERVIEW]: 'Interview', + [ESPORTS]: 'Esports', [GAMEPLAY]: 'Gameplay', [FUN]: 'Fun', [OTHER]: 'Other' @@ -29,7 +33,9 @@ const COLORS = { [STRATEGY]: 'blue', [TRADING]: 'lime', [PATCH_NOTES]: 'red', - [GAMEPLAY]: 'brown lighten-2', + [INTERVIEW]: 'blue-grey lighten-3', + [ESPORTS]: 'brown lighten-1', + [GAMEPLAY]: 'brown lighten-3', [FUN]: 'purple', [OTHER]: 'grey' } @@ -40,7 +46,7 @@ const DARK_COLORS = [ 'red', 'purple', 'grey', - 'brown lighten-2' + 'brown lighten-1' ] export default class Category { diff --git a/src/views/VideoEdit.vue b/src/views/VideoEdit.vue index 1d805c3..0297cf1 100644 --- a/src/views/VideoEdit.vue +++ b/src/views/VideoEdit.vue @@ -94,7 +94,10 @@ export default { const videoData = response.data.items[0] this.video.author = videoData.snippet.channelTitle this.video.title = videoData.snippet.title - this.video.imageUrl = videoData.snippet.thumbnails['standard'].url + const thumbnail = videoData.snippet.thumbnails['standard'] + if (thumbnail) { + this.video.imageUrl = thumbnail.url + } this.video.description = videoData.snippet.description this.video.publishedAt = dayjs(videoData.snippet.publishedAt).toDate() })