JCB9090 / pct-addon

popcorn time add-on for stremio; takes the same content as popcorn time from YTS.ag and eztv
MIT License
28 stars 5 forks source link

stopped working again #9

Open tatsujb opened 6 years ago

tatsujb commented 6 years ago
-> map has 58620 movies / eps
-> eztv trying frm https://popcorntime.ws/api/eztv/shows/
Popcorn Addon listening on 7821
-> collecting from https://yts.ag/api/v2/list_movies.json
-> eztv trying frm https://popcornwvnbg7jev.onion.to/shows/
/home/t/tralala/pct-addon/index.js:170
        popularities: { yts: m.torrents[0].seeds }
                                       ^

TypeError: Cannot read property '0' of undefined
    at mapMetaToStremio (/home/t/tralala/pct-addon/index.js:170:40)
    at Array.map (native)
    at /home/t/tralala/pct-addon/index.js:113:100
    at done (/home/t/tralala/pct-addon/node_modules/needle/lib/needle.js:357:7)
    at PassThrough.<anonymous> (/home/t/tralala/pct-addon/node_modules/needle/lib/needle.js:546:9)
    at emitNone (events.js:72:20)
    at PassThrough.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:923:12)
    at nextTickCallbackWith2Args (node.js:458:9)
    at process._tickCallback (node.js:372:17)

commenting line 170 of index allows it to work I dunno exactly at what cost.