isohuntto / openbay

Other
3.53k stars 903 forks source link

Scrapes table #171

Open freezlite opened 9 years ago

freezlite commented 9 years ago

As I saw in code, scrapes task created in scrapes_queue when someone browsing torrens. When I'm run ./yii scrape/queue It trying to get those scrapes task with following sql: select s.id, t.hash, t.id as torrent_id, s.name from scrapes s right join torrents t on s.torrent_id = t.id where s.status = 0 and t.id in (9461,7690,1623,7059) order by s.name; But it's never will get any rows while scrapes(not scrapes_queue) records empty. I found just 1 logic with inserting those table and it's after this sql. So summing of saying, scrape logic will never runs.

freezlite commented 9 years ago

Still trying to understand usage of scrape table and rows there such as complete incomplete downloaded. And why the row 'name' named not as url.