prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  tv360.com.tr no playable stream
  ## Bug Report
  - [x] This is a bug report and I have read the contribution guidelines.
  
  ### Description
  
  can't find playable stream.
  
  ### Expected / Actual behavior
  
  stream supposed to be found
  
  ### Reproduction steps / Explicit stream URLs to test
  
  ``` 1. streamlink https://www.tv360.com.tr/canli-yayin ```
  
  ### Log output
  
  ```
  [cli][debug] OS:         Windows 10
  [cli][debug] Python:     3.8.2
  [cli][debug] Streamlink: 1.5.0
  [cli][debug] Requests(2.24.0), Socks(1.7.1), Websocket(0.57.0)
  [cli][info] Found matching plugin tv360 for URL tv360.com.tr/canli-yayin
  error: No playable streams found on this URL: tv360.com.tr/canli-yayin
  ```
  
  
  ### Additional comments, screenshots, etc.
  
  
  
  [Love Streamlink? Please consider supporting our collective. Thanks!](https://opencollective.com/streamlink/donate)
  
  
  </issue>
  <code>
  [start of src/streamlink/plugins/tv360.py]
  1 from __future__ import print_function
  2 
  3 import re
  4 
  5 from streamlink.plugin import Plugin
  6 from streamlink.plugin.api import validate
  7 from streamlink.stream import HLSStream
  8 
  9 
  10 class TV360(Plugin):
  11     url_re = re.compile(r"https?://(?:www.)?tv360.com.tr/canli-yayin")
  12     hls_re = re.compile(r'''hls.loadSource\(["'](http.*m3u8)["']\)''', re.DOTALL)
  13 
  14     hls_schema = validate.Schema(
  15         validate.transform(hls_re.search),
  16         validate.any(None, validate.all(validate.get(1)))
  17     )
  18 
  19     @classmethod
  20     def can_handle_url(cls, url):
  21         return cls.url_re.match(url) is not None
  22 
  23     def _get_streams(self):
  24         res = self.session.http.get(self.url)
  25         hls_url = self.hls_re.search(res.text)
  26 
  27         if hls_url:
  28             return HLSStream.parse_variant_playlist(self.session, hls_url.group(1))
  29 
  30 
  31 __plugin__ = TV360
  32
  [end of src/streamlink/plugins/tv360.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/src/streamlink/plugins/tv360.py b/src/streamlink/plugins/tv360.py
  --- a/src/streamlink/plugins/tv360.py
  +++ b/src/streamlink/plugins/tv360.py
  @@ -1,5 +1,3 @@
  -from __future__ import print_function
  -
   import re
   
   from streamlink.plugin import Plugin
  @@ -9,11 +7,11 @@
   
   class TV360(Plugin):
       url_re = re.compile(r"https?://(?:www.)?tv360.com.tr/canli-yayin")
  -    hls_re = re.compile(r'''hls.loadSource\(["'](http.*m3u8)["']\)''', re.DOTALL)
  +    hls_re = re.compile(r'''src="(http.*m3u8)"''')
   
       hls_schema = validate.Schema(
           validate.transform(hls_re.search),
  -        validate.any(None, validate.all(validate.get(1)))
  +        validate.any(None, validate.all(validate.get(1), validate.url()))
       )
   
       @classmethod
  @@ -21,11 +19,10 @@
           return cls.url_re.match(url) is not None
   
       def _get_streams(self):
  -        res = self.session.http.get(self.url)
  -        hls_url = self.hls_re.search(res.text)
  +        hls_url = self.session.http.get(self.url, schema=self.hls_schema)
   
           if hls_url:
  -            return HLSStream.parse_variant_playlist(self.session, hls_url.group(1))
  +            return HLSStream.parse_variant_playlist(self.session, hls_url)
   
   
   __plugin__ = TV360
  
verification_info: {"golden_diff": "diff --git a/src/streamlink/plugins/tv360.py b/src/streamlink/plugins/tv360.py\n--- a/src/streamlink/plugins/tv360.py\n+++ b/src/streamlink/plugins/tv360.py\n@@ -1,5 +1,3 @@\n-from __future__ import print_function\n-\n import re\n \n from streamlink.plugin import Plugin\n@@ -9,11 +7,11 @@\n \n class TV360(Plugin):\n     url_re = re.compile(r\"https?://(?:www.)?tv360.com.tr/canli-yayin\")\n-    hls_re = re.compile(r'''hls.loadSource\\([\"'](http.*m3u8)[\"']\\)''', re.DOTALL)\n+    hls_re = re.compile(r'''src=\"(http.*m3u8)\"''')\n \n     hls_schema = validate.Schema(\n         validate.transform(hls_re.search),\n-        validate.any(None, validate.all(validate.get(1)))\n+        validate.any(None, validate.all(validate.get(1), validate.url()))\n     )\n \n     @classmethod\n@@ -21,11 +19,10 @@\n         return cls.url_re.match(url) is not None\n \n     def _get_streams(self):\n-        res = self.session.http.get(self.url)\n-        hls_url = self.hls_re.search(res.text)\n+        hls_url = self.session.http.get(self.url, schema=self.hls_schema)\n \n         if hls_url:\n-            return HLSStream.parse_variant_playlist(self.session, hls_url.group(1))\n+            return HLSStream.parse_variant_playlist(self.session, hls_url)\n \n \n __plugin__ = TV360\n", "issue": "tv360.com.tr no playable stream\n## Bug Report\r\n- [x] This is a bug report and I have read the contribution guidelines.\r\n\r\n### Description\r\n\r\ncan't find playable stream.\r\n\r\n### Expected / Actual behavior\r\n\r\nstream supposed to be found\r\n\r\n### Reproduction steps / Explicit stream URLs to test\r\n\r\n``` 1. streamlink https://www.tv360.com.tr/canli-yayin ```\r\n\r\n### Log output\r\n\r\n```\r\n[cli][debug] OS:         Windows 10\r\n[cli][debug] Python:     3.8.2\r\n[cli][debug] Streamlink: 1.5.0\r\n[cli][debug] Requests(2.24.0), Socks(1.7.1), Websocket(0.57.0)\r\n[cli][info] Found matching plugin tv360 for URL tv360.com.tr/canli-yayin\r\nerror: No playable streams found on this URL: tv360.com.tr/canli-yayin\r\n```\r\n\r\n\r\n### Additional comments, screenshots, etc.\r\n\r\n\r\n\r\n[Love Streamlink? Please consider supporting our collective. Thanks!](https://opencollective.com/streamlink/donate)\r\n\n", "before_files": [{"content": "from __future__ import print_function\n\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass TV360(Plugin):\n    url_re = re.compile(r\"https?://(?:www.)?tv360.com.tr/canli-yayin\")\n    hls_re = re.compile(r'''hls.loadSource\\([\"'](http.*m3u8)[\"']\\)''', re.DOTALL)\n\n    hls_schema = validate.Schema(\n        validate.transform(hls_re.search),\n        validate.any(None, validate.all(validate.get(1)))\n    )\n\n    @classmethod\n    def can_handle_url(cls, url):\n        return cls.url_re.match(url) is not None\n\n    def _get_streams(self):\n        res = self.session.http.get(self.url)\n        hls_url = self.hls_re.search(res.text)\n\n        if hls_url:\n            return HLSStream.parse_variant_playlist(self.session, hls_url.group(1))\n\n\n__plugin__ = TV360\n", "path": "src/streamlink/plugins/tv360.py"}]}