diff --git a/app/composables/set_colors.ts b/app/utils/set_colors.ts similarity index 100% rename from app/composables/set_colors.ts rename to app/utils/set_colors.ts diff --git a/app/utils/yt_titles.ts b/app/utils/yt_titles.ts new file mode 100644 index 0000000..3c4e4a9 --- /dev/null +++ b/app/utils/yt_titles.ts @@ -0,0 +1,11 @@ +// @ts-ignore +const getArtistTitle = require('get-artist-title') + +export function get_title(vid_id: string) { + +} + +export function filter_title(title: string) { + const [ artist, track ] = getArtistTitle(title) + return [ artist, track ] +} \ No newline at end of file