@xriss/weerss 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shows.js +3 -3
package/package.json
CHANGED
package/shows.js
CHANGED
|
@@ -82,7 +82,7 @@ shows.get_tvmaze=async function(show,force)
|
|
|
82
82
|
let show_year
|
|
83
83
|
let show_country
|
|
84
84
|
let show_name=show.name
|
|
85
|
-
let qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","
|
|
85
|
+
let qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","%20")
|
|
86
86
|
await new Promise(resolve => setTimeout(resolve, 500)) // do not spam requests
|
|
87
87
|
let tvmaze=await shows.fetch(qurl,force)
|
|
88
88
|
|
|
@@ -92,7 +92,7 @@ shows.get_tvmaze=async function(show,force)
|
|
|
92
92
|
{
|
|
93
93
|
show_year=show_name.substring(show_name.length-4)
|
|
94
94
|
show_name=show_name.substring(0,show_name.length-5)
|
|
95
|
-
qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","
|
|
95
|
+
qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","%20")
|
|
96
96
|
await new Promise(resolve => setTimeout(resolve, 500)) // do not spam requests
|
|
97
97
|
tvmaze=await shows.fetch(qurl,force)
|
|
98
98
|
if(tvmaze)
|
|
@@ -108,7 +108,7 @@ shows.get_tvmaze=async function(show,force)
|
|
|
108
108
|
{
|
|
109
109
|
show_country=show_name.substring(show_name.length-2)
|
|
110
110
|
show_name=show_name.substring(0,show_name.length-3)
|
|
111
|
-
qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","
|
|
111
|
+
qurl="https://api.tvmaze.com/search/shows?q="+show_name.replaceAll(" ","%20")
|
|
112
112
|
await new Promise(resolve => setTimeout(resolve, 500)) // do not spam requests
|
|
113
113
|
tvmaze=await shows.fetch(qurl,force)
|
|
114
114
|
if(tvmaze)
|