File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ class MediaPlayer {
503
503
} catch ( e ) {
504
504
console . error ( e ) ;
505
505
} finally {
506
- output . filename = url . split ( "/" ) . at ( - 1 ) ;
506
+ output . filename = new URL ( url ) . pathname . split ( "/" ) . at ( - 1 ) ;
507
507
prog . close ( ) ;
508
508
if ( ! output . length ) {
509
509
output . length = new Promise < number > ( async ( res ) => {
Original file line number Diff line number Diff line change @@ -588,6 +588,9 @@ export async function getapiurls(str: string): Promise<
588
588
return false ;
589
589
}
590
590
function isAnimated ( src : string ) {
591
+ try {
592
+ src = new URL ( src ) . pathname ;
593
+ } catch { }
591
594
return src . endsWith ( ".apng" ) || src . endsWith ( ".gif" ) ;
592
595
}
593
596
const staticImgMap = new Map < string , string | Promise < string > > ( ) ;
You can’t perform that action at this time.
0 commit comments