quasarr 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl

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.

Potentially problematic release.


This version of quasarr might be problematic. Click here for more details.

quasarr/api/__init__.py CHANGED
@@ -25,7 +25,10 @@ def get_api(shared_state_dict, shared_state_lock):
25
25
 
26
26
  # Auth: routes must come first, then hook
27
27
  add_auth_routes(app)
28
- add_auth_hook(app, whitelist_prefixes=['/api', '/api/', '/sponsors_helper/', '/download/'])
28
+ add_auth_hook(app,
29
+ whitelist_prefixes=['/api', '/api/', '/sponsors_helper/', '/download/'],
30
+ whitelist_suffixes=['.user.js']
31
+ )
29
32
 
30
33
  setup_arr_routes(app)
31
34
  setup_captcha_routes(app)
quasarr/providers/auth.py CHANGED
@@ -273,7 +273,7 @@ def add_auth_routes(app):
273
273
  return _handle_logout()
274
274
 
275
275
 
276
- def add_auth_hook(app, whitelist_prefixes=None):
276
+ def add_auth_hook(app, whitelist_prefixes=None, whitelist_suffixes=None):
277
277
  """Add authentication hook to a Bottle app.
278
278
 
279
279
  Args:
@@ -299,6 +299,11 @@ def add_auth_hook(app, whitelist_prefixes=None):
299
299
  if path.startswith(prefix):
300
300
  return
301
301
 
302
+ # Check whitelist suffixes:
303
+ for suffix in whitelist_suffixes:
304
+ if path.endswith(suffix):
305
+ return
306
+
302
307
  # Check authentication
303
308
  if is_form_auth():
304
309
  if not check_form_auth():
@@ -8,7 +8,7 @@ import requests
8
8
 
9
9
 
10
10
  def get_version():
11
- return "2.1.2"
11
+ return "2.1.3"
12
12
 
13
13
 
14
14
  def get_latest_version():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quasarr
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: Quasarr connects JDownloader with Radarr, Sonarr and LazyLibrarian. It also decrypts links protected by CAPTCHAs.
5
5
  Home-page: https://github.com/rix1337/Quasarr
6
6
  Author: rix1337
@@ -1,5 +1,5 @@
1
1
  quasarr/__init__.py,sha256=cEtxN2AuwKvrxpIvAR7UL997VtYQ4iN3Eo3ZnP-WjZQ,14682
2
- quasarr/api/__init__.py,sha256=EEQSC7OKDyZYjMpzuz1T7bOFR9J54NhP_04XcULIvGM,16296
2
+ quasarr/api/__init__.py,sha256=yrDJM0qxmsOruOyqUwhSmmaT6E3DLK-yPy7Lutk1WYM,16384
3
3
  quasarr/api/arr/__init__.py,sha256=eEop8A5t936uT5azn4qz0bq1DMX84_Ja16wyleGFhyM,18495
4
4
  quasarr/api/captcha/__init__.py,sha256=2pca9jnJMWZECHeAvKP9Lwsa3_GkVsvQEn7rof8Ep1s,73504
5
5
  quasarr/api/config/__init__.py,sha256=HDoqRv6El-e5iejVpwEz6ttySjDeiTQGom5D__nachU,13682
@@ -30,7 +30,7 @@ quasarr/downloads/sources/sl.py,sha256=jWprFt1Hew1T67fB1O_pc9YWgc3NVh30KXSwSyS50
30
30
  quasarr/downloads/sources/wd.py,sha256=kr1I1uJa7ZkEPH2LA6alXTJEn0LBPgLCwIh3wLXwCv8,4447
31
31
  quasarr/downloads/sources/wx.py,sha256=NzNNeqVL6sKkFKyreW-oerrreb5QP2tUGHTWHM5pMCU,7013
32
32
  quasarr/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- quasarr/providers/auth.py,sha256=eWYXyw_q0v2rMihiAlltqFF8V0Epu_s63ye1Th4i5Tg,10372
33
+ quasarr/providers/auth.py,sha256=h0GuqLSvzzH0lduMXxVVs6OMYFBM8YBnamtZsRF7Ny8,10537
34
34
  quasarr/providers/cloudflare.py,sha256=9iet8runc2VHVcA0_2z1qkrL6D5JKqz1ndktqCgsJFs,7873
35
35
  quasarr/providers/html_images.py,sha256=2n82gTJg7E7q2ytPFN4FWouYTIlmPYu_iHFtG7uktIA,28482
36
36
  quasarr/providers/html_templates.py,sha256=22g3WhAmwDQgMqaXirVaFF1LtlSxHS-Fjm2gpRcbMNg,12463
@@ -43,7 +43,7 @@ quasarr/providers/obfuscated.py,sha256=d0dxu3oPqDqN8I7qmGPPIBqjLzTQbZTQsLAZ5auw1
43
43
  quasarr/providers/shared_state.py,sha256=5a_ZbGqTvt4-OqBt2a1WtR9I5J_Ky7IlkEY8EGtKVu8,30646
44
44
  quasarr/providers/statistics.py,sha256=cEQixYnDMDqtm5wWe40E_2ucyo4mD0n3SrfelhQi1L8,6452
45
45
  quasarr/providers/utils.py,sha256=mcUPbcXMsLmrYv0CTZO5a9aOt2-JLyL3SZxu6N8OyjU,12075
46
- quasarr/providers/version.py,sha256=_j_KhmgUu-CE4O_-aL3DAyrzwvkeTUXg6-wLhD-1Z6Y,4003
46
+ quasarr/providers/version.py,sha256=ann8tOgDNixaxy3D0ASth3qD5mrqZy1_0RWcpePM5Rw,4003
47
47
  quasarr/providers/web_server.py,sha256=AYd0KRxdDWMBr87BP8wlSMuL4zZo0I_rY-vHBai6Pfg,1688
48
48
  quasarr/providers/sessions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  quasarr/providers/sessions/al.py,sha256=WXue9LaT4y0BzsbKtHbN6bb_72c4AZZWR9NP-vg9-cg,12462
@@ -73,9 +73,9 @@ quasarr/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  quasarr/storage/config.py,sha256=SSTgIce2FVYoVTK_6OCU3msknhxuLA3EC4Kcrrf_dxQ,6378
74
74
  quasarr/storage/setup.py,sha256=eXtgUqMacbaUDy-dszPtT15O9lJKSO1eI3v0jGjMiUA,42361
75
75
  quasarr/storage/sqlite_database.py,sha256=yMqFQfKf0k7YS-6Z3_7pj4z1GwWSXJ8uvF4IydXsuTE,3554
76
- quasarr-2.1.2.dist-info/licenses/LICENSE,sha256=QQFCAfDgt7lSA8oSWDHIZ9aTjFbZaBJdjnGOHkuhK7k,1060
77
- quasarr-2.1.2.dist-info/METADATA,sha256=u3iuK1WwbY0hV84T2qJF1P3awC_vlq7ZcLGdsY8A5XA,14914
78
- quasarr-2.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- quasarr-2.1.2.dist-info/entry_points.txt,sha256=gXi8mUKsIqKVvn-bOc8E5f04sK_KoMCC-ty6b2Hf-jc,40
80
- quasarr-2.1.2.dist-info/top_level.txt,sha256=dipJdaRda5ruTZkoGfZU60bY4l9dtPlmOWwxK_oGSF0,8
81
- quasarr-2.1.2.dist-info/RECORD,,
76
+ quasarr-2.1.3.dist-info/licenses/LICENSE,sha256=QQFCAfDgt7lSA8oSWDHIZ9aTjFbZaBJdjnGOHkuhK7k,1060
77
+ quasarr-2.1.3.dist-info/METADATA,sha256=2CGHsGgnLrJgv0pboVyhAiKE9Sfy6RzfX3hGoD2DhHo,14914
78
+ quasarr-2.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ quasarr-2.1.3.dist-info/entry_points.txt,sha256=gXi8mUKsIqKVvn-bOc8E5f04sK_KoMCC-ty6b2Hf-jc,40
80
+ quasarr-2.1.3.dist-info/top_level.txt,sha256=dipJdaRda5ruTZkoGfZU60bY4l9dtPlmOWwxK_oGSF0,8
81
+ quasarr-2.1.3.dist-info/RECORD,,