pyxtream 0.7.0__tar.gz → 0.7.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyxtream
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: xtream IPTV loader
5
5
  Home-page: https://github.com/superolmo/pyxtream
6
6
  Author: Claudio Olmi
@@ -132,6 +132,7 @@ xTream.movies[{},{},...]
132
132
 
133
133
  | Date | Version | Description |
134
134
  | ----------- | -----| ----------- |
135
+ | 2024-05-21 | 0.7.1 | - Fixed missing jsonschema package<br>- Fixed provider name in functional_test<br>- Improved print out of connection attempts<br>- Added method to read latest changes in functional_test
135
136
  | 2023-11-08 | 0.7.0 | - Added Schema Validator<br>- Added Channel Age<br>- Added list of movies added in the last 30 and 7 days<br>- Updated code based on PyLint<br>- Fixed Flask package to be optional [richard-de-vos](https://github.com/richard-de-vos)|
136
137
  | 2023-02-06 | 0.6.0 | - Added methods to change connection header, to turn off reload timer, and to enable/disable Flask debug mode<br>- Added a loop when attempting to connect to the provider <br>- Cleaned up some print lines|
137
138
  | 2021-08-19 | 0.5.0 | - Added method to gracefully handle connection errors<br>- Added setting to not load adult content<br>- Added sorting by stream name<br>- Changed the handling of special characters in streams<br>- Changed print formatting<br>- Changed index.html webpage to HTML5 and Bootstrap 5|
@@ -112,6 +112,7 @@ xTream.movies[{},{},...]
112
112
 
113
113
  | Date | Version | Description |
114
114
  | ----------- | -----| ----------- |
115
+ | 2024-05-21 | 0.7.1 | - Fixed missing jsonschema package<br>- Fixed provider name in functional_test<br>- Improved print out of connection attempts<br>- Added method to read latest changes in functional_test
115
116
  | 2023-11-08 | 0.7.0 | - Added Schema Validator<br>- Added Channel Age<br>- Added list of movies added in the last 30 and 7 days<br>- Updated code based on PyLint<br>- Fixed Flask package to be optional [richard-de-vos](https://github.com/richard-de-vos)|
116
117
  | 2023-02-06 | 0.6.0 | - Added methods to change connection header, to turn off reload timer, and to enable/disable Flask debug mode<br>- Added a loop when attempting to connect to the provider <br>- Cleaned up some print lines|
117
118
  | 2021-08-19 | 0.5.0 | - Added method to gracefully handle connection errors<br>- Added setting to not load adult content<br>- Added sorting by stream name<br>- Changed the handling of special characters in streams<br>- Changed print formatting<br>- Changed index.html webpage to HTML5 and Bootstrap 5|
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools", "distutils.util"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name='pyxtream',
7
+ description="xtream IPTV loader",
8
+ urls="https://github.com/superolmo/pyxtream",
9
+ license="LICENSE",
10
+ classifiers=[
11
+ "Development Status :: 4 - Beta",
12
+ "Environment :: Console",
13
+ "Intended Audience :: Developers",
14
+ "Programming Language :: Python :: 3 :: Only",
15
+ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
16
+ "Operating System :: OS Independent",
17
+ "Natural Language :: English"
18
+ ],
19
+ optional-dependencies={ "REST_API": ["Flask>=1.1.2",] }
20
+ dynamic=["version", "authors", "author_email","readme"]
21
+
22
+ packages=find_packages(),
@@ -583,6 +583,7 @@ class XTream:
583
583
  r = None
584
584
  # Prepare the authentication url
585
585
  url = f"{self.server}/player_api.php?username={self.username}&password={self.password}"
586
+ print(f"Attempting connection: ", end='')
586
587
  while i < 30:
587
588
  try:
588
589
  # Request authentication, wait 4 seconds maximum
@@ -590,7 +591,7 @@ class XTream:
590
591
  i = 31
591
592
  except requests.exceptions.ConnectionError:
592
593
  time.sleep(1)
593
- print(i)
594
+ print(f"{i} ", end='',flush=True)
594
595
  i += 1
595
596
 
596
597
  if r is not None:
@@ -612,7 +613,7 @@ class XTream:
612
613
  else:
613
614
  print(f"Provider `{self.name}` could not be loaded. Reason: `{r.status_code} {r.reason}`")
614
615
  else:
615
- print(f"{self.name}: Provider refused the connection")
616
+ print(f"\n{self.name}: Provider refused the connection")
616
617
 
617
618
  def _load_from_file(self, filename) -> dict:
618
619
  """Try to load the dictionary from file
@@ -1,4 +1,4 @@
1
1
 
2
- __version__ = '0.7.0'
2
+ __version__ = '0.7.1'
3
3
  __author__ = 'Claudio Olmi'
4
4
  __author_email__ = 'superolmo2@gmail.com'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyxtream
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: xtream IPTV loader
5
5
  Home-page: https://github.com/superolmo/pyxtream
6
6
  Author: Claudio Olmi
@@ -132,6 +132,7 @@ xTream.movies[{},{},...]
132
132
 
133
133
  | Date | Version | Description |
134
134
  | ----------- | -----| ----------- |
135
+ | 2024-05-21 | 0.7.1 | - Fixed missing jsonschema package<br>- Fixed provider name in functional_test<br>- Improved print out of connection attempts<br>- Added method to read latest changes in functional_test
135
136
  | 2023-11-08 | 0.7.0 | - Added Schema Validator<br>- Added Channel Age<br>- Added list of movies added in the last 30 and 7 days<br>- Updated code based on PyLint<br>- Fixed Flask package to be optional [richard-de-vos](https://github.com/richard-de-vos)|
136
137
  | 2023-02-06 | 0.6.0 | - Added methods to change connection header, to turn off reload timer, and to enable/disable Flask debug mode<br>- Added a loop when attempting to connect to the provider <br>- Cleaned up some print lines|
137
138
  | 2021-08-19 | 0.5.0 | - Added method to gracefully handle connection errors<br>- Added setting to not load adult content<br>- Added sorting by stream name<br>- Changed the handling of special characters in streams<br>- Changed print formatting<br>- Changed index.html webpage to HTML5 and Bootstrap 5|
@@ -1,5 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
+ pyproject.toml
3
4
  setup.py
4
5
  pyxtream/__init__.py
5
6
  pyxtream/progress.py
@@ -30,6 +30,9 @@ setup(
30
30
  "Operating System :: OS Independent",
31
31
  "Natural Language :: English"
32
32
  ],
33
+ install_require=[
34
+ 'jsonschema'
35
+ ],
33
36
  extras_require={
34
37
  "REST_API": ["Flask>=1.1.2",],
35
38
  }
File without changes
File without changes
File without changes
File without changes
File without changes