@@ -17,7 +17,7 @@ export class OMDbAPI extends APIModel {
1717 this . plugin = plugin ;
1818 this . apiName = 'OMDbAPI' ;
1919 this . apiDescription = 'A free API for Movies, Series and Games.' ;
20- this . apiUrl = 'http ://www.omdbapi.com/' ;
20+ this . apiUrl = 'https ://www.omdbapi.com/' ;
2121 this . types = [ MediaType . Movie , MediaType . Series , MediaType . Game ] ;
2222 this . typeMappings = new Map < string , string > ( ) ;
2323 this . typeMappings . set ( 'movie' , 'movie' ) ;
@@ -32,7 +32,7 @@ export class OMDbAPI extends APIModel {
3232 throw Error ( `MDB | OMDb ${ this . apiName } API key missing.` ) ;
3333 }
3434
35- const searchUrl = `http ://www.omdbapi.com/?s=${ encodeURIComponent ( title ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
35+ const searchUrl = `https ://www.omdbapi.com/?s=${ encodeURIComponent ( title ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
3636 const fetchData = await fetch ( searchUrl ) ;
3737
3838 if ( fetchData . status === 401 ) {
@@ -110,7 +110,7 @@ export class OMDbAPI extends APIModel {
110110 throw Error ( `MDB | OMDb ${ this . apiName } API key missing.` ) ;
111111 }
112112
113- const searchUrl = `http ://www.omdbapi.com/?i=${ encodeURIComponent ( id ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
113+ const searchUrl = `https ://www.omdbapi.com/?i=${ encodeURIComponent ( id ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
114114 const fetchData = await fetch ( searchUrl ) ;
115115
116116 if ( fetchData . status === 401 ) {
0 commit comments