mss-python 0.2.3__py3-none-any.whl → 0.2.4__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.
mss_python/_version.py CHANGED
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.2.3'
22
- __version_tuple__ = version_tuple = (0, 2, 3)
21
+ __version__ = version = '0.2.4'
22
+ __version_tuple__ = version_tuple = (0, 2, 4)
23
23
 
24
24
  __commit_id__ = commit_id = None
mss_python/client.py CHANGED
@@ -32,17 +32,6 @@ def change_structure(root: Root, child: BaseType):
32
32
  return root
33
33
 
34
34
 
35
- # Replace all picture urls with the new, cdn ones
36
- def replace_picture_urls(path, key, value):
37
- if key == "url" and path[-2][0] == "picture":
38
- return key, value.replace(
39
- "https://easychannel.it/mss/mss_renderimg.php?",
40
- "https://cdn.easychannel.it/mss/mss_renderimg.php?",
41
- )
42
- else:
43
- return key, value
44
-
45
-
46
35
  class Client:
47
36
  def __init__(
48
37
  self, cred: Credentials, lang: list, elements: list | None = None
@@ -81,9 +70,7 @@ class Client:
81
70
  headers={"Content-Type": "application/xml"},
82
71
  )
83
72
 
84
- responseRoot = xmltodict.parse(
85
- response.content, postprocessor=replace_picture_urls
86
- )
73
+ responseRoot = xmltodict.parse(response.content)
87
74
  error = responseRoot["root"]["header"]["error"]
88
75
  if int(error["code"]) > 0:
89
76
  raise Exception(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mss-python
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: MSS API wrapper for Python projects
5
5
  Author: Rubin Canaj
6
6
  Author-email: HGV <development@hgv.it>
@@ -0,0 +1,11 @@
1
+ mss_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mss_python/_version.py,sha256=oIZQE-4i_2bThWVLsbnRskxqsRwrfcev8lVgZK6VSzM,520
3
+ mss_python/client.py,sha256=xZzS7Z8M5PhehybTvvd80z1egglaKdmNf12OFJ9Fy4Y,3235
4
+ mss_python/request/method_names.py,sha256=DP22Tra-F86FP-6771q7bDwuX6ojPCidFPzztl4UThI,1030
5
+ mss_python/request/methods.py,sha256=pu_U6z8ANktuv0r3P6MmLKW66fwRhiDCp261vNxqrYE,664
6
+ mss_python/request/types_mss.py,sha256=Xq9YYA5-f_j2Gt7bCcHSC6qEzHs0hswpoXm2IGB9SdA,22354
7
+ mss_python-0.2.4.dist-info/licenses/LICENSE,sha256=SxLvAIuAvi2G5v6pRCopG3gAH9SLL_-xACJ0QBz_Blw,1074
8
+ mss_python-0.2.4.dist-info/METADATA,sha256=iFvK_I2rSZg2mYWfIUaLYaVuRBV1cPSyA-cIBVgVi5o,3065
9
+ mss_python-0.2.4.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
10
+ mss_python-0.2.4.dist-info/top_level.txt,sha256=-5Wm4NpowVgq9ImH61vhAiBQFoE21fg4r-7Pn7mOYyE,11
11
+ mss_python-0.2.4.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- mss_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mss_python/_version.py,sha256=yBpRAzc1O-fFxRL6MELR93JAnRVchbETxkSjTfqgm_w,520
3
- mss_python/client.py,sha256=Vles3gKsXWGqwyvfRequYv9vPcQ6iJAJIPrriYSXWtM,3646
4
- mss_python/request/method_names.py,sha256=DP22Tra-F86FP-6771q7bDwuX6ojPCidFPzztl4UThI,1030
5
- mss_python/request/methods.py,sha256=pu_U6z8ANktuv0r3P6MmLKW66fwRhiDCp261vNxqrYE,664
6
- mss_python/request/types_mss.py,sha256=Xq9YYA5-f_j2Gt7bCcHSC6qEzHs0hswpoXm2IGB9SdA,22354
7
- mss_python-0.2.3.dist-info/licenses/LICENSE,sha256=SxLvAIuAvi2G5v6pRCopG3gAH9SLL_-xACJ0QBz_Blw,1074
8
- mss_python-0.2.3.dist-info/METADATA,sha256=NeJm_kWFa37UoXX5bM4RbApbVuyDOYhPQ-CgFGO_ekA,3065
9
- mss_python-0.2.3.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
10
- mss_python-0.2.3.dist-info/top_level.txt,sha256=-5Wm4NpowVgq9ImH61vhAiBQFoE21fg4r-7Pn7mOYyE,11
11
- mss_python-0.2.3.dist-info/RECORD,,