@xriss/weerss 0.0.38 → 0.0.40
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 +1 -1
- package/weerss.js +3 -2
package/package.json
CHANGED
package/shows.js
CHANGED
|
@@ -59,7 +59,7 @@ shows.prepare=function(show)
|
|
|
59
59
|
// lookup show episode on tvmaze, this needs a valid tvmaze id
|
|
60
60
|
shows.get_tvmaze_episode=async function(showid,season,episode)
|
|
61
61
|
{
|
|
62
|
-
await new Promise(resolve => setTimeout(resolve,
|
|
62
|
+
await new Promise(resolve => setTimeout(resolve, 100)) // do not over spam requests
|
|
63
63
|
|
|
64
64
|
let ret=null
|
|
65
65
|
|
package/weerss.js
CHANGED
|
@@ -214,11 +214,12 @@ weerss.fetch=async function()
|
|
|
214
214
|
{
|
|
215
215
|
let its=await db.list("items",{show_is_null:1,torrent_is_not_null:1})
|
|
216
216
|
console.log("Checking shows : "+its.length)
|
|
217
|
-
for(let
|
|
217
|
+
for(let idx in its)
|
|
218
218
|
{
|
|
219
|
+
let item=its[idx]
|
|
219
220
|
await shows.fill_show(item)
|
|
220
221
|
|
|
221
|
-
console.log( item_to_string(item) )
|
|
222
|
+
console.log( idx+"/"+its.length+" : "+item_to_string(item) )
|
|
222
223
|
|
|
223
224
|
items.set(item)
|
|
224
225
|
}
|