django-restit 4.2.143__py3-none-any.whl → 4.2.144__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_restit-4.2.143.dist-info → django_restit-4.2.144.dist-info}/METADATA +1 -1
- {django_restit-4.2.143.dist-info → django_restit-4.2.144.dist-info}/RECORD +6 -6
- medialib/utils.py +3 -3
- rest/__init__.py +1 -1
- {django_restit-4.2.143.dist-info → django_restit-4.2.144.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.143.dist-info → django_restit-4.2.144.dist-info}/WHEEL +0 -0
@@ -302,7 +302,7 @@ medialib/templates/medialib/testpicker.html,sha256=I7KnrAu9e4kQhuEEN-51HGzcuJ06E
|
|
302
302
|
medialib/tests.py,sha256=z1THDMo-R9HWMvCCOgX6aH6-2W2uWqrtbJ_k-zfpgyc,6045
|
303
303
|
medialib/tq.py,sha256=ZDRBZ9qEsqNAsk48cciLyX7DIziqD2uPEawtQny1Ja8,544
|
304
304
|
medialib/urls.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
305
|
-
medialib/utils.py,sha256=
|
305
|
+
medialib/utils.py,sha256=nHB1g9PuahzVVF8MqDLaxZY8u53Ggtve8nZJKyaIEUA,3810
|
306
306
|
medialib/views.py,sha256=h_Fm3FOX04VV2G-J141wEHxT36d46HVdzPJg_u8r2vI,4321
|
307
307
|
medialib/youtube/__init__.py,sha256=fmu9XPaDpadkb2OuroQsKiWpUPo7c5y8o83HmLLMIHA,4303
|
308
308
|
medialib/youtube/apiclient/__init__.py,sha256=iGdQFKwzm0VxArl8X183-_ZBhIsETZlbXxhBAUz3MfI,601
|
@@ -379,7 +379,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
379
379
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
380
380
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
381
381
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
382
|
-
rest/__init__.py,sha256=
|
382
|
+
rest/__init__.py,sha256=WbQDlSqAn04sJ1Ns67DJScCD43s2A5xHagr1HISnV7I,122
|
383
383
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
384
384
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
385
385
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -515,7 +515,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
515
515
|
ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
|
516
516
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
517
517
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
518
|
-
django_restit-4.2.
|
519
|
-
django_restit-4.2.
|
520
|
-
django_restit-4.2.
|
521
|
-
django_restit-4.2.
|
518
|
+
django_restit-4.2.144.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
519
|
+
django_restit-4.2.144.dist-info/METADATA,sha256=P1p28suzqWk267UAN1dJ0FhlQZe6c3DALCwbPdqC2DQ,7663
|
520
|
+
django_restit-4.2.144.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
521
|
+
django_restit-4.2.144.dist-info/RECORD,,
|
medialib/utils.py
CHANGED
@@ -7,8 +7,8 @@ import hashlib
|
|
7
7
|
|
8
8
|
EXT_MAP = {
|
9
9
|
"V":['mpg', 'mpeg', 'mpe', 'mp4', 'm4v', 'mov', 'qt', '3gp', 'ogv', 'webm', 'flv', 'asf', 'asx', 'wmv', 'mpv', 'mkv', 'avi', 'dat', 'swf'],
|
10
|
-
"I":['jpg', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'tif', 'tiff'],
|
11
|
-
"T":['txt', 'html'],
|
10
|
+
"I":['jpg', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'tif', 'tiff', 'webp', 'ico'],
|
11
|
+
"T":['txt', 'html', 'csv', 'md'],
|
12
12
|
}
|
13
13
|
|
14
14
|
KIND_MAP = {
|
@@ -27,7 +27,7 @@ def guessBase64Kind(data):
|
|
27
27
|
# look at first 16 bytes for ext
|
28
28
|
sample = fromBase64ToBytes(data[:16]).lower() # data[:16]
|
29
29
|
# sample = self.base64_data[:16].decode('base64').lower()
|
30
|
-
for ext in ["png", "jpg", "jpeg", "jfif", "bmp", "gif", "tif"]:
|
30
|
+
for ext in ["png", "jpg", "jpeg", "jfif", "bmp", "gif", "tif", "webp"]:
|
31
31
|
if toBytes(ext) in sample:
|
32
32
|
if ext == "jfif":
|
33
33
|
ext = "jpg"
|
rest/__init__.py
CHANGED
File without changes
|
File without changes
|