anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: castagnait/plugin.video.netflix
Issue: Stream fails to start with v1.20.0 - License update not successful (no keys) - Problem is return

### Netflix add-on version

v1.20.0

### Operative systems used

Raspbian

### Kodi version used

Kodi 19 (Matrix)

### Description of the bug

Starting a stream fails with error: One or more items failed to play check the log for more information about this message.

The license problem is back with the last version (v1.20.0). I get an error message after starting playback. Restored plugin.video.netflix_1.19.0+matrix.1_20221004_t1 version and all is good again. But when I upgrade to 1.20.0, the playback does not start, there is an error. I use it on Raspberry PI 4 with Raspbian. (Sorry for my poor english!)



### Steps to reproduce the behavior

_No response_

### Debug log - mandatory

https://paste.kodi.tv/eqatajevil.kodi

### Possible fix

_No response_

### Additional context

_No response_

### Screenshots

_No response_

Changed files:
resources/lib/services/nfsession/msl/msl_handler.py

diff --git a/resources/lib/services/nfsession/msl/msl_handler.py b/resources/lib/services/nfsession/msl/msl_handler.py
index 782ede8b..5906d992 100644
--- a/resources/lib/services/nfsession/msl/msl_handler.py
+++ b/resources/lib/services/nfsession/msl/msl_handler.py
@@ -270,9 +270,14 @@ class MSLHandler:
             # - 'standard' no license data provided in the manifest response
             # TODO: Currently on linux only the license type set to "limited" cause this error on ISA:
             #  License update not successful (no keys)
-            'licenseType': 'standard',
-            'xid': kwargs['xid']
+            'licenseType': 'standard'
         }
+        # 30/10/2022 on linux xid must be specified on the challenge dict
+        # otherwise ISA raise error: License update not successful (no keys)
+        if common.get_system_platform() == 'linux':
+            params['challenges']['default'][0]['xid'] = kwargs['xid']
+        else:
+            params['xid'] = kwargs['xid']
 
         endpoint_url = ENDPOINTS['manifest'] + create_req_params('licensedManifest')
         request_data = self.msl_requests.build_request_data('licensedManifest', params)
Repository: castagnait/plugin.video.netflix
Issue: Stream fails to start with v1.19.0 - License update not successful (no keys)

### Netflix add-on version

1.19.0

### Operative systems used

LibreELEC

### Kodi version used

Kodi 19 (Matrix)

### Description of the bug

Starting a stream fails with error: One or more items failed to play check the log for more information about this message.
There seems to be a problem with adaptive Inputstream.

### Steps to reproduce the behavior

_No response_

### Debug log - mandatory

https://paste.kodi.tv/nahiwipire.kodi

### Possible fix

_No response_

### Additional context

_No response_

### Screenshots

_No response_

Changed files:
resources/lib/services/nfsession/msl/msl_handler.py

diff --git a/resources/lib/services/nfsession/msl/msl_handler.py b/resources/lib/services/nfsession/msl/msl_handler.py
index 4c49c487..04e66d96 100644
--- a/resources/lib/services/nfsession/msl/msl_handler.py
+++ b/resources/lib/services/nfsession/msl/msl_handler.py
@@ -269,7 +269,9 @@ class MSLHandler:
             # License type:
             # - 'limited' license data provided in the manifest response, may be needed a second license request
             # - 'standard' no license data provided in the manifest response
-            'licenseType': 'limited'
+            # TODO: Currently on linux only the license type set to "limited" cause this error on ISA:
+            #  License update not successful (no keys)
+            'licenseType': 'standard'
         }
 
         endpoint_url = ENDPOINTS['manifest'] + create_req_params('licensedManifest')
Repository: bczsalba/pytermgui
Issue: [BUG] `getch` in `_get_pixel_size` hangs when terminal doesn't have the feature implemented

**Describe the bug**
Calling `import pytermgui` spawns a `Terminal`; on Windows terminals (tested: Windows Terminal, Powershell, and the built-in VS Code terminal), the Terminal constructor attempts to call `_get_pixel_size` after sending the (ignored) ANSI terminal command `[14t`, to which Windows terminals do not respond. The resulting `getch` call blocks until a key is pressed.

**To Reproduce**
Steps to reproduce the behavior:

1. On Windows, start any Python file containing `import pytermgui`, within Powershell or Windows Terminal.
2. Further Python code does not run until you push any key, which causes the `getch` call to return (and set pixel size = (0,0) due to it not finding a `;`).

**Expected behavior**
On terminals that don't support ANSI terminal commands, don't hang trying to get pixel size.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**System information**

```
PyTermGUI v3.2.1

Python: 3.9.4
Platform: Windows-10-10.0.19041-SP0
```

**Possible solution**
Is it sufficient to add an additional check to get_chars (line 135 in input.py) that checks `msvcrt.kbhit()` prior to any `getch` call, and returns an empty buffer if `kbhit` returns false?

Changed files:
pytermgui/input.py

diff --git a/pytermgui/input.py b/pytermgui/input.py
index 9906f83..3ef6bba 100644
--- a/pytermgui/input.py
+++ b/pytermgui/input.py
@@ -132,6 +132,9 @@ class _GetchWindows:
 
         # We need to type: ignore these on non-windows machines,
         # as the library does not exist.
+        if not msvcrt.kbhit():
+            # Return empty string if there is no input to get
+            return str()
         char = msvcrt.getch()  # type: ignore
         if char == b"\\xe0":
             char = "\\x1b"