prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [bug] Tv1channel plugin no longer works
  ## Bug Report
  <!-- Replace [ ] with [x] in order to check the box -->
  - [x] This is a bug report and I have read the contribution guidelines.
  
  ### Reproduction steps / Explicit stream URLs to test
  
  http://tv1channel.org/index.php/livetv fails to open. Stream seems to have moved away to a m3u8 link - either a quick fix or just remove the plugin as it is covered by one of the main plugins.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/streamlink/plugins/tv1channel.py`
  Content:
  ```
  1 import re
  2 
  3 from streamlink.plugin import Plugin
  4 from streamlink.plugin.api import useragents
  5 from streamlink.plugin.api.utils import itertags
  6 from streamlink.stream import HLSStream
  7 
  8 
  9 class TV1Channel(Plugin):
  10     _url_re = re.compile(r'https?://(?:www\.)?tv1channel\.org/(?!play/)(?:index\.php/livetv)?')
  11 
  12     @classmethod
  13     def can_handle_url(cls, url):
  14         return cls._url_re.match(url) is not None
  15 
  16     def _get_streams(self):
  17         self.session.http.headers.update({'User-Agent': useragents.FIREFOX})
  18         res = self.session.http.get(self.url)
  19         for iframe in itertags(res.text, 'iframe'):
  20             if 'cdn.netbadgers.com' not in iframe.attributes.get('src'):
  21                 continue
  22 
  23             res = self.session.http.get(iframe.attributes.get('src'))
  24             for source in itertags(res.text, 'source'):
  25                 if source.attributes.get('src') and source.attributes.get('src').endswith('.m3u8'):
  26                     return HLSStream.parse_variant_playlist(self.session,
  27                                                             source.attributes.get('src'))
  28 
  29             break
  30 
  31 
  32 __plugin__ = TV1Channel
  33
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/src/streamlink/plugins/tv1channel.py b/src/streamlink/plugins/tv1channel.py
  deleted file mode 100644
  --- a/src/streamlink/plugins/tv1channel.py
  +++ /dev/null
  @@ -1,32 +0,0 @@
  -import re
  -
  -from streamlink.plugin import Plugin
  -from streamlink.plugin.api import useragents
  -from streamlink.plugin.api.utils import itertags
  -from streamlink.stream import HLSStream
  -
  -
  -class TV1Channel(Plugin):
  -    _url_re = re.compile(r'https?://(?:www\.)?tv1channel\.org/(?!play/)(?:index\.php/livetv)?')
  -
  -    @classmethod
  -    def can_handle_url(cls, url):
  -        return cls._url_re.match(url) is not None
  -
  -    def _get_streams(self):
  -        self.session.http.headers.update({'User-Agent': useragents.FIREFOX})
  -        res = self.session.http.get(self.url)
  -        for iframe in itertags(res.text, 'iframe'):
  -            if 'cdn.netbadgers.com' not in iframe.attributes.get('src'):
  -                continue
  -
  -            res = self.session.http.get(iframe.attributes.get('src'))
  -            for source in itertags(res.text, 'source'):
  -                if source.attributes.get('src') and source.attributes.get('src').endswith('.m3u8'):
  -                    return HLSStream.parse_variant_playlist(self.session,
  -                                                            source.attributes.get('src'))
  -
  -            break
  -
  -
  -__plugin__ = TV1Channel
  
verification_info: {"golden_diff": "diff --git a/src/streamlink/plugins/tv1channel.py b/src/streamlink/plugins/tv1channel.py\ndeleted file mode 100644\n--- a/src/streamlink/plugins/tv1channel.py\n+++ /dev/null\n@@ -1,32 +0,0 @@\n-import re\n-\n-from streamlink.plugin import Plugin\n-from streamlink.plugin.api import useragents\n-from streamlink.plugin.api.utils import itertags\n-from streamlink.stream import HLSStream\n-\n-\n-class TV1Channel(Plugin):\n-    _url_re = re.compile(r'https?://(?:www\\.)?tv1channel\\.org/(?!play/)(?:index\\.php/livetv)?')\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-        self.session.http.headers.update({'User-Agent': useragents.FIREFOX})\n-        res = self.session.http.get(self.url)\n-        for iframe in itertags(res.text, 'iframe'):\n-            if 'cdn.netbadgers.com' not in iframe.attributes.get('src'):\n-                continue\n-\n-            res = self.session.http.get(iframe.attributes.get('src'))\n-            for source in itertags(res.text, 'source'):\n-                if source.attributes.get('src') and source.attributes.get('src').endswith('.m3u8'):\n-                    return HLSStream.parse_variant_playlist(self.session,\n-                                                            source.attributes.get('src'))\n-\n-            break\n-\n-\n-__plugin__ = TV1Channel\n", "issue": "[bug] Tv1channel plugin no longer works\n## Bug Report\r\n<!-- Replace [ ] with [x] in order to check the box -->\r\n- [x] This is a bug report and I have read the contribution guidelines.\r\n\r\n### Reproduction steps / Explicit stream URLs to test\r\n\r\nhttp://tv1channel.org/index.php/livetv fails to open. Stream seems to have moved away to a m3u8 link - either a quick fix or just remove the plugin as it is covered by one of the main plugins.\n", "before_files": [{"content": "import re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import useragents\nfrom streamlink.plugin.api.utils import itertags\nfrom streamlink.stream import HLSStream\n\n\nclass TV1Channel(Plugin):\n    _url_re = re.compile(r'https?://(?:www\\.)?tv1channel\\.org/(?!play/)(?:index\\.php/livetv)?')\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        self.session.http.headers.update({'User-Agent': useragents.FIREFOX})\n        res = self.session.http.get(self.url)\n        for iframe in itertags(res.text, 'iframe'):\n            if 'cdn.netbadgers.com' not in iframe.attributes.get('src'):\n                continue\n\n            res = self.session.http.get(iframe.attributes.get('src'))\n            for source in itertags(res.text, 'source'):\n                if source.attributes.get('src') and source.attributes.get('src').endswith('.m3u8'):\n                    return HLSStream.parse_variant_playlist(self.session,\n                                                            source.attributes.get('src'))\n\n            break\n\n\n__plugin__ = TV1Channel\n", "path": "src/streamlink/plugins/tv1channel.py"}], "after_files": [{"content": null, "path": "src/streamlink/plugins/tv1channel.py"}]}