@xriss/weerss 0.0.33 → 0.0.35

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.
Files changed (3) hide show
  1. package/items.js +2 -1
  2. package/package.json +1 -1
  3. package/weerss.js +3 -2
package/items.js CHANGED
@@ -153,7 +153,8 @@ items.prepare=function(item,feed)
153
153
  }
154
154
 
155
155
  // prefer link, but might be a feed url + ( id or date )
156
- item.uuid=item.link || ( item.feed+"#"+( ( rss["/guid"] || atom["/id"] ) || (""+item.date) ) )
156
+ // jacket constantly generates new links , so can not be used
157
+ item.uuid=( item.feed+"#"+( ( rss["/guid"] || atom["/id"] ) || (""+item.date) ) )
157
158
 
158
159
  return item
159
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xriss/weerss",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "source": "weerss.js",
5
5
  "type": "module",
6
6
  "repository": {
package/weerss.js CHANGED
@@ -199,12 +199,13 @@ weerss.fetch=async function()
199
199
  {
200
200
  let its=await db.list("items",{torrent_is_null:1})
201
201
  console.log("Checking torrents : "+its.length)
202
- for(let item of its)
202
+ for(let idx in its)
203
203
  {
204
204
  try{
205
+ let item=its[idx]
205
206
  console.log(item.uuid)
206
207
  await torrents.fill_torrent(item)
207
- console.log(item.torrent)
208
+ console.log((idx+1)+"/"+its.length+" : "+JSON.stringify(item.torrent,null,1))
208
209
  items.set(item)
209
210
  }catch(e){console.log(e)}
210
211
  }