File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export class ChannelIdFinder {
8888 }
8989
9090 async expectCanonicalLink ( exists : boolean ) {
91- const locator = this . page . locator ( ' [rel=" canonical"]' ) ;
91+ const locator = this . page . locator ( " [rel=' canonical']" ) ;
9292 const channelId =
9393 ( await locator . count ( ) ) > 0
9494 ? ( await locator . first ( ) . getAttribute ( "href" ) ) !
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export class YtVideoPage {
122122
123123 public async getPlaylistVideoIds ( n : number = 3 ) : Promise < string [ ] > {
124124 const locator = this . page . locator (
125- ' #playlist #thumbnail[href*=" /watch?" ],.YtmCompactMediaItemImage[href*=" /watch"]' ,
125+ " #playlist #thumbnail[href*=' /watch?' ],.YtmCompactMediaItemImage[href*=' /watch']" ,
126126 ) ;
127127 await locator . first ( ) . waitFor ( ) ;
128128 return await locator . evaluateAll (
@@ -142,7 +142,7 @@ export class YtVideoPage {
142142 public async getPlaylistSelectedVideoId ( ) : Promise < string > {
143143 return await this . page
144144 . locator (
145- ' #playlist-items[selected] #thumbnail[href*=" /watch?" ],.ytmPlaylistPanelVideoRendererV2Selected [href*=" /watch?"]' ,
145+ " #playlist-items[selected] #thumbnail[href*=' /watch?' ],.ytmPlaylistPanelVideoRendererV2Selected [href*=' /watch?']" ,
146146 )
147147 . first ( )
148148 . evaluate (
You can’t perform that action at this time.
0 commit comments