prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Fox.com.tr not work with Streamlink
  ## **Checklist**
  
  - [x] This is a bug report.
  - [ ] This is a feature request.
  - [ ] ] This is a plugin (improvement) request.
  - [ ] I have read the contribution guidelines.
  
  ##  **Description**
  
   i cant see anything at fox.com.tr 
   i have test it with this links but i became black screen 
  
  ## **Reproduction steps / Explicit stream URLs to test**
  
  https://www.fox.com.tr/canli-yayin
  
  </issue>
  <code>
  [start of src/streamlink/plugins/foxtr.py]
  1 from __future__ import print_function
  2 import re
  3 
  4 from streamlink.plugin import Plugin
  5 from streamlink.plugin.api import http
  6 from streamlink.plugin.api import validate
  7 from streamlink.stream import HLSStream
  8 
  9 
  10 class FoxTR(Plugin):
  11     """
  12     Support for Turkish Fox live stream: http://www.fox.com.tr/canli-yayin
  13     """
  14     url_re = re.compile(r"https?://www.fox.com.tr/canli-yayin")
  15     playervars_re = re.compile(r"desktop\s*:\s*\[\s*\{\s*src\s*:\s*'(.*?)'", re.DOTALL)
  16 
  17     @classmethod
  18     def can_handle_url(cls, url):
  19         return cls.url_re.match(url) is not None
  20 
  21     def _get_streams(self):
  22         res = http.get(self.url)
  23         match = self.playervars_re.search(res.text)
  24         if match:
  25             stream_url = match.group(1)
  26             return HLSStream.parse_variant_playlist(self.session, stream_url)
  27 
  28 
  29 __plugin__ = FoxTR
  30
  [end of src/streamlink/plugins/foxtr.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/foxtr.py b/src/streamlink/plugins/foxtr.py
  --- a/src/streamlink/plugins/foxtr.py
  +++ b/src/streamlink/plugins/foxtr.py
  @@ -12,7 +12,7 @@
       Support for Turkish Fox live stream: http://www.fox.com.tr/canli-yayin
       """
       url_re = re.compile(r"https?://www.fox.com.tr/canli-yayin")
  -    playervars_re = re.compile(r"desktop\s*:\s*\[\s*\{\s*src\s*:\s*'(.*?)'", re.DOTALL)
  +    playervars_re = re.compile(r"source\s*:\s*\[\s*\{\s*videoSrc\s*:\s*'(.*?)'", re.DOTALL)
   
       @classmethod
       def can_handle_url(cls, url):
  
verification_info: {"golden_diff": "diff --git a/src/streamlink/plugins/foxtr.py b/src/streamlink/plugins/foxtr.py\n--- a/src/streamlink/plugins/foxtr.py\n+++ b/src/streamlink/plugins/foxtr.py\n@@ -12,7 +12,7 @@\n     Support for Turkish Fox live stream: http://www.fox.com.tr/canli-yayin\n     \"\"\"\n     url_re = re.compile(r\"https?://www.fox.com.tr/canli-yayin\")\n-    playervars_re = re.compile(r\"desktop\\s*:\\s*\\[\\s*\\{\\s*src\\s*:\\s*'(.*?)'\", re.DOTALL)\n+    playervars_re = re.compile(r\"source\\s*:\\s*\\[\\s*\\{\\s*videoSrc\\s*:\\s*'(.*?)'\", re.DOTALL)\n \n     @classmethod\n     def can_handle_url(cls, url):\n", "issue": "Fox.com.tr not work with Streamlink\n## **Checklist**\r\n\r\n- [x] This is a bug report.\r\n- [ ] This is a feature request.\r\n- [ ] ] This is a plugin (improvement) request.\r\n- [ ] I have read the contribution guidelines.\r\n\r\n##  **Description**\r\n\r\n i cant see anything at fox.com.tr \r\n i have test it with this links but i became black screen \r\n\r\n## **Reproduction steps / Explicit stream URLs to test**\r\n\r\nhttps://www.fox.com.tr/canli-yayin\n", "before_files": [{"content": "from __future__ import print_function\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass FoxTR(Plugin):\n    \"\"\"\n    Support for Turkish Fox live stream: http://www.fox.com.tr/canli-yayin\n    \"\"\"\n    url_re = re.compile(r\"https?://www.fox.com.tr/canli-yayin\")\n    playervars_re = re.compile(r\"desktop\\s*:\\s*\\[\\s*\\{\\s*src\\s*:\\s*'(.*?)'\", re.DOTALL)\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 = http.get(self.url)\n        match = self.playervars_re.search(res.text)\n        if match:\n            stream_url = match.group(1)\n            return HLSStream.parse_variant_playlist(self.session, stream_url)\n\n\n__plugin__ = FoxTR\n", "path": "src/streamlink/plugins/foxtr.py"}]}