Compare commits

...
This repository has been archived on 2023-10-01. You can view files and clone it, but cannot push or open issues or pull requests.

195 Commits
v2 ... master

Author SHA1 Message Date
06bc5c68e4 Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/PyNyaaTa
All checks were successful
books / flake8 (push) Successful in 1m2s
books / docker (push) Successful in 2m1s
books / pypi (push) Successful in 1m8s
2023-10-01 10:23:36 +02:00
1ac0a3a9a0 Remove ygg 2023-10-01 10:23:35 +02:00
5d3bcc1503 Merge pull request 'Update dependency Flask-WTF to v1.1.2' (#162) from renovate/flask-wtf-1.x into master
All checks were successful
books / flake8 (push) Successful in 1m5s
books / docker (push) Successful in 1m13s
books / pypi (push) Successful in 1m5s
Reviewed-on: #162
2023-09-30 18:48:55 +00:00
Renovate Bot
29a044d02f Update dependency Flask-WTF to v1.1.2
All checks were successful
books / flake8 (push) Successful in 1m0s
books / docker (push) Successful in 1m29s
books / pypi (push) Has been skipped
2023-09-30 06:53:22 +00:00
8dcbb10d80 Update actions
All checks were successful
books / flake8 (push) Successful in 40s
books / docker (push) Successful in 37s
books / pypi (push) Successful in 58s
2023-09-29 00:41:27 +02:00
534a49df0b Merge pull request 'Update dependency redis to v5.0.1' (#161) from renovate/redis-5.x into master
All checks were successful
books / flake8 (push) Successful in 51s
books / docker (push) Successful in 1m4s
books / pypi (push) Successful in 46s
Reviewed-on: #161
2023-09-28 07:29:15 +00:00
Renovate Bot
150ed78b70 Update dependency redis to v5.0.1
All checks were successful
books / flake8 (push) Successful in 50s
books / docker (push) Successful in 1m29s
books / pypi (push) Has been skipped
2023-09-27 06:41:09 +00:00
c1d6a39fcd Merge pull request 'Update dependency transmission-rpc to v7.0.1' (#160) from renovate/transmission-rpc-7.x into master
All checks were successful
books / flake8 (push) Successful in 28s
books / docker (push) Successful in 1m4s
books / pypi (push) Successful in 48s
Reviewed-on: #160
2023-09-18 07:34:48 +00:00
3d01536d08 Merge pull request 'Update dependency pg8000 to v1.30.2' (#159) from renovate/pg8000-1.x into master
All checks were successful
books / flake8 (push) Successful in 32s
books / docker (push) Successful in 45s
books / pypi (push) Successful in 50s
Reviewed-on: #159
2023-09-18 07:34:39 +00:00
Renovate Bot
34b6045a44 Update dependency transmission-rpc to v7.0.1
All checks were successful
books / flake8 (push) Successful in 42s
books / docker (push) Successful in 59s
books / pypi (push) Has been skipped
2023-09-18 06:45:40 +00:00
Renovate Bot
0058dc2efa Update dependency pg8000 to v1.30.2
All checks were successful
books / flake8 (push) Successful in 1m2s
books / docker (push) Successful in 1m47s
books / pypi (push) Has been skipped
2023-09-18 06:45:36 +00:00
49fe6486b4 Merge pull request 'Update dependency transmission-rpc to v7' (#158) from renovate/transmission-rpc-7.x into master
All checks were successful
books / flake8 (push) Successful in 38s
books / docker (push) Successful in 52s
books / pypi (push) Successful in 57s
Reviewed-on: #158
2023-09-14 07:33:18 +00:00
Renovate Bot
94d11b8aa5 Update dependency transmission-rpc to v7
All checks were successful
books / flake8 (push) Successful in 38s
books / docker (push) Successful in 1m0s
books / pypi (push) Has been skipped
2023-09-14 06:48:31 +00:00
0c3a22cc19 Merge pull request 'Update dependency transmission-rpc to v6' (#153) from renovate/transmission-rpc-6.x into master
All checks were successful
books / flake8 (push) Successful in 50s
books / docker (push) Successful in 1m28s
books / pypi (push) Successful in 56s
Reviewed-on: #153
2023-09-03 18:55:10 +00:00
Renovate Bot
3a097d4482 Update dependency transmission-rpc to v6
All checks were successful
books / flake8 (push) Successful in 1m5s
books / docker (push) Successful in 1m10s
books / pypi (push) Has been skipped
2023-09-02 06:47:23 +00:00
045e295508 Merge pull request 'Update python Docker tag to v3.11.5' (#152) from renovate/python-3.x into master
All checks were successful
books / flake8 (push) Successful in 40s
books / docker (push) Successful in 47s
books / pypi (push) Successful in 49s
Reviewed-on: #152
2023-08-26 08:26:06 +00:00
Renovate Bot
82379bf81d Update python Docker tag to v3.11.5
All checks were successful
books / flake8 (push) Successful in 51s
books / docker (push) Successful in 1m2s
books / pypi (push) Has been skipped
2023-08-26 06:40:34 +00:00
9387fa0327 Merge pull request 'Update dependency Flask to v2.3.3' (#151) from renovate/flask-2.x into master
All checks were successful
books / flake8 (push) Successful in 40s
books / docker (push) Successful in 1m13s
books / pypi (push) Successful in 49s
Reviewed-on: #151
2023-08-22 07:34:59 +00:00
Renovate Bot
34a4fb0af7 Update dependency Flask to v2.3.3
All checks were successful
books / flake8 (push) Successful in 48s
books / docker (push) Successful in 1m10s
books / pypi (push) Has been skipped
2023-08-22 06:40:21 +00:00
7e2a9bbea9 Merge pull request 'Update dependency redis to v5' (#150) from renovate/redis-5.x into master
All checks were successful
books / flake8 (push) Successful in 42s
books / docker (push) Successful in 1m13s
books / pypi (push) Successful in 53s
Reviewed-on: #150
2023-08-17 06:35:46 +00:00
Renovate Bot
ebfc12f29f Update dependency redis to v5
All checks were successful
books / flake8 (push) Successful in 55s
books / docker (push) Successful in 1m40s
books / pypi (push) Has been skipped
2023-08-16 06:32:44 +00:00
d44e1df662 Merge pull request 'Update dependency pg8000 to v1.30.1' (#149) from renovate/pg8000-1.x into master
All checks were successful
books / flake8 (push) Successful in 1m36s
books / docker (push) Successful in 2m10s
books / pypi (push) Successful in 49s
Reviewed-on: #149
2023-07-30 09:48:15 +00:00
Renovate Bot
1392b9a589 Update dependency pg8000 to v1.30.1
All checks were successful
books / flake8 (push) Successful in 34s
books / docker (push) Successful in 1m7s
books / pypi (push) Has been skipped
2023-07-30 06:31:39 +00:00
21444229e4 New Ygg address
All checks were successful
books / flake8 (push) Successful in 1m26s
books / docker (push) Successful in 1m48s
books / pypi (push) Successful in 52s
2023-07-10 14:35:10 +00:00
567f1d7fa1 Merge pull request 'Update dependency charset-normalizer to v3.2.0' (#148) from renovate/charset-normalizer-3.x into master
All checks were successful
books / flake8 (push) Successful in 47s
books / docker (push) Successful in 54s
books / pypi (push) Successful in 48s
Reviewed-on: #148
2023-07-08 09:52:10 +00:00
Renovate Bot
86c7399924 Update dependency charset-normalizer to v3.2.0
All checks were successful
books / flake8 (push) Successful in 42s
books / docker (push) Successful in 1m2s
books / pypi (push) Has been skipped
2023-07-08 06:40:58 +00:00
a33b173488 fix metadata
All checks were successful
books / flake8 (push) Successful in 31s
books / docker (push) Successful in 1m9s
books / pypi (push) Successful in 43s
2023-07-01 17:29:44 +02:00
8abbfc165e fix tags
Some checks failed
books / flake8 (push) Successful in 29s
books / docker (push) Failing after 20s
books / pypi (push) Successful in 42s
2023-07-01 17:13:55 +02:00
1e1e514584 disable branch tag on ci
Some checks failed
books / flake8 (push) Successful in 49s
books / docker (push) Failing after 30s
books / pypi (push) Successful in 48s
2023-07-01 17:10:13 +02:00
6d8e9a9b7b Add username
All checks were successful
books / flake8 (push) Successful in 29s
books / docker (push) Successful in 31s
books / pypi (push) Successful in 44s
2023-06-30 22:14:02 +02:00
f3463924d0 Fix Twine
Some checks failed
books / flake8 (push) Successful in 32s
books / docker (push) Successful in 29s
books / pypi (push) Failing after 43s
2023-06-30 22:09:40 +02:00
1ddeb8b405 Test Twine
Some checks failed
books / flake8 (push) Successful in 41s
books / docker (push) Successful in 1m30s
books / pypi (push) Failing after 45s
2023-06-30 22:01:00 +02:00
dd70fb4e18 Fix CI
Some checks failed
books / flake8 (push) Successful in 31s
books / docker (push) Successful in 29s
books / pypi (push) Failing after 33s
2023-06-30 17:37:02 +02:00
e2302a4c06 Don't install build
Some checks failed
books / flake8 (push) Successful in 30s
books / docker (push) Successful in 27s
books / pypi (push) Failing after 28s
2023-06-30 17:26:51 +02:00
a57491e466 Fix CI
Some checks failed
books / flake8 (push) Successful in 31s
books / docker (push) Successful in 28s
books / pypi (push) Failing after 36s
2023-06-30 17:26:27 +02:00
f3e9fac73a Test with deploy-pypi
Some checks failed
books / flake8 (push) Successful in 32s
books / docker (push) Successful in 29s
books / pypi (push) Failing after 41s
2023-06-30 17:02:51 +02:00
4cdcc84ad8 test
Some checks failed
books / flake8 (push) Successful in 32s
books / docker (push) Successful in 30s
books / pypi (push) Failing after 47s
2023-06-30 16:48:04 +02:00
d2338ad0d9 Fix CI
Some checks failed
books / flake8 (push) Successful in 40s
books / docker (push) Successful in 30s
books / pypi (push) Failing after 50s
2023-06-30 13:20:57 +00:00
63046d5a9d Merge pull request 'Update dependency PyMySQL to v1.1.0' (#147) from renovate/pymysql-1.x into master
All checks were successful
books / flake8 (push) Successful in 36s
books / docker (push) Successful in 47s
books / pypi (push) Successful in 1m55s
Reviewed-on: #147
2023-06-26 07:49:43 +00:00
Renovate Bot
fe5f8a0e57 Update dependency PyMySQL to v1.1.0
All checks were successful
books / flake8 (push) Successful in 33s
books / docker (push) Successful in 54s
books / pypi (push) Has been skipped
2023-06-26 06:49:26 +00:00
4f60073282 last fix for ci
All checks were successful
books / flake8 (push) Successful in 30s
books / docker (push) Successful in 34s
books / pypi (push) Successful in 1m3s
2023-06-25 22:48:25 +02:00
8649c913c4 Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/PyNyaaTa
All checks were successful
books / flake8 (push) Successful in 30s
books / docker (push) Successful in 33s
books / pypi (push) Successful in 1m4s
2023-06-25 22:43:32 +02:00
6b73b1372d push only if master 2023-06-25 22:43:31 +02:00
b858a028cb Merge pull request 'Update dependency redis to v4.6.0' (#145) from renovate/redis-4.x into master
All checks were successful
books / flake8 (push) Successful in 31s
books / docker (push) Successful in 34s
books / pypi (push) Successful in 1m3s
Reviewed-on: #145
2023-06-25 20:41:53 +00:00
3e5550cf92 fix actions
All checks were successful
books / flake8 (push) Successful in 34s
books / docker (push) Successful in 35s
books / pypi (push) Successful in 1m5s
2023-06-25 22:39:53 +02:00
af46673300 Merge pull request 'test pr' (#146) from test into master
All checks were successful
books / flake8 (push) Successful in 33s
books / docker (push) Successful in 29s
books / pypi (push) Has been skipped
Reviewed-on: #146
2023-06-25 20:34:37 +00:00
1a9b3c8577 test pr
All checks were successful
books / flake8 (push) Successful in 33s
books / docker (push) Successful in 32s
books / pypi (push) Has been skipped
2023-06-25 22:33:14 +02:00
Renovate Bot
60e102a5b6 Update dependency redis to v4.6.0
All checks were successful
books / flake8 (push) Successful in 54s
books / docker (push) Successful in 1m21s
books / pypi (push) Successful in 1m10s
2023-06-25 20:24:55 +00:00
8c4d133f9a use build
All checks were successful
books / flake8 (push) Successful in 34s
books / docker (push) Successful in 35s
books / pypi (push) Successful in 1m2s
2023-06-25 18:38:52 +02:00
570d9da247 Forgot github.com
Some checks failed
books / flake8 (push) Successful in 36s
books / docker (push) Successful in 33s
books / pypi (push) Failing after 1m6s
2023-06-25 18:32:02 +02:00
ca1b0d691f Switch to Gitea Actions
Some checks failed
books / flake8 (push) Successful in 31s
books / docker (push) Successful in 1m16s
books / pypi (push) Failing after 7s
2023-06-25 18:26:56 +02:00
d914afdecb Merge pull request 'Update dependency pg8000 to v1.29.8' (#144) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #144
2023-06-17 10:02:01 +00:00
4c3f7c67ef Update dependency pg8000 to v1.29.8
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-17 00:24:16 +00:00
564192c05b Merge pull request 'Update python Docker tag to v3.11.4' (#143) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #143
2023-06-08 07:25:58 +00:00
a8e7fdcb99 Update python Docker tag to v3.11.4
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-08 00:30:10 +00:00
b375ecb78f Merge pull request 'Update dependency pg8000 to v1.29.6' (#142) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #142
2023-05-30 07:03:03 +00:00
c54b7dbfd5 Update dependency pg8000 to v1.29.6
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-30 00:30:24 +00:00
9636949c1b Merge pull request 'Update dependency requests to v2.31.0' (#141) from renovate/requests-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #141
2023-05-23 10:09:31 +00:00
ad6b0849c6 Update dependency requests to v2.31.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 00:39:37 +00:00
9caec5252c Merge pull request 'Update dependency pg8000 to v1.29.5' (#140) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #140
2023-05-10 06:29:40 +00:00
b83e83295e Update dependency pg8000 to v1.29.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-10 00:06:33 +00:00
dcbab36e0d Merge pull request 'Update dependency redis to v4.5.5' (#139) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #139
2023-05-09 07:29:18 +00:00
c14c58f80c Update dependency redis to v4.5.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-09 00:06:30 +00:00
058ce40815 Merge pull request 'Update dependency requests to v2.30.0' (#138) from renovate/requests-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #138
2023-05-05 09:36:08 +00:00
89f204bd58 Update dependency requests to v2.30.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-05 00:07:11 +00:00
2385766ae3 Merge pull request 'Update dependency Flask to v2.3.2' (#137) from renovate/flask-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #137
2023-05-02 05:16:24 +00:00
1e29e20de1 Update dependency Flask to v2.3.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-02 00:04:04 +00:00
5c1038f4c4 Merge pull request 'Update dependency Flask-HTTPAuth to v4.8.0' (#136) from renovate/flask-httpauth-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #136
2023-04-28 07:30:48 +00:00
01a0ee7f93 Update dependency Flask-HTTPAuth to v4.8.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-28 00:10:49 +00:00
99bcc50998 Merge pull request 'Update dependency requests to v2.29.0' (#135) from renovate/requests-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #135
2023-04-27 07:34:58 +00:00
edfc3be5b2 Update dependency requests to v2.29.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-27 00:11:29 +00:00
e431ea3e42 Merge pull request 'Update dependency Flask to v2.3.1' (#134) from renovate/flask-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #134
2023-04-26 11:40:35 +00:00
84fb1afeb0 Update dependency Flask to v2.3.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-26 00:11:21 +00:00
f356e13358 Merge pull request 'Update dependency beautifulsoup4 to v4.12.2' (#132) from renovate/beautifulsoup4-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #132
2023-04-08 12:55:30 +00:00
5f47bc7200 Update dependency beautifulsoup4 to v4.12.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-08 00:10:54 +00:00
ac1f88972b Merge pull request 'Update dependency beautifulsoup4 to v4.12.1' (#130) from renovate/beautifulsoup4-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #130
2023-04-06 07:30:26 +00:00
664079b477 Merge pull request 'Update python Docker tag to v3.11.3' (#131) from renovate/python-3.x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #131
2023-04-06 07:30:14 +00:00
c71f055d10 Update python Docker tag to v3.11.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-06 00:23:20 +00:00
3d96d4645f Update dependency beautifulsoup4 to v4.12.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-06 00:23:17 +00:00
9cb80ca7d0 Merge pull request 'Update dependency redis to v4.5.4' (#129) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #129
2023-03-30 09:06:31 +00:00
b08fb8530c Update dependency redis to v4.5.4
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-30 00:24:32 +00:00
23fa15691c Merge pull request 'Update dependency PyMySQL to v1.0.3' (#128) from renovate/pymysql-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #128
2023-03-29 07:32:40 +00:00
638119469c Update dependency PyMySQL to v1.0.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-29 00:24:50 +00:00
521e55e36c Merge pull request 'Update dependency dateparser to v1.1.8' (#127) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #127
2023-03-24 15:26:27 +00:00
0952e11209 Update dependency dateparser to v1.1.8
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-24 00:23:47 +00:00
a89da0f091 Merge pull request 'Update dependency redis to v4.5.3' (#126) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #126
2023-03-23 08:18:28 +00:00
d7c7e2e12c Update dependency redis to v4.5.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-23 00:24:17 +00:00
5d03e27862 Merge pull request 'Update dependency redis to v4.5.2' (#124) from renovate/redis-4.x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #124
2023-03-21 09:41:49 +00:00
88f6e3f866 Merge pull request 'Update dependency beautifulsoup4 to v4.12.0' (#125) from renovate/beautifulsoup4-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #125
2023-03-21 09:41:34 +00:00
ed5ab91845 Update dependency beautifulsoup4 to v4.12.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-21 00:25:03 +00:00
35dc5913ef Update dependency redis to v4.5.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-21 00:24:57 +00:00
ff3f318e3a Change YGG address
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-20 13:47:23 +00:00
d08f299f31 Merge pull request 'Update dependency transmission-rpc to v3.4.2' (#123) from renovate/transmission-rpc-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #123
2023-03-14 08:24:46 +00:00
60f6859fe7 Update dependency transmission-rpc to v3.4.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-12 00:28:18 +00:00
d5d3a8c1d7 Merge pull request 'Update dependency charset-normalizer to v3.1.0' (#122) from renovate/charset-normalizer-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #122
2023-03-07 11:02:10 +00:00
8071c094e8 Update dependency charset-normalizer to v3.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-07 00:36:18 +00:00
c7e6f064ed Merge pull request 'Update dependency python-dotenv to v1' (#121) from renovate/python-dotenv-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #121
2023-02-28 09:55:14 +00:00
8bcea7a1b3 Update dependency python-dotenv to v1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-25 00:22:47 +00:00
6f4494e14e Merge pull request 'Update dependency transmission-rpc to v3.4.1' (#119) from renovate/transmission-rpc-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #119
2023-02-24 23:31:09 +00:00
0e8e0ec1d0 Update dependency transmission-rpc to v3.4.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-24 00:22:21 +00:00
5b1b8f5b21 Merge pull request 'Update dependency Flask to v2.2.3' (#118) from renovate/flask-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #118
2023-02-16 11:13:39 +00:00
6882b27e29 Update dependency Flask to v2.2.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-16 00:23:10 +00:00
0460988f44 Merge pull request 'Update python Docker tag to v3.11.2' (#117) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #117
2023-02-10 08:55:07 +00:00
607628c128 Update python Docker tag to v3.11.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-10 00:18:38 +00:00
0c741f396a Merge pull request 'Update dependency redis to v4.5.1' (#116) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #116
2023-02-09 23:28:51 +00:00
f06b4cec10 Update dependency redis to v4.5.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-09 00:23:48 +00:00
703d8d8bd4 Merge pull request 'Update dependency redis to v4.5.0' (#115) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #115
2023-02-08 12:31:12 +00:00
f02601993e Update dependency redis to v4.5.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-08 00:25:20 +00:00
07535ab715 Merge pull request 'Update dependency dateparser to v1.1.7' (#114) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #114
2023-02-03 13:13:03 +00:00
83d9c6386a Update dependency dateparser to v1.1.7
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-03 00:22:38 +00:00
8df73ce026 Merge pull request 'Update dependency beautifulsoup4 to v4.11.2' (#113) from renovate/beautifulsoup4-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #113
2023-02-02 08:14:30 +00:00
b17ed9812c Update dependency beautifulsoup4 to v4.11.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 00:34:05 +00:00
f3b6c234b8 Merge pull request 'Update dependency python-dotenv to v0.21.1' (#112) from renovate/python-dotenv-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #112
2023-01-22 10:12:15 +00:00
5695f11506 Update dependency python-dotenv to v0.21.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-01-22 00:32:28 +00:00
060730eee8 Readd FlareRequests
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-21 18:06:48 +01:00
a6326afa85 Revert "Test with YGG_IP"
This reverts commit 6c51312e09.
2023-01-21 17:59:58 +01:00
876d668c87 Revert "Don't disclose YGG_IP"
This reverts commit 198af3c631.
2023-01-21 17:59:53 +01:00
30364b4ac4 Revert "Fix crash"
This reverts commit 1116e8d0ad.
2023-01-21 17:59:48 +01:00
f6de44d3da Merge pull request 'Update dependency Flask-WTF to v1.1.1' (#111) from renovate/flask-wtf-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #111
2023-01-18 10:20:51 +00:00
e162ee2b75 Update dependency Flask-WTF to v1.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-18 00:20:00 +00:00
d3554a4d6c Merge pull request 'Update dependency dateparser to v1.1.6' (#109) from renovate/dateparser-1.x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #109
2023-01-16 15:42:03 +00:00
0ff39c2b59 Merge pull request 'Update dependency Flask-WTF to v1.1.0' (#110) from renovate/flask-wtf-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #110
2023-01-16 15:41:41 +00:00
6f21363200 Update dependency Flask-WTF to v1.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 00:15:38 +00:00
a6401cb5f3 Merge pull request 'Update dependency requests to v2.28.2' (#108) from renovate/requests-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #108
2023-01-13 08:44:43 +00:00
9d1309e365 Update dependency requests to v2.28.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 00:19:19 +00:00
3abecff8cd Update dependency dateparser to v1.1.6
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 00:18:16 +00:00
c5f977fc04 Merge pull request 'Update dependency redis to v4.4.2' (#107) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #107
2023-01-12 08:44:03 +00:00
f340416ff5 Update dependency redis to v4.4.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-12 00:15:10 +00:00
1a5523b3bd Merge pull request 'Update dependency redis to v4.4.1' (#106) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #106
2023-01-09 08:50:50 +00:00
cebd82bbf4 Update dependency redis to v4.4.1
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-01-09 00:32:25 +00:00
1116e8d0ad Fix crash
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-06 14:18:33 +01:00
198af3c631 Don't disclose YGG_IP
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-06 00:25:38 +01:00
6c51312e09 Test with YGG_IP
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-05 22:47:25 +01:00
91143c6f1e Fix encoding
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-05 20:50:17 +01:00
125d0bde2d Use flaresolverr v3
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-05 15:19:04 +01:00
da4aaff8d4 Merge pull request 'Update dependency dateparser to v1.1.5' (#105) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #105
2022-12-30 13:11:39 +00:00
2507419953 Update dependency dateparser to v1.1.5
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-30 00:15:03 +00:00
9452197f23 Update FlareRequests
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-24 14:22:33 +00:00
2587d705fc Use BytesIO for Response
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 18:12:20 +00:00
8475acd411 Encode string for Response
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 18:06:03 +00:00
bf49fd81c8 Use StringIO for response
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:57:37 +00:00
2095c620eb Forget to remove constant
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:49:01 +00:00
0c6f893a6f Remove timeout FlareRequest
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-21 17:48:31 +00:00
4dee2ea36e Readd session
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:37:27 +00:00
eb23799cd7 Increase timeout
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:31:49 +00:00
0deb6b4284 Fix postData on GET
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:20:16 +00:00
8dc0b49e18 Remove FlareSolverr session management
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:12:18 +00:00
068aebdaaf Use custom Response on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 16:46:50 +00:00
cb5ecf9a29 Don't use text but raw on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:56:04 +00:00
1b04b7eb4b Fix destroy on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:41:50 +00:00
aa3f288ff7 Change timeout to ms
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:40:10 +00:00
5207794249 Fix params on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:31:05 +00:00
b79ca54a9e Fix params on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:23:06 +00:00
b4a8f264e1 Add timeout on FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:14:43 +00:00
beead16617 Fix FlareRequest
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 15:06:41 +00:00
5b43615f02 Reorder imports + readd FlareSolverr
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 14:53:50 +00:00
28b11257a4 Revert "Reuse cloudscraper"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit ea5f514adb.
2022-12-19 19:18:08 +00:00
ea5f514adb Reuse cloudscraper
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 19:02:37 +00:00
3ff3fad357 Mise à jour de 'pynyaata/connectors/yggtorrent.py'
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-16 23:19:32 +00:00
613d07338c Merge pull request 'Update dependency pg8000 to v1.29.4' (#104) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #104
2022-12-15 16:09:02 +00:00
2f96da1f92 Update dependency pg8000 to v1.29.4
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-15 00:33:46 +00:00
7fef678368 Merge pull request 'Update python Docker tag to v3.11.1' (#103) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #103
2022-12-08 13:07:50 +00:00
02ff0ad02a Update python Docker tag to v3.11.1
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-08 13:04:09 +00:00
ec447ea4a3 Merge pull request 'Update dependency redis to v4.4.0' (#102) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #102
2022-12-05 00:31:20 +00:00
7803ee8cc0 Update dependency redis to v4.4.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-05 00:08:28 +00:00
911ad71e36 Merge pull request 'Update dependency redis to v4.3.5' (#101) from renovate/redis-4.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #101
2022-11-23 10:18:05 +00:00
6adc85c028 Update dependency redis to v4.3.5
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-23 00:21:51 +00:00
a7d40d1e2d Merge pull request 'Update dependency dateparser to v1.1.4' (#100) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #100
2022-11-22 08:24:47 +00:00
b6f81c28d5 Update dependency dateparser to v1.1.4
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 00:23:11 +00:00
b7cee8a909 Merge pull request 'Update dependency dateparser to v1.1.3' (#99) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #99
2022-11-04 07:54:58 +00:00
e54bd85cb5 Update dependency dateparser to v1.1.3
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-04 00:43:28 +00:00
9479fd663b Merge pull request 'Update dependency pg8000 to v1.29.3' (#98) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #98
2022-10-27 07:27:06 +00:00
cbc7420a87 Update dependency pg8000 to v1.29.3
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-27 00:20:23 +00:00
83c92f7342 Do not use slim image anymore
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 14:03:41 +00:00
133ec90b1e Use the non slim variant for docker image
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 13:10:56 +00:00
d21f19771e Merge pull request 'Update python Docker tag to v3.11.0' (#97) from renovate/python-3-x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #97
2022-10-25 07:53:08 +00:00
5c8ed8af13 Update python Docker tag to v3.11.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-25 00:10:41 +00:00
991ad6b7cd Revert "Update dependency WTForms to v3"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit af32b09054.
2022-10-23 22:23:52 +02:00
ee3a3a499f Merge pull request 'Update dependency WTForms to v3' (#96) from renovate/wtforms-3-x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #96
2022-10-23 18:25:09 +00:00
af32b09054 Update dependency WTForms to v3
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-23 18:06:39 +00:00
8df3df8c60 Merge pull request 'Update dependency dateparser to v1.1.2' (#94) from renovate/dateparser-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #94
2022-10-21 06:50:31 +00:00
5c7eb25b6b Update dependency dateparser to v1.1.2
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-21 00:12:35 +00:00
45aac65a9a Merge pull request 'Update python Docker tag to v3.10.8' (#93) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Reviewed-on: #93
2022-10-14 15:44:31 +00:00
f7da88e33d Update python Docker tag to v3.10.8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-14 00:16:24 +00:00
8768b2ea2a Merge pull request 'Update dependency transmission-rpc to v3.4.0' (#92) from renovate/transmission-rpc-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #92
2022-10-11 12:49:15 +00:00
b3b72c9f15 Update dependency transmission-rpc to v3.4.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-11 00:13:18 +00:00
49f3fc505d Merge pull request 'Update dependency pg8000 to v1.29.2' (#91) from renovate/pg8000-1.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #91
2022-10-10 07:20:27 +00:00
4889208299 Update dependency pg8000 to v1.29.2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-10 00:15:01 +00:00
c8a8429d8f Rollback FLask-SQLAlchemy
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-07 17:30:46 +00:00
c4600ac026 Merge pull request 'Update dependency Flask-SQLAlchemy to v3' (#90) from renovate/flask-sqlalchemy-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #90
2022-10-06 07:34:25 +00:00
3044a4780c Update dependency Flask-SQLAlchemy to v3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-05 00:31:25 +00:00
b93ed0579d Merge pull request 'Update python Docker tag to v3.10.7' (#89) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #89
2022-09-08 07:33:57 +00:00
be868217e0 Update python Docker tag to v3.10.7
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-09-08 00:37:59 +00:00
3e7ed70852 Merge pull request 'Update dependency python-dotenv to v0.21.0' (#88) from renovate/python-dotenv-0.x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #88
2022-09-04 09:19:41 +00:00
b1116b2441 Update dependency python-dotenv to v0.21.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-09-04 00:48:19 +00:00
15 changed files with 91 additions and 173 deletions

View File

@ -1,32 +0,0 @@
kind: pipeline
name: default
type: docker
steps:
- name: flake8
image: python:slim
commands:
- pip install flake8
- flake8 pynyaata --ignore=E501
- name: docker
image: plugins/docker
settings:
repo: xefir/pynyaata
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: pypi
image: plugins/pypi
settings:
username:
from_secret: pypi_username
password:
from_secret: pypi_password
when:
branch:
- master
event:
- push

2
.flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
max-line-length = 120

View File

@ -0,0 +1,55 @@
name: books
on: [push]
jobs:
flake8:
runs-on: ubuntu-latest
container: python
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v4
- run: pip install flake8
- run: flake8 pynyaata
docker:
runs-on: ubuntu-latest
container: docker
needs: [lint]
steps:
- run: apk add git nodejs
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: xefir/pynyaata
tags: |
type=schedule
type=ref,event=tag
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pypi:
runs-on: ubuntu-latest
container: python
needs: [lint]
if: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v4
- run: pip install twine
- run: python setup.py sdist
- run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

View File

@ -1,4 +1,4 @@
FROM python:3.10.6-slim
FROM python:3.11.5
COPY pynyaata /app/pynyaata
COPY requirements.txt *.py /app/

View File

@ -27,7 +27,7 @@ After a good rewrite in Python, it's time to show it to the public, and here it
## Features
* Search on [Nyaa.si](https://nyaa.si/), [Nyaa.net (codename Pantsu)](https://nyaa.net/), [YggTorrent](https://duckduckgo.com/?q=yggtorrent) and [Anime-Ultime](http://www.anime-ultime.net/index-0-1)
* Search on [Nyaa.si](https://nyaa.si/) and [Anime-Ultime](http://www.anime-ultime.net/index-0-1)
* Provide useful links to [TheTVDB](https://www.thetvdb.com/) and [Nautiljon](https://www.nautiljon.com/) during a search
* Color official and bad links
* Add seeded links to a database

View File

@ -4,7 +4,7 @@ from pynyaata.models import AnimeLink
links = AnimeLink.query.all()
for link in links:
html = curl_content(link.link, debug=False, cloudflare=True)
html = curl_content(link.link, debug=False)
if html['http_code'] != 200 and html['http_code'] != 500:
print('(%d) %s %s : %s' % (

View File

@ -1,14 +1,14 @@
from asyncio import get_event_loop, set_event_loop, SelectorEventLoop
from asyncio import SelectorEventLoop, get_event_loop, set_event_loop
from functools import wraps
from operator import attrgetter, itemgetter
from flask import redirect, render_template, request, url_for, abort
from flask import abort, redirect, render_template, request, url_for
from . import utils
from .config import app, auth, ADMIN_USERNAME, ADMIN_PASSWORD, DB_ENABLED, APP_PORT, IS_DEBUG, TRANSMISSION_ENABLED
from .connectors import get_instance, run_all, Nyaa
from .config import ADMIN_PASSWORD, ADMIN_USERNAME, APP_PORT, DB_ENABLED, IS_DEBUG, TRANSMISSION_ENABLED, app, auth
from .connectors import Nyaa, get_instance, run_all
from .connectors.core import ConnectorLang, ConnectorReturn
from .forms import SearchForm, DeleteForm, EditForm, FolderDeleteForm, FolderEditForm
from .forms import DeleteForm, EditForm, FolderDeleteForm, FolderEditForm, SearchForm
if DB_ENABLED:
from .config import db
@ -109,7 +109,7 @@ def latest(page=1):
@app.route('/list')
@app.route('/list/<url_filters>')
@db_required
def list_animes(url_filters='nyaa,yggtorrent'):
def list_animes(url_filters='nyaa'):
filters = None
for i, to_filter in enumerate(url_filters.split(',')):
if not i:

View File

@ -3,14 +3,11 @@ from asyncio import gather
from .animeultime import AnimeUltime
from .core import Other
from .nyaa import Nyaa
from .yggtorrent import YggTorrent, YggAnimation
async def run_all(*args, **kwargs):
coroutines = [Nyaa(*args, **kwargs).run(),
AnimeUltime(*args, **kwargs).run(),
YggTorrent(*args, **kwargs).run(),
YggAnimation(*args, **kwargs).run()]
AnimeUltime(*args, **kwargs).run()]
return list(await gather(*coroutines))
@ -20,7 +17,5 @@ def get_instance(url, query=''):
return Nyaa(query)
elif 'anime-ultime' in url:
return AnimeUltime(query)
elif 'ygg' in url:
return YggTorrent(query)
else:
return Other(query)

View File

@ -2,8 +2,8 @@ from datetime import datetime, timedelta
from bs4 import BeautifulSoup
from .core import ConnectorCore, ConnectorReturn, ConnectorCache, curl_content
from ..utils import parse_date, link_exist_in_db
from .core import ConnectorCache, ConnectorCore, ConnectorReturn, curl_content
from ..utils import link_exist_in_db, parse_date
class AnimeUltime(ConnectorCore):

View File

@ -3,17 +3,14 @@ from enum import Enum
from functools import wraps
from json import dumps, loads
import requests
from requests import RequestException
from redis.exceptions import RedisError
from requests import RequestException, Session
from ..config import CACHE_TIMEOUT, REQUESTS_TIMEOUT, logger, REDIS_ENABLED
from ..config import CACHE_TIMEOUT, REDIS_ENABLED, REQUESTS_TIMEOUT, logger
if REDIS_ENABLED:
from ..config import cache
cloudproxy_session = None
class ConnectorReturn(Enum):
SEARCH = 1
@ -71,28 +68,26 @@ class Cache:
ConnectorCache = Cache()
def curl_content(url, params=None, ajax=False, debug=True, cloudflare=False):
def curl_content(url, params=None, ajax=False, debug=True):
output = ''
http_code = 500
method = 'post' if (params is not None) else 'get'
request = Session()
headers = {}
if ajax:
headers['X-Requested-With'] = 'XMLHttpRequest'
if cloudflare:
headers['User-Agent'] = 'Googlebot/2.1 (+http://www.google.com/bot.html)'
try:
if method == 'post':
response = requests.post(
response = request.post(
url,
params,
timeout=REQUESTS_TIMEOUT,
headers=headers
)
else:
response = requests.get(
response = request.get(
url,
timeout=REQUESTS_TIMEOUT,
headers=headers

View File

@ -1,7 +1,7 @@
from bs4 import BeautifulSoup
from .core import ConnectorCore, ConnectorReturn, ConnectorCache, curl_content
from ..utils import link_exist_in_db, check_blacklist_words, check_if_vf
from .core import ConnectorCache, ConnectorCore, ConnectorReturn, curl_content
from ..utils import check_blacklist_words, check_if_vf, link_exist_in_db
class Nyaa(ConnectorCore):

View File

@ -1,98 +0,0 @@
import re
from datetime import datetime
from urllib.parse import quote
from bs4 import BeautifulSoup
from .core import ConnectorCore, ConnectorReturn, ConnectorCache, curl_content
from ..utils import parse_date, link_exist_in_db, check_blacklist_words, check_if_vf
class YggTorrent(ConnectorCore):
color = 'is-success'
title = 'YggTorrent'
favicon = 'yggtorrent.png'
base_url = 'https://www5.yggtorrent.fi'
is_light = False
category = 2179
def get_full_search_url(self):
sort_type = 'size'
if self.return_type is ConnectorReturn.HISTORY:
sort_type = 'publish_date'
sort_page = '&page=%s' % (
(self.page - 1) * 50
) if self.page > 1 else ''
return '%s/engine/search?name=%s&category=2145&sub_category=%s&do=search&order=desc&sort=%s%s' % (
self.base_url, self.query, self.category, sort_type, sort_page
)
def get_history(self):
self.search()
@ConnectorCache.cache_data
def search(self):
if self.category:
response = curl_content(
self.get_full_search_url(), cloudflare=True
)
if response['http_code'] == 200:
html = BeautifulSoup(response['output'], 'html.parser')
trs = html.select('table.table tr')
valid_trs = 0
for i, tr in enumerate(trs):
if not i:
continue
tds = tr.findAll('td')
check_downloads = int(tds[6].get_text())
check_seeds = int(tds[7].get_text())
if check_downloads or check_seeds:
url = tds[1].a
url_safe = url.get_text()
if check_blacklist_words(url_safe):
continue
valid_trs = valid_trs + 1
self.data.append({
'vf': check_if_vf(url_safe),
'href': url['href'],
'name': url_safe,
'comment': '<a href="%s#comm" target="_blank"><i class="fa fa-comments-o"></i>%s</a>' %
(url['href'], tds[3].decode_contents()),
'link': '<a href="%s/engine/download_torrent?id=%s">'
'<i class="fa fa-fw fa-download"></i>'
'</a>' % (self.base_url,
re.search(r'/(\d+)', url['href']).group(1)),
'size': tds[5].get_text(),
'date': parse_date(datetime.fromtimestamp(int(tds[4].div.get_text()))),
'seeds': check_seeds,
'leechs': tds[8].get_text(),
'downloads': check_downloads,
'class': self.color if link_exist_in_db(quote(url['href'], '/+:')) else ''
})
self.on_error = False
self.is_more = valid_trs and valid_trs != len(trs) - 1
@ConnectorCache.cache_data
def is_vf(self, url):
response = curl_content(url)
if response['http_code'] == 200:
html = BeautifulSoup(response['output'], 'html.parser')
title = html.select('#title h1')
return check_if_vf(title[0].get_text())
return False
class YggAnimation(YggTorrent):
title = 'YggAnimation'
category = 2178

View File

@ -1,5 +1,5 @@
from flask_wtf import FlaskForm
from wtforms import HiddenField, StringField, SelectField
from wtforms import HiddenField, SelectField, StringField
from wtforms.fields.html5 import SearchField, URLField
from wtforms.validators import DataRequired

View File

@ -2,7 +2,7 @@ import re
from datetime import datetime
from dateparser import parse
from .config import DB_ENABLED, BLACKLIST_WORDS
from .config import BLACKLIST_WORDS, DB_ENABLED
def link_exist_in_db(href):

View File

@ -1,13 +1,14 @@
Flask==2.2.2
Flask==2.3.3
Flask-SQLAlchemy==2.5.1
Flask-HTTPAuth==4.7.0
Flask-WTF==1.0.1
Flask-HTTPAuth==4.8.0
Flask-WTF==1.1.2
WTForms==2.3.3
PyMySQL==1.0.2
pg8000==1.29.1
requests==2.28.1
beautifulsoup4==4.11.1
python-dotenv==0.20.0
dateparser==1.1.1
redis==4.3.4
transmission-rpc==3.3.2
PyMySQL==1.1.0
pg8000==1.30.2
requests==2.31.0
charset-normalizer==3.2.0
beautifulsoup4==4.12.2
python-dotenv==1.0.0
dateparser==1.1.8
redis==5.0.1
transmission-rpc==7.0.1