Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не работает проверка базы по фильтрам контента #51

Closed
CoderFF opened this issue Jul 21, 2018 · 1 comment

Comments

@CoderFF
Copy link

CoderFF commented Jul 21, 2018

Если выставить фильтр по типу контента и нажать "CHECK TORRENTS" то результатом будет Torrents to clean: Х, где Х это количество торрентов в базе.

При этом, в логах видим такое:
ignore torrent His Master (Unabridged).m4b because type undefined not in: [ 'video' ]

для всех торрентов тип контента определяется как udefined

В базе такого нет:

mysql> select count(*) from torrents where contenttype='undefined';
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0,08 sec)

mysql> select contenttype from torrents;
+-------------+
| contenttype |
+-------------+
| audio       |
| video       |
| pictures    |
| video       |
| video       |
| video       |
| books       |
| video       |
| video       |
| video       |
| video       |
| pictures    |
| books       |
| video       |
| video       |
| video       |
| audio       |
| application |
| application |
| application |
+-------------+
20 rows in set (0,06 sec)

Причина в том, что в функции spider::checkTorrent() код ожидает что поле будет называться "contentType", но при проверке БД оно называется "contenttype".
Если торрент приходит из сети, то он проходит через функцию spider::insertTorrentToDB(), где починяется кейс полей, а при проверке БД нет.

rats-search@0.26.0

@DEgITx
Copy link
Owner

DEgITx commented Jul 21, 2018

поправил, в следующей версии уже будет

@DEgITx DEgITx closed this as completed Jul 21, 2018
DEgITx pushed a commit that referenced this issue Jul 22, 2018
## [0.26.1](v0.26.0...v0.26.1) (2018-07-22)

### Bug Fixes

* **feed:** fix fileList coruption of feed replication ([27fa805](27fa805))
* **feed:** keep feed alive on down votes ([0e33c93](0e33c93))
* **feed:** replicate all feed record on new feed ([3e4460f](3e4460f))
* **filters:** fix filter cleanup on categories [#51](#51) ([7ec95cb](7ec95cb))
DEgITx pushed a commit that referenced this issue Jun 1, 2023
## [0.26.1](v0.26.0...v0.26.1) (2018-07-22)

### Bug Fixes

* **feed:** fix fileList coruption of feed replication ([27fa805](27fa805))
* **feed:** keep feed alive on down votes ([0e33c93](0e33c93))
* **feed:** replicate all feed record on new feed ([3e4460f](3e4460f))
* **filters:** fix filter cleanup on categories [#51](#51) ([7ec95cb](7ec95cb))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants