@@ -17,23 +17,18 @@ class Video {
1717 }
1818
1919 async process ( ) {
20- try {
21- let input = this . input ;
22- let output = this . output ;
23- let embeds = this . embeds ;
24- embeds = utils . ifEmbed ( this . options , 'ted' ) ? ( new Ted ( input , this . options , embeds ) . process ( ) ) : output ;
25- embeds = utils . ifEmbed ( this . options , 'dailymotion' ) ? ( new Dailymotion ( input , this . options , embeds ) . process ( ) ) : output ;
26- embeds = utils . ifEmbed ( this . options , 'ustream' ) ? ( new Ustream ( input , this . options , embeds ) . process ( ) ) : output ;
27- embeds = utils . ifEmbed ( this . options , 'liveleak' ) ? ( new LiveLeak ( input , this . options , embeds ) . process ( ) ) : output ;
28- embeds = utils . ifEmbed ( this . options , 'vine' ) ? ( new Vine ( input , this . options , embeds ) . process ( ) ) : output ;
29- embeds = utils . ifEmbed ( this . options , 'youtube' ) ? await ( new Youtube ( input , this . options , embeds ) . process ( ) ) : output ;
30- embeds = utils . ifEmbed ( this . options , 'vimeo' ) ? await ( new Vimeo ( input , this . options , embeds ) . process ( ) ) : output ;
20+ let input = this . input ;
21+ let output = this . output ;
22+ let embeds = this . embeds ;
23+ embeds = utils . ifEmbed ( this . options , 'ted' ) ? ( new Ted ( input , this . options , embeds ) . process ( ) ) : output ;
24+ embeds = utils . ifEmbed ( this . options , 'dailymotion' ) ? ( new Dailymotion ( input , this . options , embeds ) . process ( ) ) : output ;
25+ embeds = utils . ifEmbed ( this . options , 'ustream' ) ? ( new Ustream ( input , this . options , embeds ) . process ( ) ) : output ;
26+ embeds = utils . ifEmbed ( this . options , 'liveleak' ) ? ( new LiveLeak ( input , this . options , embeds ) . process ( ) ) : output ;
27+ embeds = utils . ifEmbed ( this . options , 'vine' ) ? ( new Vine ( input , this . options , embeds ) . process ( ) ) : output ;
28+ embeds = utils . ifEmbed ( this . options , 'youtube' ) ? await ( new Youtube ( input , this . options , embeds ) . process ( ) ) : output ;
29+ embeds = utils . ifEmbed ( this . options , 'vimeo' ) ? await ( new Vimeo ( input , this . options , embeds ) . process ( ) ) : output ;
3130
32-
33- return [ output , embeds ] ;
34- } catch ( error ) {
35- console . log ( error ) ;
36- }
31+ return [ output , embeds ] ;
3732 }
3833}
3934
0 commit comments