Skip to content

Commit

Permalink
修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanasu committed Sep 29, 2024
1 parent d0cd388 commit 8b3e71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/class/cut-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class CutIn extends ObjectNode {
if (this.videoUrl.indexOf('/shorts/') >= 0) {
let tmp = this.videoUrl.split('/shorts/');
if (tmp[1]) ret = encodeURI(tmp[1].split(/[\?\&\#\/]/)[0]);
} else if (this.videoUrl.indexOf('?v=') >= 0) {
let tmp = this.videoUrl.split('?v=');
} else if (this.videoUrl.indexOf('v=') >= 0) {
let tmp = this.videoUrl.split('v=');
if (tmp[1]) ret = encodeURI(tmp[1].split(/[\?\&\#\/]/)[0]);
}
} else if (hostname == 'youtu.be') {
Expand Down

0 comments on commit 8b3e71c

Please sign in to comment.