0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-17 16:55:12 +00:00

fixes after git history mangling

This commit is contained in:
Nikita Krupin 2022-06-06 11:00:10 -04:00
commit bb58c5046a
6 changed files with 37 additions and 5 deletions

View file

@ -106,7 +106,7 @@ jobs:
CODE_SIGNING_ALLOWED="NO" CODE_SIGNING_ALLOWED="NO"
CODE_SIGN_ENTITLEMENTS="" CODE_SIGN_ENTITLEMENTS=""
- name: Make IPA - name: Make IPA
run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-iphoneos/App.app Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-maccatalyst/App.app/ Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2

View file

@ -235,6 +235,21 @@ export default {
this.vidSrc = this.sources[this.sources.length - 1].url; this.vidSrc = this.sources[this.sources.length - 1].url;
// TODO: detect orientation change and enter fullscreen // TODO: detect orientation change and enter fullscreen
// TODO: detect video loading state and send this.loading to play button :loading = loading // TODO: detect video loading state and send this.loading to play button :loading = loading
this.$youtube.getSponsorBlock(this.$route.query.v, (data) => {
sponsorBlock = data.segment;
});
this.$refs.player.ontimeupdate = () => {
let vidTime = this.$refs.player.currentTime;
for (let i = 0; i < sponsorBlock.length; i++) {
if (vidTime > sponsorBlock[i][0] && vidTime < sponsorBlock[0][i]) {
this.$refs.player.currentTime = sponsorBlock[i][0];
break;
}
}
}
}, },
beforeDestroy() { beforeDestroy() {
if (this.isFullscreen) this.exitFullscreen(); if (this.isFullscreen) this.exitFullscreen();

View file

@ -28,7 +28,7 @@
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<v-card-title <v-card-title
class="pa-0" class="pa-0"
style="font-size: 0.95rem; line-height: 1.15rem" style="font-size: 0.95rem; line-height: 1.15rem; overflow-wrap: break-word;"
v-text="video.title" v-text="video.title"
v-emoji v-emoji
/> />

View file

@ -32,7 +32,9 @@ const module = {
}), }),
async addPlugin(content) { async addPlugin(content) {
await ensureStructure(); await ensureStructure();
new Promise(async (resolve, reject) => { new Promise(async (resolve, reject) => {
const fileName = require("./utils").getCpn(); // Im not sure what this is actually meant for but im using it as a random string generator const fileName = require("./utils").getCpn(); // Im not sure what this is actually meant for but im using it as a random string generator

View file

@ -147,9 +147,25 @@ const module = {
} }
// join the array into a string with : as a separator // join the array into a string with : as a separator
const returntext = levels.join(":"); let returntext = levels.join(":");
console.log("Human Time:", returntext);
while (returntext.startsWith(":00")) {
returntext = returntext.substring(3);
} // Remove Prepending 0s (eg. 00:00:00:01:00)
if (returntext.startsWith(":0")) {
returntext = returntext.substring(2);
} else {
returntext = returntext.substring(1);
} // Prevent Time Starting With 0 (eg. 01:00)
if (!returntext.includes(":")) {
if (returntext.length == 1) {
returntext = "0" + returntext; // Make tens digit in seconds always visible (eg. 0:09)
}
returntext = "0:" + returntext; // Make minutes visible as 0 when sub 60 seconds (eg. 0:51)
}
// console.log("Human Time:", returntext);
return returntext; return returntext;
}, },
//--- End Convert Time To Human Readable String ---// //--- End Convert Time To Human Readable String ---//

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.7 KiB