Skip to content

Commit

Permalink
fix: fixed captions.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixkk committed Dec 17, 2024
1 parent 564a619 commit 81ea01b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions NUXT/components/Player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -902,12 +902,10 @@ export default {
},
async captionsHandler(q) {
if (q.baseUrl != null) {
const html = await Http.get({
url: constants.URLS.YT_MOBILE + q.baseUrl,
url: (constants.URLS.YT_MOBILE + q.baseUrl).replace("https://www.youtube.com", ""),
params: {},
}).catch((error) => error);
console.log(html);
let captions = convertTranscriptToVTT(html.data);
function textToDataURL(text) {
const blob = new Blob([text], { type: 'text/plain' });
Expand Down

0 comments on commit 81ea01b

Please sign in to comment.